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

Don't remove methods twice. [bug#555]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-12-22 23:06:47 +00:00
parent e7685ab82c
commit f2f3e60a8a
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 23 08:04:58 2008 Eric Hodel <drbrain@segment7.net>
* gem_prelude.rb: Don't remove methods twice. [bug#555]
Tue Dec 23 00:16:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
* sprintf.c (rb_str_format): fix buffer overflow.

View file

@ -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