aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/defaults.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-08-04 14:39:55 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-05 18:45:24 +0900
commit86ac51c301e62abb4eb0962e04e587ba8298bf80 (patch)
treeed6b883b4103e9fa965f322a2436f7413b5aa9a4 /lib/rubygems/defaults.rb
parent2ea2108a9fb1460342226f54cbf54ddd79ea1cc2 (diff)
downloadruby-86ac51c301e62abb4eb0962e04e587ba8298bf80.tar.gz
[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/defaults.rb')
-rw-r--r--lib/rubygems/defaults.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index da304b213b..cdc5fb7acb 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -129,15 +129,8 @@ module Gem
end
end
- ##
- # A wrapper around RUBY_ENGINE const that may not be defined
-
def self.ruby_engine
- if defined? RUBY_ENGINE
- RUBY_ENGINE
- else
- 'ruby'
- end
+ RUBY_ENGINE
end
##