ruby-changes:66728
From: Martin <ko1@a...>
Date: Thu, 8 Jul 2021 15:48:17 +0900 (JST)
Subject: [ruby-changes:66728] 94fc4b1869 (master): Adjust tool/enc-unicode.rb to deal with new location of some emoji files
https://git.ruby-lang.org/ruby.git/commit/?id=94fc4b1869 From 94fc4b18695d3ffa7a379b0ee7150eef237ac1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=BCrst?= <duerst@i...> Date: Sun, 4 Jul 2021 17:11:22 +0900 Subject: Adjust tool/enc-unicode.rb to deal with new location of some emoji files - Change location of file emoji-data.txt - Change range of files in emoji directory ([stz] is for emoji-sequences.txt, emoji-test.txt, and emoji-zwj-sequences.txt) - Make sure that version of all emoji files is checked against Emoji version --- tool/enc-unicode.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb index f64cecb..93f6e86 100755 --- a/tool/enc-unicode.rb +++ b/tool/enc-unicode.rb @@ -138,7 +138,7 @@ def parse_scripts(data, categories) https://github.com/ruby/ruby/blob/trunk/tool/enc-unicode.rb#L138 {:fn => 'DerivedCoreProperties.txt', :title => 'Derived Property'}, {:fn => 'Scripts.txt', :title => 'Script'}, {:fn => 'PropList.txt', :title => 'Binary Property'}, - {:fn => 'emoji-data.txt', :title => 'Emoji'} + {:fn => 'emoji/emoji-data.txt', :title => 'Emoji'} ] current = nil cps = [] @@ -305,13 +305,13 @@ def constantize_blockname(name) https://github.com/ruby/ruby/blob/trunk/tool/enc-unicode.rb#L305 end def get_file(name) - File.join(ARGV[name.start_with?("emoji-") ? 1 : 0], name) + File.join(ARGV[name.start_with?("emoji-[stz]") ? 1 : 0], name) end def data_foreach(name, &block) fn = get_file(name) warn "Reading #{name}" - if /^emoji-/ =~ name + if /^emoji/ =~ name sep = "" pat = /^# #{Regexp.quote(File.basename(name))}.*^# Version: ([\d.]+)/m type = :Emoji -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/