[前][次][番号順一覧][スレッド一覧]

ruby-changes:39443

From: hsbt <ko1@a...>
Date: Tue, 11 Aug 2015 10:33:49 +0900 (JST)
Subject: [ruby-changes:39443] hsbt:r51524 (trunk): * vm_method.c: typo fix [fix GH-993][ci skip] Patch by @0x0dea

hsbt	2015-08-11 10:33:32 +0900 (Tue, 11 Aug 2015)

  New Revision: 51524

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51524

  Log:
    * vm_method.c: typo fix [fix GH-993][ci skip] Patch by @0x0dea
    * test/ruby/test_refinement.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_refinement.rb
    trunk/vm_method.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51523)
+++ ChangeLog	(revision 51524)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug 11 10:33:26 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* vm_method.c: typo fix [fix GH-993][ci skip] Patch by @0x0dea
+	* test/ruby/test_refinement.rb: ditto.
+
 Sun Aug  9 14:15:54 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm.c (Init_vm_objects, rb_vm_fstring_table): use frozen_strings
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 51523)
+++ vm_method.c	(revision 51524)
@@ -783,7 +783,7 @@ rb_callable_method_entry(VALUE klass, ID https://github.com/ruby/ruby/blob/trunk/vm_method.c#L783
 static const rb_method_entry_t *resolve_refined_method(VALUE refinements, const rb_method_entry_t *me, VALUE *defined_class_ptr);
 
 static const rb_method_entry_t *
-method_entry_resolve_refienment(VALUE klass, ID id, int with_refinement, VALUE *defined_class_ptr)
+method_entry_resolve_refinement(VALUE klass, ID id, int with_refinement, VALUE *defined_class_ptr)
 {
     const rb_method_entry_t *me = method_entry_get(klass, id, defined_class_ptr);
 
@@ -808,33 +808,33 @@ method_entry_resolve_refienment(VALUE kl https://github.com/ruby/ruby/blob/trunk/vm_method.c#L808
 const rb_method_entry_t *
 rb_method_entry_with_refinements(VALUE klass, ID id)
 {
-    return method_entry_resolve_refienment(klass, id, TRUE, NULL);
+    return method_entry_resolve_refinement(klass, id, TRUE, NULL);
 }
 
 const rb_callable_method_entry_t *
 rb_callable_method_entry_with_refinements(VALUE klass, ID id)
 {
     VALUE defined_class;
-    const rb_method_entry_t *me = method_entry_resolve_refienment(klass, id, TRUE, &defined_class);
+    const rb_method_entry_t *me = method_entry_resolve_refinement(klass, id, TRUE, &defined_class);
     return prepare_callable_method_entry(defined_class, id, me);
 }
 
 const rb_method_entry_t *
 rb_method_entry_without_refinements(VALUE klass, ID id)
 {
-    return method_entry_resolve_refienment(klass, id, FALSE, NULL);
+    return method_entry_resolve_refinement(klass, id, FALSE, NULL);
 }
 
 const rb_callable_method_entry_t *
 rb_callable_method_entry_without_refinements(VALUE klass, ID id)
 {
     VALUE defined_class;
-    const rb_method_entry_t *me = method_entry_resolve_refienment(klass, id, FALSE, &defined_class);
+    const rb_method_entry_t *me = method_entry_resolve_refinement(klass, id, FALSE, &defined_class);
     return prepare_callable_method_entry(defined_class, id, me);
 }
 
 static const rb_method_entry_t *
-refiend_method_original_method_entry(VALUE refinements, const rb_method_entry_t *me, VALUE *defined_class_ptr)
+refined_method_original_method_entry(VALUE refinements, const rb_method_entry_t *me, VALUE *defined_class_ptr)
 {
     VALUE super;
 
@@ -861,7 +861,7 @@ resolve_refined_method(VALUE refinements https://github.com/ruby/ruby/blob/trunk/vm_method.c#L861
 
 	refinement = find_refinement(refinements, me->owner);
 	if (NIL_P(refinement)) {
-	    return refiend_method_original_method_entry(refinements, me, defined_class_ptr);
+	    return refined_method_original_method_entry(refinements, me, defined_class_ptr);
 	}
 	else {
 	    tmp_me = method_entry_get(refinement, me->called_id, defined_class_ptr);
@@ -870,7 +870,7 @@ resolve_refined_method(VALUE refinements https://github.com/ruby/ruby/blob/trunk/vm_method.c#L870
 		return tmp_me;
 	    }
 	    else {
-		return refiend_method_original_method_entry(refinements, me, defined_class_ptr);
+		return refined_method_original_method_entry(refinements, me, defined_class_ptr);
 	    }
 	}
     }
Index: test/ruby/test_refinement.rb
===================================================================
--- test/ruby/test_refinement.rb	(revision 51523)
+++ test/ruby/test_refinement.rb	(revision 51524)
@@ -1467,7 +1467,7 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L1467
       module M
         refine C do
           def foo
-            puts "Refiend C"
+            puts "Refined C"
           end
         end
       end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]