Created
February 9, 2012 08:22
-
-
Save ferrous26/1778413 to your computer and use it in GitHub Desktop.
Rubygems problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/rubygems.rb b/lib/rubygems.rb | |
| index 567fb07..85a4995 100644 | |
| --- a/lib/rubygems.rb | |
| +++ b/lib/rubygems.rb | |
| @@ -6,8 +6,9 @@ | |
| #++ | |
| module Gem | |
| - QUICKLOADER_SUCKAGE = RUBY_VERSION =~ /^1\.9\.1/ | |
| - GEM_PRELUDE_SUCKAGE = RUBY_VERSION =~ /^1\.9\.2/ | |
| + # XXX MACRUBY does not preload rubygems | |
| + QUICKLOADER_SUCKAGE = false | |
| + GEM_PRELUDE_SUCKAGE = false | |
| end | |
| if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/rubygems.rb b/lib/rubygems.rb | |
| index 567fb07..8ead609 100644 | |
| --- a/lib/rubygems.rb | |
| +++ b/lib/rubygems.rb | |
| @@ -1232,7 +1232,7 @@ end | |
| require 'rubygems/exceptions' | |
| -gem_preluded = Gem::GEM_PRELUDE_SUCKAGE and defined? Gem | |
| +gem_preluded = false #Gem::GEM_PRELUDE_SUCKAGE and defined? Gem | |
| unless gem_preluded then # TODO: remove guard after 1.9.2 dropped | |
| begin | |
| ## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment