Skip to content

Commit 4170bb6

Browse files
committed
Replace Ruby 3.5 with Ruby 4.0
1 parent 9fb6176 commit 4170bb6

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

lib/bundled_gems.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ module Gem::BUNDLED_GEMS # :nodoc:
2020
"resolv-replace" => "3.4.0",
2121
"rinda" => "3.4.0",
2222
"syslog" => "3.4.0",
23-
"ostruct" => "3.5.0",
24-
"pstore" => "3.5.0",
25-
"rdoc" => "3.5.0",
26-
"win32ole" => "3.5.0",
27-
"fiddle" => "3.5.0",
28-
"logger" => "3.5.0",
29-
"benchmark" => "3.5.0",
30-
"irb" => "3.5.0",
31-
"reline" => "3.5.0",
32-
# "readline" => "3.5.0", # This is wrapper for reline. We don't warn for this.
23+
"ostruct" => "4.0.0",
24+
"pstore" => "4.0.0",
25+
"rdoc" => "4.0.0",
26+
"win32ole" => "4.0.0",
27+
"fiddle" => "4.0.0",
28+
"logger" => "4.0.0",
29+
"benchmark" => "4.0.0",
30+
"irb" => "4.0.0",
31+
"reline" => "4.0.0",
32+
# "readline" => "4.0.0", # This is wrapper for reline. We don't warn for this.
3333
"tsort" => "3.6.0",
3434
}.freeze
3535

spec/bundled_gems_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def script(code, options = {})
113113
require "active_support/all"
114114
RUBY
115115

116-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
116+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
117117
expect(err).to include(/lib\/active_support\/all\.rb:1/)
118118
end
119119

@@ -159,7 +159,7 @@ def script(code, options = {})
159159

160160
bundle "exec ruby script.rb"
161161

162-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
162+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
163163
expect(err).to include(/script\.rb:8/)
164164
end
165165

@@ -177,7 +177,7 @@ def script(code, options = {})
177177

178178
bundle "exec ./script.rb"
179179

180-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
180+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
181181
expect(err).to include(/script\.rb:9/)
182182
end
183183

@@ -186,7 +186,7 @@ def script(code, options = {})
186186
create_file("Gemfile", "source 'https://rubygems.org'")
187187
bundle "exec ruby -r./stub -ropenssl -e ''"
188188

189-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
189+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
190190
end
191191

192192
it "Show warning when warn is not the standard one in the current scope" do
@@ -209,7 +209,7 @@ def my
209209
My.my
210210
RUBY
211211

212-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
212+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
213213
expect(err).to include(/-e:19/)
214214
end
215215

@@ -251,7 +251,7 @@ def my
251251
require Gem::BUNDLED_GEMS::ARCHDIR + 'openssl'
252252
RUBY
253253

254-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
254+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
255255
# TODO: We should assert caller location like below:
256256
# test_warn_bootsnap.rb:14: warning: ...
257257
end
@@ -320,7 +320,7 @@ def my
320320
create_file("Gemfile", "source 'https://rubygems.org'")
321321
bundle "exec ruby script.rb"
322322

323-
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 3.5.0/)
323+
expect(err).to include(/openssl used to be loaded from (.*) since Ruby 4.0.0/)
324324
expect(err).to include(/script\.rb:13/)
325325
end
326326

0 commit comments

Comments
 (0)