ruby-changes:27183
From: nobu <ko1@a...>
Date: Thu, 14 Feb 2013 10:38:22 +0900 (JST)
Subject: [ruby-changes:27183] nobu:r39235 (trunk): vm_method.c: fix method_removed
nobu 2013-02-14 10:38:07 +0900 (Thu, 14 Feb 2013) New Revision: 39235 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39235 Log: vm_method.c: fix method_removed * vm_method.c: call method_removed hook on called class, not on prepending iclass. [ruby-core:52207] [Bug #7843] Modified files: trunk/ChangeLog trunk/test/ruby/test_module.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 39234) +++ ChangeLog (revision 39235) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 Thu Feb 14 10:30:41 2013 Nobuyoshi Nakada <nobu@r...> * vm_method.c: call method_removed hook on called class, not on - prepending iclass. + prepending iclass. [ruby-core:52207] [Bug #7843] Thu Feb 14 10:05:57 2013 Eric Hodel <drbrain@s...> Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 39234) +++ test/ruby/test_module.rb (revision 39235) @@ -1397,7 +1397,7 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1397 c.singleton_class.class_eval do define_method(:method_removed) {|id| removed = id} end - assert_nothing_raised(NoMethodError, NameError) do + assert_nothing_raised(NoMethodError, NameError, '[Bug #7843]') do c.class_eval do remove_method(:foo) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/