diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-16 08:57:26 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
| commit | fe1b0661cb473da7a49d6180cf9b10f80df0fb78 (patch) | |
| tree | 558b3b263aee4b9df96a948c51aba33d1e4ecdd2 | |
| parent | b09973a995620b17dfa98fbedc9d83da7f1dea78 (diff) | |
[rubygems/rubygems] Removed RUBY_PATCHLEVEL and modify condition for ruby_version
https://github.com/rubygems/rubygems/commit/b420e287a3
| -rw-r--r-- | lib/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 82789c49d1..1695d82d7a 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -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 |
