summaryrefslogtreecommitdiff
path: root/lib/bundler/source/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/path.rb')
-rw-r--r--lib/bundler/source/path.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb
index 87a490446c..4661a6d068 100644
--- a/lib/bundler/source/path.rb
+++ b/lib/bundler/source/path.rb
@@ -71,9 +71,9 @@ module Bundler
File.basename(expanded_path.to_s)
end
- def install(spec, force = false)
+ def install(spec, options = {})
Bundler.ui.info "Using #{version_message(spec)} from #{self}"
- generate_bin(spec, :disable_extensions)
+ generate_bin(spec, :disable_extensions => true)
nil # no post-install message
end
@@ -193,7 +193,7 @@ module Bundler
path
end
- def generate_bin(spec, disable_extensions = false)
+ def generate_bin(spec, options = {})
gem_dir = Pathname.new(spec.full_gem_path)
# Some gem authors put absolute paths in their gemspec
@@ -208,7 +208,12 @@ module Bundler
end
end.compact
- installer = Path::Installer.new(spec, :env_shebang => false, :disable_extensions => disable_extensions)
+ installer = Path::Installer.new(
+ spec,
+ :env_shebang => false,
+ :disable_extensions => options[:disable_extensions],
+ :build_args => options[:build_args]
+ )
installer.post_install
rescue Gem::InvalidSpecificationException => e
Bundler.ui.warn "\n#{spec.name} at #{spec.full_gem_path} did not have a valid gemspec.\n" \