mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Stop bumping RUBY_PATCHLEVEL in release versions (#15502)
[[Misc #21770]](https://bugs.ruby-lang.org/issues/21770)
This commit is contained in:
parent
89e09e4daf
commit
d02c971574
Notes:
git
2025-12-11 18:57:36 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
@ -1319,4 +1319,10 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||
def test_toplevel_ruby
|
||||
assert_instance_of Module, ::Ruby
|
||||
end
|
||||
|
||||
def test_ruby_patchlevel
|
||||
# We stopped bumping RUBY_PATCHLEVEL at Ruby 4.0.0.
|
||||
# Released versions have RUBY_PATCHLEVEL 0, and un-released versions have -1.
|
||||
assert_include [-1, 0], RUBY_PATCHLEVEL
|
||||
end
|
||||
end
|
||||
|
||||
@ -65,7 +65,8 @@ class << Merger = Object.new
|
||||
if teeny
|
||||
v[2].succ!
|
||||
end
|
||||
if pl != '-1' # trunk does not have patchlevel
|
||||
# We stopped bumping RUBY_PATCHLEVEL at Ruby 4.0.0.
|
||||
if Integer(v[0]) <= 3
|
||||
pl.succ!
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user