lib/joyce/tasks/build.rb in joyce-0.1.9 vs lib/joyce/tasks/build.rb in joyce-0.1.10

- old
+ new

@@ -33,14 +33,16 @@ require_paths = gemspecs.map do |spec| spec.require_paths.map {|path| "#{spec.name}-#{spec.version}/#{path}" } end file.puts <<-ruby - $stdout.reopen("#{Dir.home}/#{app_name}.log", "w") - $stderr.reopen("#{Dir.home}/#{app_name}.error.log", "w") + 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__) + $LOAD_PATH.unshift File.expand_path(File.join("../vendor/gems", path), __FILE__) end require 'joyce' require 'application' #{app_class_name}.kickstart! ruby