lib/uniscribe/version.rb in uniscribe-1.4.0 vs lib/uniscribe/version.rb in uniscribe-1.5.0

- old
+ new

@@ -1,23 +1,13 @@ # frozen_string_literal: true +require "unicode/version" + module Uniscribe - VERSION = "1.4.0" + VERSION = "1.5.0" + UNICODE_VERSION = "12.1.0" - EMOJI_VERSION = "12.1" + EMOJI_VERSION = "13.0" - RUBY_UNICODE_VERSIONS = { - 2.6 => "12.1.0", - "2.6.2" => "12.0.0", - "2.6.1" => "11.0.0", - "2.6.0" => "11.0.0", - 2.5 => "10.0.0", - 2.4 => "9.0.0", - 2.3 => "8.0.0", - 2.2 => "7.0.0", - 2.1 => "6.1.0", - }.freeze - UNICODE_VERSION_GLYPH_DETECTION = RUBY_ENGINE == "ruby" && - RUBY_UNICODE_VERSIONS[RUBY_VERSION] || - RUBY_UNICODE_VERSIONS[RUBY_VERSION.to_f] + Unicode::Version.unicode_version end