lib/joyce/tasks/build.rb in joyce-0.1.5 vs lib/joyce/tasks/build.rb in joyce-0.1.6

- old
+ new

@@ -8,21 +8,26 @@ puts "--- build os x app here!" cp_r "../dist/Ruby.app", target_app_bundle_root puts "--- Ruby.app copied!" + puts "--- copying your source code..." + cp_r "lib", "#{target_app_bundle_root}/Contents/Resources/lib" + puts "--- Analyzing your gems..." p Bundler.definition.specs_for([:default]) puts "--- Okay, let's copy gems in..." gem_destination = "#{target_app_bundle_root}/Contents/Resources/vendor" # info "Copying source gems from system" binary_gems_to_ignore = %w[ gosu minitest ] gem_list = vendored_gem_names(ignoring: binary_gems_to_ignore) + copy_gems(gem_list, destination: File.join(gem_destination)) + write_main_rb(root: target_app_bundle_root) #(app_class: "#{app_name}::Application") end def write_main_rb(root:) File.open("#{root}/Contents/Resources/main.rb", "w") do |file| @@ -42,9 +47,10 @@ $LOAD_PATH.unshift File.expand_path(File.join("../vendor/gems", path), __FILE__) end puts "--- gems shifted" + require 'forwardable' require 'joyce' require 'application' Example::Application.kickstart! ruby