From 0fe805125287d40bb254a7bd8cb15940dc8ca5f4 Mon Sep 17 00:00:00 2001 From: duerst Date: Mon, 20 Oct 2014 03:37:39 +0000 Subject: [PATCH] lib/unicode_normalize.rb: (unicode_normalize!): change method names in commented-out code. Followup to r48027. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/unicode_normalize.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d0b085646..88247f6ec3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 20 12:37:37 2014 Martin Duerst + + * lib/unicode_normalize.rb: (unicode_normalize!): change method names + in commented-out code. Followup to r48027. + Mon Oct 20 02:23:27 2014 Nobuyoshi Nakada * variable.c (rb_ivar_get), vm_insnhelper.c (vm_getivar): improve diff --git a/lib/unicode_normalize.rb b/lib/unicode_normalize.rb index 89c868560b..c1c1cd13d3 100644 --- a/lib/unicode_normalize.rb +++ b/lib/unicode_normalize.rb @@ -34,7 +34,7 @@ class String ## UnicodeNormalize. However, tests didn't show any noticeable speedup ## when doing this. This comment also applies to the commented out lines ## in String#unicode_normalize! and String#unicode_normalized?. - # String.send(:define_method, :normalize, ->(form = :nfc) { UnicodeNormalize.normalize(self, form) } ) + # String.send(:define_method, :unicode_normalize, ->(form = :nfc) { UnicodeNormalize.normalize(self, form) } ) UnicodeNormalize.normalize(self, form) end @@ -46,7 +46,7 @@ class String # def unicode_normalize!(form = :nfc) require 'unicode_normalize/normalize.rb' unless defined? UnicodeNormalize - # String.send(:define_method, :normalize!, ->(form = :nfc) { replace(normalize(form)) } ) + # String.send(:define_method, :unicode_normalize!, ->(form = :nfc) { replace(unicode_normalize(form)) } ) replace(self.unicode_normalize(form)) end