[rubygems/rubygems] Fix RubyGems warnings about pre-release dependencies
Nothing here relies on the dependency being on a pre-release, and Bundler does not use prereleases in the realworld. https://github.com/rubygems/rubygems/commit/96f5742ff1
This commit is contained in:
parent
c30297b3d1
commit
c262861e5c
@ -1202,10 +1202,10 @@ RSpec.describe "bundle update when a gem depends on a newer version of bundler"
|
||||
before do
|
||||
build_repo2 do
|
||||
build_gem "rails", "3.0.1" do |s|
|
||||
s.add_dependency "bundler", Bundler::VERSION.succ
|
||||
s.add_dependency "bundler", "9.9.9"
|
||||
end
|
||||
|
||||
build_gem "bundler", Bundler::VERSION.succ
|
||||
build_gem "bundler", "9.9.9"
|
||||
end
|
||||
|
||||
gemfile <<-G
|
||||
@ -1218,7 +1218,7 @@ RSpec.describe "bundle update when a gem depends on a newer version of bundler"
|
||||
bundle "update", all: true, raise_on_error: false
|
||||
expect(last_command.stdboth).not_to match(/in snapshot/i)
|
||||
expect(err).to match(/current Bundler version/i).
|
||||
and match(/Install the necessary version with `gem install bundler:#{Bundler::VERSION.succ}`/i)
|
||||
and match(/Install the necessary version with `gem install bundler:9\.9\.9`/i)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ RSpec.describe "bundle install" do
|
||||
before(:each) do
|
||||
build_repo2 do
|
||||
build_gem "rails", "3.0" do |s|
|
||||
s.add_dependency "bundler", ">= 0.9.0.pre"
|
||||
s.add_dependency "bundler", ">= 0.9.0"
|
||||
end
|
||||
build_gem "bundler", "0.9.1"
|
||||
build_gem "bundler", Bundler::VERSION
|
||||
@ -59,8 +59,8 @@ RSpec.describe "bundle install" do
|
||||
nice_error = <<~E.strip
|
||||
Could not find compatible versions
|
||||
|
||||
Because rails >= 3.0 depends on bundler >= 0.9.0.pre
|
||||
and the current Bundler version (#{Bundler::VERSION}) does not satisfy bundler >= 0.9.0.pre, < 1.A,
|
||||
Because rails >= 3.0 depends on bundler >= 0.9.0
|
||||
and the current Bundler version (#{Bundler::VERSION}) does not satisfy bundler >= 0.9.0, < 1.A,
|
||||
rails >= 3.0 requires bundler >= 1.A.
|
||||
So, because Gemfile depends on rails = 3.0
|
||||
and Gemfile depends on bundler ~> 0.8,
|
||||
|
Loading…
x
Reference in New Issue
Block a user