-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
4 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
Sat Sep 29 11:21:06 2012 Shugo Maeda <[email protected]> | ||
|
||
* 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 <[email protected]> | ||
|
||
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters