diff options
author | The Bundler Bot <bot@bundler.io> | 2017-04-20 19:38:34 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2017-04-20 19:38:34 +0000 |
commit | dcddaf98a7201483277b71ae1fb7904a15a0cc9f (patch) | |
tree | 3e94072e5515a67a408f4c16b6bc8772dae5ab12 /spec | |
parent | ab6f6b97cf40b8e4cf6330288d31759c20c1db1d (diff) | |
parent | afdfc57a87e02220eb1386edaff4aa9b6a391093 (diff) | |
download | bundler-dcddaf98a7201483277b71ae1fb7904a15a0cc9f.tar.gz |
Auto merge of #5595 - bundler:jules2689-stub-spec-extension-dir, r=segiddins
Apply source and git_version to stub spec extension
Fixes https://github.com/bundler/bundler/issues/5594
`stub_specification` doesn't know what `full_name` should be because we don't have a record of the source, so it resolves to `cityhash-0.6.0` rather than `cityhash-3cfc7d01f333`
This makes `StubSpecification` aware of the source to we can still avoid loading the full spec when needed. This is done by bringing remote_specs `attr_accessor :source` to `stub_spec`, and assigning source to the `stub`.
I am probably missing some edge cases to check for though 🙈 Need to write specs.
cc @segiddins
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install/gemfile/git_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/install/gemfile/git_spec.rb b/spec/install/gemfile/git_spec.rb index d2d46279aa..8843fb7ebb 100644 --- a/spec/install/gemfile/git_spec.rb +++ b/spec/install/gemfile/git_spec.rb @@ -1030,6 +1030,11 @@ RSpec.describe "bundle install with git sources" do puts FOO R expect(out).to eq("YES") + + run! <<-R + puts $:.grep(/ext/) + R + expect(out).to eq(Pathname.glob(system_gem_path("bundler/gems/extensions/**/foo-1.0-*")).first.to_s) end it "does not use old extension after ref changes" do |