lib/bundler/source/git.rb in bundler-1.14.3 vs lib/bundler/source/git.rb in bundler-1.14.4

- old
+ new

@@ -159,19 +159,22 @@ end local_specs end - def install(spec, force = false) + def install(spec, options = {}) + force = options[:force] + Bundler.ui.info "Using #{version_message(spec)} from #{self}" if requires_checkout? && !@copied && !force Bundler.ui.debug " * Checking out revision: #{ref}" git_proxy.copy_to(install_path, submodules) serialize_gemspecs_in(install_path) @copied = true end - generate_bin(spec, !Bundler.rubygems.spec_missing_extensions?(spec)) + generate_bin_options = { :disable_extensions => !Bundler.rubygems.spec_missing_extensions?(spec), :build_args => options[:build_args] } + generate_bin(spec, generate_bin_options) requires_checkout? ? spec.post_install_message : nil end def cache(spec, custom_path = nil)