rubygems/rubygems — Issue #268: JRuby has no suckage
Author: headius
Created: 2012-01-26 00:25:33+00:00
State: open

We have been making this change in our RubyGems fork, but it would be nice to eliminate it. The brute force option would be to add a RUBY_ENGINE != 'jruby' check, but that's hacky.

```
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 567fb07..a62d4b1 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -7,7 +7,7 @@

module Gem
QUICKLOADER_SUCKAGE = RUBY_VERSION =~ /^1\.9\.1/
- GEM_PRELUDE_SUCKAGE = RUBY_VERSION =~ /^1\.9\.2/
+ GEM_PRELUDE_SUCKAGE = false
end

if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
```

JRuby does not use the gem prelude in any mode, and always just loads RubyGems en total in 1.9 mode.