mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Replace Ruby 3.5 with Ruby 4.0
This commit is contained in:
parent
da114dfe0b
commit
bf970ed8a2
Notes:
git
2025-11-12 01:29:51 +00:00
@ -20,16 +20,16 @@ module Gem::BUNDLED_GEMS # :nodoc:
|
||||
"resolv-replace" => "3.4.0",
|
||||
"rinda" => "3.4.0",
|
||||
"syslog" => "3.4.0",
|
||||
"ostruct" => "3.5.0",
|
||||
"pstore" => "3.5.0",
|
||||
"rdoc" => "3.5.0",
|
||||
"win32ole" => "3.5.0",
|
||||
"fiddle" => "3.5.0",
|
||||
"logger" => "3.5.0",
|
||||
"benchmark" => "3.5.0",
|
||||
"irb" => "3.5.0",
|
||||
"reline" => "3.5.0",
|
||||
# "readline" => "3.5.0", # This is wrapper for reline. We don't warn for this.
|
||||
"ostruct" => "4.0.0",
|
||||
"pstore" => "4.0.0",
|
||||
"rdoc" => "4.0.0",
|
||||
"win32ole" => "4.0.0",
|
||||
"fiddle" => "4.0.0",
|
||||
"logger" => "4.0.0",
|
||||
"benchmark" => "4.0.0",
|
||||
"irb" => "4.0.0",
|
||||
"reline" => "4.0.0",
|
||||
# "readline" => "4.0.0", # This is wrapper for reline. We don't warn for this.
|
||||
"tsort" => "3.6.0",
|
||||
}.freeze
|
||||
|
||||
|
||||
@ -113,7 +113,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
require "active_support/all"
|
||||
RUBY
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
expect(err).to include(/lib\/active_support\/all\.rb:1/)
|
||||
end
|
||||
|
||||
@ -159,7 +159,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
|
||||
bundle "exec ruby script.rb"
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
expect(err).to include(/script\.rb:8/)
|
||||
end
|
||||
|
||||
@ -177,7 +177,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
|
||||
bundle "exec ./script.rb"
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
expect(err).to include(/script\.rb:9/)
|
||||
end
|
||||
|
||||
@ -186,7 +186,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
create_file("Gemfile", "source 'https://rubygems.org'")
|
||||
bundle "exec ruby -r./stub -ropenssl -e ''"
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
end
|
||||
|
||||
it "Show warning when warn is not the standard one in the current scope" do
|
||||
@ -209,7 +209,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
My.my
|
||||
RUBY
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
expect(err).to include(/-e:19/)
|
||||
end
|
||||
|
||||
@ -251,7 +251,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
require Gem::BUNDLED_GEMS::ARCHDIR + 'openssl'
|
||||
RUBY
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
# TODO: We should assert caller location like below:
|
||||
# test_warn_bootsnap.rb:14: warning: ...
|
||||
end
|
||||
@ -320,7 +320,7 @@ RSpec.describe "bundled_gems.rb" do
|
||||
create_file("Gemfile", "source 'https://rubygems.org'")
|
||||
bundle "exec ruby script.rb"
|
||||
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
|
||||
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
|
||||
expect(err).to include(/script\.rb:13/)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user