ruby-changes:36259
From: nobu <ko1@a...>
Date: Sun, 9 Nov 2014 19:01:45 +0900 (JST)
Subject: [ruby-changes:36259] nobu:r48340 (trunk): normalize.rb: fix syntax error
nobu 2014-11-09 19:01:37 +0900 (Sun, 09 Nov 2014) New Revision: 48340 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48340 Log: normalize.rb: fix syntax error * lib/unicode_normalize/normalize.rb (normalized): fix syntax error, `when` clase allows `*` but not `**`. Modified files: trunk/lib/unicode_normalize/normalize.rb Index: lib/unicode_normalize/normalize.rb =================================================================== --- lib/unicode_normalize/normalize.rb (revision 48339) +++ lib/unicode_normalize/normalize.rb (revision 48340) @@ -158,7 +158,7 @@ module UnicodeNormalize https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize/normalize.rb#L158 end when Encoding::US_ASCII true - when **UNICODE_ENCODINGS + when *UNICODE_ENCODINGS normalized? string.encode(Encoding::UTF_8), form else raise Encoding::CompatibilityError, "Unicode Normalization not appropriate for #{encoding}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/