summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 01:38:43 (GMT)
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 01:38:43 (GMT)
commitd0c819cf94451d6df95de6c2ace76d2cac41b7ba (patch)
treed9c0b8ae57e60e4a71d2e66481cf8e81d2f737a2 /gem_prelude.rb
parente2630984e947f89a7ce198c60256fffc3b64cabd (diff)
Remove methods from Gem, not QuickLoader, to fix warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 93199b7..63f979c 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -79,10 +79,14 @@ module Gem
class << self
def load_full_rubygems_library
- QuickLoader.instance_methods.each do |method_name|
- QuickLoader.send :undef_method, method_name
+ class << Gem
+ Gem.methods(false).each do |method_name|
+ undef_method method_name
+ end
end
+ Kernel.send :undef_method, :gem
+
$".delete File.join(Gem::ConfigMap[:libdir], 'ruby',
Gem::ConfigMap[:ruby_version], 'rubygems.rb')