ruby-changes:35957
From: nobu <ko1@a...>
Date: Mon, 20 Oct 2014 09:53:27 +0900 (JST)
Subject: [ruby-changes:35957] nobu:r48038 (trunk): tool/unicode_norm_gen.rb: fix for 1.8 BASERUBY
nobu 2014-10-20 09:53:14 +0900 (Mon, 20 Oct 2014) New Revision: 48038 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48038 Log: tool/unicode_norm_gen.rb: fix for 1.8 BASERUBY Modified files: trunk/tool/unicode_norm_gen.rb Index: tool/unicode_norm_gen.rb =================================================================== --- tool/unicode_norm_gen.rb (revision 48037) +++ tool/unicode_norm_gen.rb (revision 48038) @@ -59,9 +59,8 @@ class Hash https://github.com/ruby/ruby/blob/trunk/tool/unicode_norm_gen.rb#L59 end # read the file 'CompositionExclusions.txt' -composition_exclusions = IO.readlines("#{InputDataDir}/CompositionExclusions.txt") - .select { |line| line =~ /^[A-Z0-9]{4,5}/ } - .collect { |line| line.split(' ').first.hex } +composition_exclusions = IO.readlines("#{InputDataDir}/CompositionExclusions.txt"). + grep(/^[A-Z0-9]{4,5}/) {|line| line.split(' ').first.hex} decomposition_table = {} kompatible_table = {} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/