summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/rubygems.rb9
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 867f4d07c3..c529a1ac1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jul 20 11:35:11 2010 Evan Phoenix <evan@ruby-lang.org>
+
+ * lib/rubygems.rb: Load the custom require if --disable-rubygems
+ was used.
+
Tue Jul 20 11:27:18 2010 Evan Phoenix <evan@ruby-lang.org>
* gem_prelude.rb: Pull in rubygem's custom require
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 42e189ed4a..fcb1ebd3db 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1124,9 +1124,12 @@ end
##
# Enables the require hook for RubyGems.
#
-# We remove the paths prelude added, so we need custom require to get
-# any gems now.
-# require 'rubygems/custom_require'
+# if --disable-rubygems was used, then the prelude wasn't loaded, so
+# we need to load the custom_require now.
+
+if gem_disabled
+ require 'rubygems/custom_require'
+end
Gem.clear_paths