ruby-changes:54052
From: duerst <ko1@a...>
Date: Fri, 7 Dec 2018 18:01:17 +0900 (JST)
Subject: [ruby-changes:54052] duerst:r66271 (trunk): replace hardcoded emoji version by RbConfig::CONFIG['UNICODE_EMOJI_VERSION']
duerst 2018-12-07 18:01:13 +0900 (Fri, 07 Dec 2018) New Revision: 66271 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66271 Log: replace hardcoded emoji version by RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] Modified files: trunk/test/ruby/enc/test_emoji_breaks.rb Index: test/ruby/enc/test_emoji_breaks.rb =================================================================== --- test/ruby/enc/test_emoji_breaks.rb (revision 66270) +++ test/ruby/enc/test_emoji_breaks.rb (revision 66271) @@ -30,8 +30,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_emoji_breaks.rb#L30 class TestEmojiBreaks < Test::Unit::TestCase EMOJI_DATA_FILES = %w[emoji-sequences emoji-test emoji-variation-sequences emoji-zwj-sequences] - EMOJI_VERSION = '11.0' # hard-coded, should be replaced by - # RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] or so, see feature #15341 + EMOJI_VERSION = RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] EMOJI_DATA_PATH = File.expand_path("../../../enc/unicode/data/emoji/#{EMOJI_VERSION}", __dir__) def self.expand_filename(basename) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/