summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2017-12-04 11:55:22 +0100
committerBenoit Daloze <eregontp@gmail.com>2018-09-09 16:38:22 +0200
commitabf4fdc610476b77ff9e5676b71328b07be00687 (patch)
tree78a2c0bb9efa676c8a68a2c9acaef26c2f194d0e
parent6fe30384dc35c92ced8a28e7896c3340e8cd1e58 (diff)
downloadbundler-abf4fdc610476b77ff9e5676b71328b07be00687.tar.gz
Fallback to the standard RUBY_ENGINE_VERSION constant
-rw-r--r--lib/bundler/ruby_version.rb4
-rw-r--r--spec/support/platforms.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb
index d4e1bdbfd5..ccaf6e3414 100644
--- a/lib/bundler/ruby_version.rb
+++ b/lib/bundler/ruby_version.rb
@@ -118,8 +118,8 @@ module Bundler
when "jruby"
JRUBY_VERSION.dup
else
- raise BundlerError, "RUBY_ENGINE value #{RUBY_ENGINE} is not recognized"
- end
+ RUBY_ENGINE_VERSION.dup
+ end
patchlevel = RUBY_PATCHLEVEL.to_s
@ruby_version ||= RubyVersion.new(ruby_version, patchlevel, ruby_engine, ruby_engine_version)
diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb
index 002350114b..39040a61bd 100644
--- a/spec/support/platforms.rb
+++ b/spec/support/platforms.rb
@@ -79,7 +79,7 @@ module Spec
when "jruby"
JRUBY_VERSION
else
- raise BundlerError, "That RUBY_ENGINE is not recognized"
+ RUBY_ENGINE_VERSION
end
end