Permalink
Browse files

Require compatability shim first

If the prelude is present, it will end up redefining Gem itself, so we
must NEVER require other files that we that change Gem first.
  • Loading branch information...
1 parent abe3d13 commit 55ec3fb9184d1e00f1fe761055dd80cf2b119efd @evanphx evanphx committed Mar 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rubygems.rb
View
@@ -101,9 +101,11 @@ module Gem
VERSION = '2.0.a'
end
+# Must be first since it unloads the prelude from 1.9.2
+require 'rubygems/compatibility'
+
require 'rubygems/defaults'
require 'rubygems/deprecate'
-require 'rubygems/compatibility'
require 'rubygems/errors'
require 'rubygems/source_list'

0 comments on commit 55ec3fb

Please sign in to comment.