From 0954607864bcdd81ea5f3dd2ea52f638f2f32e47 Mon Sep 17 00:00:00 2001 From: shugo Date: Sat, 29 Sep 2012 02:21:27 +0000 Subject: * vm_insnhelper.c (rb_vm_using_modules): use using_modules before klass to fix method lookup order, and use klass even if klass is not a module to make refinements in class_eval invoked on classes work. * eval.c (rb_using_module): accept a class as the second argument. * eval.c (rb_mod_using, f_using): raise a TypeError if the argument is not a module. * test/ruby/test_refinement.rb: add new tests for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index b3de5b1eea..deb65d7262 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +Sat Sep 29 11:21:06 2012 Shugo Maeda + + * vm_insnhelper.c (rb_vm_using_modules): use using_modules before + klass to fix method lookup order, and use klass even if klass is + not a module to make refinements in class_eval invoked on classes + work. + + * eval.c (rb_using_module): accept a class as the second argument. + + * eval.c (rb_mod_using, f_using): raise a TypeError if the argument + is not a module. + + * test/ruby/test_refinement.rb: add new tests for the above changes. + Sat Sep 29 02:18:57 2012 Hiroshi Shirosaki * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): -- cgit v1.2.3