diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-12 19:05:26 +0200 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-26 18:02:07 +0200 |
| commit | d6c9196d184366694fafb4fedfd72ec375bebaf8 (patch) | |
| tree | ba01cda4b1131f36affb640216675cfaa6d335b9 /lib/bundler/current_ruby.rb | |
| parent | 547975644e93d1c421a468ab5e2396b5b953158b (diff) | |
| download | bundler-ruby_engine_always_defined.tar.gz | |
RUBY_ENGINE should always be defined after 1.8.7ruby_engine_always_defined
Diffstat (limited to 'lib/bundler/current_ruby.rb')
| -rw-r--r-- | lib/bundler/current_ruby.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/bundler/current_ruby.rb b/lib/bundler/current_ruby.rb index ae5fae841e..6c8ad72ee3 100644 --- a/lib/bundler/current_ruby.rb +++ b/lib/bundler/current_ruby.rb @@ -38,28 +38,27 @@ module Bundler ].freeze def ruby? - !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || - RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby") + !mswin? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby") end def mri? - !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") + !mswin? && RUBY_ENGINE == "ruby" end def rbx? - ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" + ruby? && RUBY_ENGINE == "rbx" end def jruby? - defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" + RUBY_ENGINE == "jruby" end def maglev? - defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev" + RUBY_ENGINE == "maglev" end def truffleruby? - defined?(RUBY_ENGINE) && RUBY_ENGINE == "truffleruby" + RUBY_ENGINE == "truffleruby" end def mswin? |
