summaryrefslogtreecommitdiff
path: root/lib/bundler/source/path.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-07 18:46:23 -0600
committerSamuel Giddins <segiddins@segiddins.me>2017-02-07 19:02:09 -0600
commit66b7c904bcdd257f045e40ac40c636dea105ea68 (patch)
treeb7b7023ab6105f1707ec254f4f371cf6ff1d13a3 /lib/bundler/source/path.rb
parentc0de8f625f0ae2ed5cc2b26673c875e2900a9829 (diff)
downloadbundler-seg-git-build-args.tar.gz
Properly set native extension build args for git gemsseg-git-build-args
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" \