mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
[rubygems/rubygems] Removed RUBY_PATCHLEVEL and modify condition for ruby_version
b420e287a3
This commit is contained in:
parent
b09973a995
commit
fe1b0661cb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue