From 5ef652300e71b572ca58b061610d606840ce19a9 Mon Sep 17 00:00:00 2001 From: _Tradam Date: Thu, 30 Dec 2021 07:33:12 -0500 Subject: Major 4.0 update (#12) Check the changelog --- Rakefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index edf99bc..f7d8c6c 100644 --- a/Rakefile +++ b/Rakefile @@ -11,6 +11,26 @@ require "rubocop/rake_task" task :default => [:spec, :yard, 'coverage:format'] #task default: :rubocop +desc 'Export to single file' +task :buildfile do + result = '' + main = File.read('lib/felflame.rb') + tmp = main.lines(chomp: true).select do |line| + line.include? "require_relative " + end + tmp.each do |file| + file.delete_prefix!("require_relative ") + result += File.read("lib/#{file[1,file.length-2]}.rb") + "\n" + end + + result += main.lines.reject do |line| + line.include? "require_relative " + end.join + + `mkdir pkg` + File.write('pkg/felflame.rb', result) +end + RuboCop::RakeTask.new namespace :coverage do -- cgit v1.2.3