summaryrefslogtreecommitdiff
path: root/lib/bundler/current_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/current_ruby.rb')
-rw-r--r--lib/bundler/current_ruby.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/current_ruby.rb b/lib/bundler/current_ruby.rb
index c35f55036c..7b187eebb5 100644
--- a/lib/bundler/current_ruby.rb
+++ b/lib/bundler/current_ruby.rb
@@ -60,6 +60,14 @@ module Bundler
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
+ def jruby_18?
+ jruby? && on_18?
+ end
+
+ def jruby_19?
+ jruby? && on_19?
+ end
+
def maglev?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
end