unicode-sequence_name 1.15.2 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +4 -8
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +4 -4
- data/lib/unicode/sequence_name.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f22b5c38865689d72fd5b256193e6892ca842a2cfa9617cff3a9df9bb24753
|
4
|
+
data.tar.gz: db65043f9d5cd8f3ed0b580195c6d9b98a45707f0d5bbafbf5fed5e369bb6e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ec5d51a9d63f7f11ffe90c36ae0642fc6c721fd366130aeb8216ae2704da3e998925073d56d0df9f176bab5fc08e60863b4b142c5e7e88f5ec471609f860d2a
|
7
|
+
data.tar.gz: 6c355b1f4a546333da6a94dc59848a34e95f81b616f315206414edefe14bcc2cb32fdfd9d415b22d6a23b990ba7160c84b8a8f3bfd7a570d9831bdd10e391524
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
+
### 1.16.0
|
4
|
+
|
5
|
+
- Unicode 17.0
|
6
|
+
|
7
|
+
### 1.15.3
|
8
|
+
|
9
|
+
- Do not duplicate sequence names for non-fqe Emoji sequences in index,
|
10
|
+
instead map to fully-qualified first
|
11
|
+
|
3
12
|
### 1.15.2
|
4
13
|
|
5
14
|
- Fix regression introduced in 1.15.1 that non-ASCII sequence names would not work
|
data/Gemfile.lock
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,15 +2,11 @@
|
|
2
2
|
|
3
3
|
Returns the name of a Unicode codepoint sequence (= more than one codepoint involved), if one exists.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **17.0.0** (September 2025)
|
6
6
|
|
7
|
-
Emoji version: **
|
7
|
+
Emoji version: **17.0** (September 2025)
|
8
8
|
|
9
|
-
IVD version: **
|
10
|
-
|
11
|
-
Supported Rubies: **3.3**, **3.2**, **3.1**, **3.0**
|
12
|
-
|
13
|
-
Old Rubies which might still work: **2.X**
|
9
|
+
IVD version: **2025-07-14** (July 2025)
|
14
10
|
|
15
11
|
## Usage
|
16
12
|
|
@@ -46,5 +42,5 @@ name = Unicode::SequenceName.of(char) || Unicode::Name.readable(char)
|
|
46
42
|
|
47
43
|
## MIT License
|
48
44
|
|
49
|
-
- Copyright (C) 2017-
|
45
|
+
- Copyright (C) 2017-2025 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
50
46
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
Binary file
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module SequenceName
|
5
|
-
VERSION = "1.
|
6
|
-
UNICODE_VERSION = "
|
7
|
-
EMOJI_VERSION = "
|
8
|
-
IVD_VERSION = "
|
5
|
+
VERSION = "1.16.0"
|
6
|
+
UNICODE_VERSION = "17.0.0"
|
7
|
+
EMOJI_VERSION = "17.0"
|
8
|
+
IVD_VERSION = "2025-07-14"
|
9
9
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
10
10
|
INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
|
11
11
|
end
|
@@ -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
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-sequence_name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 17.0.0][Emoji 17.0] Returns the name of a Unicode code point
|
14
14
|
sequence, if one exists"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|