diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-08-04 14:39:55 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-05 18:45:24 +0900 |
commit | 86ac51c301e62abb4eb0962e04e587ba8298bf80 (patch) | |
tree | ed6b883b4103e9fa965f322a2436f7413b5aa9a4 /lib/rubygems.rb | |
parent | 2ea2108a9fb1460342226f54cbf54ddd79ea1cc2 (diff) |
[rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION
* RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby.
* There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.
https://github.com/rubygems/rubygems/commit/431d0aefdd
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 64c21e181c..84c1c741b4 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1395,14 +1395,12 @@ begin rescue LoadError end -if defined?(RUBY_ENGINE) - begin - ## - # Defaults the Ruby implementation wants to provide for RubyGems +begin + ## + # Defaults the Ruby implementation wants to provide for RubyGems - require "rubygems/defaults/#{RUBY_ENGINE}" - rescue LoadError - end + require "rubygems/defaults/#{RUBY_ENGINE}" +rescue LoadError end ## |