diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-06 20:53:57 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-07 12:03:15 -0500 |
commit | aba5e40d174bd8127377718013b0f2fb78939d40 (patch) | |
tree | db47022ea484a3f5a48c60fe3711463fa1168a09 /lib/bundler/source | |
parent | 4e1ff77ec1148c3170e746d42e77c07d6c1cb19a (diff) | |
download | bundler-aba5e40d174bd8127377718013b0f2fb78939d40.tar.gz |
[StubSpecification] Properly handle full_gem_path for git gems
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/git.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index d92b741202..dd515166c2 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -307,6 +307,7 @@ module Bundler if defined?(::Gem::StubSpecification) def load_gemspec(file) stub = Gem::StubSpecification.gemspec_stub(file, install_path.parent, install_path.parent) + stub.full_gem_path = Pathname.new(file).dirname.expand_path(root).to_s.untaint StubSpecification.from_stub(stub) end end |