summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 23:06:47 (GMT)
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-22 23:06:47 (GMT)
commitf2f3e60a8a208c8da7fa34250c454f0645a5326d (patch)
treebef3d56f6a13cf8de9493166b6354c7aef11eabe /gem_prelude.rb
parente7685ab82c36ab14f3883ece33c633d4f4a797f6 (diff)
Don't remove methods twice. [bug#555]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 406f40f..becf626 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -198,7 +198,13 @@ if defined?(Gem) then
module QuickLoader
+ @loaded_full_rubygems_library = false
+
def self.load_full_rubygems_library
+ return if @loaded_full_rubygems_library
+
+ @loaded_full_rubygems_library = true
+
class << Gem
Gem::GEM_PRELUDE_METHODS.each do |method_name|
undef_method method_name