diff options
-rw-r--r-- | lib/bundler/ruby_version.rb | 4 | ||||
-rw-r--r-- | spec/support/platforms.rb | 2 |
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 |