mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Merge the master branch of Bundler
This commit is contained in:
parent
0d9496f924
commit
ed149dbf46
Notes:
git
2021-04-15 15:36:39 +09:00
95 changed files with 1772 additions and 579 deletions
|
@ -929,4 +929,54 @@ RSpec.describe "bundle outdated" do
|
|||
expect(out).to end_with(expected_output)
|
||||
end
|
||||
end
|
||||
|
||||
describe "with a multiplatform lockfile" do
|
||||
before do
|
||||
build_repo4 do
|
||||
build_gem "nokogiri", "1.11.1"
|
||||
build_gem "nokogiri", "1.11.1" do |s|
|
||||
s.platform = Bundler.local_platform
|
||||
end
|
||||
|
||||
build_gem "nokogiri", "1.11.2"
|
||||
build_gem "nokogiri", "1.11.2" do |s|
|
||||
s.platform = Bundler.local_platform
|
||||
end
|
||||
end
|
||||
|
||||
lockfile <<~L
|
||||
GEM
|
||||
remote: #{file_uri_for(gem_repo4)}/
|
||||
specs:
|
||||
nokogiri (1.11.1)
|
||||
nokogiri (1.11.1-#{Bundler.local_platform})
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
#{Bundler.local_platform}
|
||||
|
||||
DEPENDENCIES
|
||||
nokogiri
|
||||
|
||||
BUNDLED WITH
|
||||
#{Bundler::VERSION}
|
||||
L
|
||||
|
||||
gemfile <<-G
|
||||
source "#{file_uri_for(gem_repo4)}"
|
||||
gem "nokogiri"
|
||||
G
|
||||
end
|
||||
|
||||
it "reports a single entry per gem" do
|
||||
bundle "outdated", :raise_on_error => false
|
||||
|
||||
expected_output = <<~TABLE.strip
|
||||
Gem Current Latest Requested Groups
|
||||
nokogiri 1.11.1 1.11.2 >= 0 default
|
||||
TABLE
|
||||
|
||||
expect(out).to end_with(expected_output)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue