unicode-sequence_name 1.15.1 → 1.15.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9027ebad3f5176ac6e6e554460da72a6fc2edcefa99e73027df557693f197d3a
4
- data.tar.gz: 34ea77e121ff2ed7c88e94da43bfe78ad313b52fba516255459de01ba7027d5e
3
+ metadata.gz: 6f3827b24f665cf36e80ea0f1eccb594d7470ede10412f0fec87e698e42ee039
4
+ data.tar.gz: 951ee79bb9277d26ba72c0f9f7253ac1374411872502b8220d84c9313856d195
5
5
  SHA512:
6
- metadata.gz: 537a1b631841da656b8bd8a1445791383271f6f7a2fff62c9d413e0db1780d8af1d67f98c7793ec797999985ed6d2b694741c0e101ec14899a37f5e010864fe9
7
- data.tar.gz: f4f0943434c71e329bfa4b7c9551804ab46dc1547a629bde186c95c0aeb2087661232bc74d067dac50a03ce6d12411d1753b582c664dd76d3b547fc89d1f12d5
6
+ metadata.gz: c25a124249e2d14aefeffa20f687b6f817ac0f4e7bf9b6798ef232784bb05b7e3260f6c57912401e6a1f220d7b1cad2a5f56366dea5ad3462b4a39c567b7356e
7
+ data.tar.gz: 678644c98dd036d4082c1ca5089222bd0159f9330bcb53bfa8f3241bac9b493c626ed5c89a95442c7e44a737729abd62c97b0962c1d0b76fe90c0cc27c9e763b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.15.3
4
+
5
+ - Do not duplicate sequence names for non-fqe Emoji sequences in index,
6
+ instead map to fully-qualified first
7
+
8
+ ### 1.15.2
9
+
10
+ - Fix regression introduced in 1.15.1 that non-ASCII sequence names would not work
11
+
3
12
  ### 1.15.1
4
13
 
5
14
  - Optimize index size by substituting common words
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-sequence_name (1.15.1)
4
+ unicode-sequence_name (1.15.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Unicode
4
4
  module SequenceName
5
- VERSION = "1.15.1"
5
+ VERSION = "1.15.3"
6
6
  UNICODE_VERSION = "16.0.0"
7
7
  EMOJI_VERSION = "16.0"
8
8
  IVD_VERSION = "2022-09-13"
@@ -5,7 +5,10 @@ module Unicode
5
5
  def self.sequence_name(string)
6
6
  codepoints = get_codepoint_values(string)
7
7
  require_relative "sequence_name/index" unless defined? ::Unicode::SequenceName::INDEX
8
- if res = INDEX[:SEQUENCES][codepoints] || INDEX[:SEQUENCES_NOT_QUALIFIED][codepoints]
8
+ if res = INDEX[:SEQUENCES][codepoints]
9
+ insert_words(res)
10
+ elsif fqe = INDEX[:EMOJI_NOT_QUALIFIED][string]
11
+ res = INDEX[:SEQUENCES][get_codepoint_values(fqe)]
9
12
  insert_words(res)
10
13
  else
11
14
  nil
@@ -10,6 +10,7 @@ describe Unicode::SequenceName do
10
10
  assert_equal "TAMIL SYLLABLE NI", Unicode::SequenceName.of("நி")
11
11
  assert_equal "FLAG: UNITED NATIONS", Unicode::SequenceName.of("🇺🇳")
12
12
  assert_equal "FLAG: SCOTLAND", Unicode::SequenceName.of("🏴󠁧󠁢󠁳󠁣󠁴󠁿")
13
+ assert_equal "FLAG: ÅLAND ISLANDS", Unicode::SequenceName.of("🇦🇽")
13
14
  assert_equal "PERSON: CURLY HAIR", Unicode::SequenceName.of("🧑‍🦱") # Emoji 12.1
14
15
  assert_equal "MAN FEEDING BABY", Unicode::SequenceName.of("👨‍🍼") # Emoji 13.0
15
16
  assert_equal "HEART ON FIRE", Unicode::SequenceName.of("❤️‍🔥") # Emoji 13.1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-sequence_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.1
4
+ version: 1.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "[Unicode 16.0.0][Emoji 16.0] Returns the name of a Unicode code point
14
14
  sequence, if one exists"