[rubygems/rubygems] Removed RUBY_PATCHLEVEL and modify condition for ruby_version

https://github.com/rubygems/rubygems/commit/b420e287a3
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 08:57:26 +09:00
parent b09973a995
commit fe1b0661cb

View File

@ -855,7 +855,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
return @ruby_version if defined? @ruby_version
version = RUBY_VERSION.dup
unless defined?(RUBY_PATCHLEVEL) && RUBY_PATCHLEVEL != -1
if RUBY_PATCHLEVEL == -1
if RUBY_ENGINE == "ruby"
desc = RUBY_DESCRIPTION[/\Aruby #{Regexp.quote(RUBY_VERSION)}([^ ]+) /, 1]
else