lib/joyce/tasks/build.rb in joyce-0.1.11 vs lib/joyce/tasks/build.rb in joyce-0.1.12
- old
+ new
@@ -36,21 +36,21 @@
require_paths = gemspecs.map do |spec|
spec.require_paths.map {|path| "#{spec.name}-#{spec.version}/#{path}" }
end
file.puts <<-ruby
- require 'fileutils'
- FileUtils.mkdir_p("#{Dir.home}/#{app_name}/")
- $stdout.reopen("#{Dir.home}/#{app_name}/app.log", "w")
- $stderr.reopen("#{Dir.home}/#{app_name}/err.log", "w")
- GEM_REQUIRE_PATHS = #{require_paths.flatten.inspect}
- GEM_REQUIRE_PATHS.each do |path|
- $LOAD_PATH.unshift File.expand_path(File.join("../vendor/gems", path), __FILE__)
- end
- require 'joyce'
- require 'application'
- #{app_class_name}.kickstart!
- ruby
+require 'fileutils'
+FileUtils.mkdir_p("#{Dir.home}/#{app_name}/")
+$stdout.reopen("#{Dir.home}/#{app_name}/app.log", "w")
+$stderr.reopen("#{Dir.home}/#{app_name}/err.log", "w")
+GEM_REQUIRE_PATHS = #{require_paths.flatten.inspect}
+GEM_REQUIRE_PATHS.each do |path|
+ $LOAD_PATH.unshift File.expand_path(File.join("../vendor/gems", path), __FILE__)
+end
+require 'joyce'
+require '#{app_name}'
+#{app_class_name}.kickstart!
+ruby
end
end
# the gem approach from releasy: https://github.com/Spooner/releasy/blob/master/lib/releasy/mixins/has_gemspecs.rb
def copy_gems(gems, destination:)