summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
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 93199b7239..63f979ccab 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')