Skip to content

Instantly share code, notes, and snippets.

@ferrous26
Created February 9, 2012 08:22
Show Gist options
  • Select an option

  • Save ferrous26/1778413 to your computer and use it in GitHub Desktop.

Select an option

Save ferrous26/1778413 to your computer and use it in GitHub Desktop.
Rubygems problem
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
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