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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +1 -1
- data/lib/unicode/sequence_name.rb +4 -1
- data/spec/unicode_sequence_name_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f3827b24f665cf36e80ea0f1eccb594d7470ede10412f0fec87e698e42ee039
|
4
|
+
data.tar.gz: 951ee79bb9277d26ba72c0f9f7253ac1374411872502b8220d84c9313856d195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
Binary file
|
@@ -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]
|
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.
|
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-
|
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"
|