diff --git a/lib/gel/environment.rb b/lib/gel/environment.rb index c157446..d340853 100644 --- a/lib/gel/environment.rb +++ b/lib/gel/environment.rb @@ -17,8 +17,7 @@ class << self GEMFILE_PLATFORMS = begin v = RbConfig::CONFIG["ruby_version"].split(".")[0..1].inject(:+) - # FIXME: This isn't the right condition - if defined?(org.jruby.Ruby) + if RUBY_ENGINE == "jruby" || RUBY_PLATFORM == "java" ["jruby", "jruby_#{v}", "java", "java_#{v}"] else ["ruby", "ruby_#{v}", "mri", "mri_#{v}"]