aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/request.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/request.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/request.rb')
-rw-r--r--lib/rubygems/request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb
index 1ed2b8ad50..435c7c53cb 100644
--- a/lib/rubygems/request.rb
+++ b/lib/rubygems/request.rb
@@ -285,7 +285,7 @@ class Gem::Request
end
ua << ")"
- ua << " #{RUBY_ENGINE}" if defined?(RUBY_ENGINE) and RUBY_ENGINE != 'ruby'
+ ua << " #{RUBY_ENGINE}" if RUBY_ENGINE != 'ruby'
ua
end