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/ruby_version.rb | |
parent | 547975644e93d1c421a468ab5e2396b5b953158b (diff) | |
download | bundler-d6c9196d184366694fafb4fedfd72ec375bebaf8.tar.gz |
RUBY_ENGINE should always be defined after 1.8.7ruby_engine_always_defined
Diffstat (limited to 'lib/bundler/ruby_version.rb')
-rw-r--r-- | lib/bundler/ruby_version.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb index 80dc444f93..b981cba21d 100644 --- a/lib/bundler/ruby_version.rb +++ b/lib/bundler/ruby_version.rb @@ -102,12 +102,7 @@ module Bundler end def self.system - ruby_engine = if defined?(RUBY_ENGINE) && !RUBY_ENGINE.nil? - RUBY_ENGINE.dup - else - # not defined in ruby 1.8.7 - "ruby" - end + ruby_engine = RUBY_ENGINE.dup # :sob: mocking RUBY_VERSION breaks stuff on 1.8.7 ruby_version = ENV.fetch("BUNDLER_SPEC_RUBY_VERSION") { RUBY_VERSION }.dup ruby_engine_version = case ruby_engine |