diff options
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/current_ruby.rb | 8 | ||||
-rw-r--r-- | lib/bundler/dependency.rb | 2 |
2 files changed, 10 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 diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index f29b1a9584..9e17fe0eb8 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -19,6 +19,8 @@ module Bundler :mri_20 => Gem::Platform::RUBY, :rbx => Gem::Platform::RUBY, :jruby => Gem::Platform::JAVA, + :jruby_18 => Gem::Platform::JAVA, + :jruby_19 => Gem::Platform::JAVA, :mswin => Gem::Platform::MSWIN, :mingw => Gem::Platform::MINGW, :mingw_18 => Gem::Platform::MINGW, |