1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
drbrain 2007-12-24 01:38:43 +00:00
parent e2630984e9
commit d0c819cf94
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 24 10:37:38 2007 Eric Hodel <drbrain@segment7.net>
* gem_prelude.rb: Remove methods from Gem, not QuickLoader, to fix
warnings.
Mon Dec 24 09:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
* transcode.c, transcode_data_one_byte.c, transcode_data_japanese.c:

View file

@ -79,9 +79,13 @@ 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')