lib/joyce/tasks/build.rb in joyce-0.1.7 vs lib/joyce/tasks/build.rb in joyce-0.1.8
- old
+ new
@@ -31,9 +31,11 @@
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__)