ruby-changes:35958
From: duerst <ko1@a...>
Date: Mon, 20 Oct 2014 12:37:50 +0900 (JST)
Subject: [ruby-changes:35958] duerst:r48039 (trunk): lib/unicode_normalize.rb: (unicode_normalize!): change method names
duerst 2014-10-20 12:37:39 +0900 (Mon, 20 Oct 2014) New Revision: 48039 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48039 Log: lib/unicode_normalize.rb: (unicode_normalize!): change method names in commented-out code. Followup to r48027. Modified files: trunk/ChangeLog trunk/lib/unicode_normalize.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48038) +++ ChangeLog (revision 48039) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Oct 20 12:37:37 2014 Martin Duerst <duerst@i...> + + * 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 <nobu@r...> * variable.c (rb_ivar_get), vm_insnhelper.c (vm_getivar): improve Index: lib/unicode_normalize.rb =================================================================== --- lib/unicode_normalize.rb (revision 48038) +++ lib/unicode_normalize.rb (revision 48039) @@ -34,7 +34,7 @@ class String https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize.rb#L34 ## 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 https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize.rb#L46 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/