forked from rubygems/bundler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rubygems#6188 - bundler:indirect/fix-6072, r=indirect
Stop overriding specs during double-checks This fixes my test-case reproduction of rubygems#6072. I’m pretty sure it’s because the double-check was overriding the locally installed index specs with specs fetched from the RubyGems API, causing Bundler to conclude that the gems aren’t installed, even though they are. @deivid-rodriguez @y-yagi can you verify that this patch fixes the issues with `inline` that you were seeing?
- Loading branch information
1 parent
3a0c85f
commit 2875b6e
Showing
6 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe "double checking sources", :realworld => true do | ||
it "finds already-installed gems" do | ||
create_file("rails.gemspec", <<-RUBY) | ||
Gem::Specification.new do |s| | ||
s.name = "rails" | ||
s.version = "5.1.4" | ||
s.summary = "" | ||
s.description = "" | ||
s.author = "" | ||
s.add_dependency "actionpack", "5.1.4" | ||
end | ||
RUBY | ||
|
||
create_file("actionpack.gemspec", <<-RUBY) | ||
Gem::Specification.new do |s| | ||
s.name = "actionpack" | ||
s.version = "5.1.4" | ||
s.summary = "" | ||
s.description = "" | ||
s.author = "" | ||
s.add_dependency "rack", "~> 2.0.0" | ||
end | ||
RUBY | ||
|
||
cmd = <<-RUBY | ||
require "bundler" | ||
require #{File.expand_path("../../support/artifice/vcr.rb", __FILE__).dump} | ||
require "bundler/inline" | ||
gemfile(true) do | ||
source "https://rubygems.org" | ||
gem "rails", path: "." | ||
end | ||
RUBY | ||
|
||
ruby! cmd | ||
ruby! cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
spec/support/artifice/vcr_cassettes/realworld/rubygems.org/gems/rack-2.0.1.gem/GET/request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
> GET /gems/rack-2.0.1.gem | ||
> accept-encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | ||
> accept: */* | ||
> user-agent: Ruby | ||
> connection: keep-alive | ||
> keep-alive: 30 | ||
> host: rubygems.org |
Binary file added
BIN
+249 KB
spec/support/artifice/vcr_cassettes/realworld/rubygems.org/gems/rack-2.0.1.gem/GET/response
Binary file not shown.