unicode-sequence_name 1.11.0 → 1.13.0
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 +14 -8
- data/MIT-LICENSE.txt +1 -1
- data/README.md +12 -9
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +4 -4
- data/spec/unicode_sequence_name_spec.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aafb17b3d62ba18cd902df787bc9d114a193b7efc1f36faa847c5aea97949c28
|
4
|
+
data.tar.gz: a27797d3a9f9268a0353fc55bf9d6509a13fdfa57cde40f378d0f9d78b70f4fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20286349ee5a8d0647ccd6a4bfe29ba355217f95edb146dcde4db7b2f3df86ed08f9f9cd93e3f521564305567adaee45f71acd3122bfc17652501a8d5d9745f
|
7
|
+
data.tar.gz: a7b58d30bc6967d833481d5caa93eaba02ab0f8587f1017e4f9d952d4904d746cac129eb0fe0339fb1ac70f11b536aef8a2d40bbe1217bf3d7a9ac009a6b7c29
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-sequence_name (1.
|
4
|
+
unicode-sequence_name (1.13.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
io-console (0.
|
10
|
-
irb (1.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
io-console (0.6.0)
|
10
|
+
irb (1.8.1)
|
11
|
+
rdoc
|
12
|
+
reline (>= 0.3.8)
|
13
|
+
minitest (5.20.0)
|
14
|
+
psych (5.1.0)
|
15
|
+
stringio
|
16
|
+
rake (13.0.6)
|
17
|
+
rdoc (6.5.0)
|
18
|
+
psych (>= 4.0.0)
|
19
|
+
reline (0.3.8)
|
15
20
|
io-console (~> 0.5)
|
21
|
+
stringio (3.0.8)
|
16
22
|
|
17
23
|
PLATFORMS
|
18
24
|
ruby
|
@@ -24,4 +30,4 @@ DEPENDENCIES
|
|
24
30
|
unicode-sequence_name!
|
25
31
|
|
26
32
|
BUNDLED WITH
|
27
|
-
2.
|
33
|
+
2.4.4
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
# Unicode::SequenceName [![[version]](https://badge.fury.io/rb/unicode-sequence_name.svg)](https://badge.fury.io/rb/unicode-sequence_name)
|
1
|
+
# Unicode::SequenceName [![[version]](https://badge.fury.io/rb/unicode-sequence_name.svg)](https://badge.fury.io/rb/unicode-sequence_name) [![[ci]](https://github.com/janlelis/unicode-sequence_name/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-sequence_name/actions?query=workflow%3ATest)
|
2
2
|
|
3
|
-
Returns the name of a Unicode codepoint sequence, if one exists.
|
3
|
+
Returns the name of a Unicode codepoint sequence (= more than one codepoint involved), if one exists.
|
4
4
|
|
5
|
-
Unicode version: **15.
|
5
|
+
Unicode version: **15.1.0** (September 2023)
|
6
6
|
|
7
7
|
Emoji version: **15.0** (September 2022)
|
8
8
|
|
9
|
-
IVD version: **
|
9
|
+
IVD version: **2022-09-13** (September 2022)
|
10
10
|
|
11
|
-
Supported Rubies: **3.
|
11
|
+
Supported Rubies: **3.2**, **3.1**, **3.0**
|
12
12
|
|
13
|
-
Old Rubies which might still work: **2.
|
13
|
+
Old Rubies which might still work: **2.X**
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
@@ -24,8 +24,11 @@ Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
|
24
24
|
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
25
25
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
26
26
|
Unicode::SequenceName.of "🧑🦱" # => "PERSON: CURLY HAIR"
|
27
|
-
Unicode::SequenceName.of "👨🍼" # => MAN FEEDING BABY
|
28
|
-
Unicode::SequenceName.of "❤️🔥" # => HEART ON FIRE
|
27
|
+
Unicode::SequenceName.of "👨🍼" # => "MAN FEEDING BABY"
|
28
|
+
Unicode::SequenceName.of "❤️🔥" # => "HEART ON FIRE"
|
29
|
+
Unicode::SequenceName.of "🫱🏻🫲🏾" # => "HANDSHAKE: LIGHT SKIN TONE, MEDIUM-DARK SKIN TONE"
|
30
|
+
Unicode::SequenceName.of "🐦⬛" # => "BLACK BIRD"
|
31
|
+
Unicode::SequenceName.of "🙂↔️" # => "HEAD SHAKING HORIZONTALLY"
|
29
32
|
```
|
30
33
|
|
31
34
|
Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
|
@@ -37,5 +40,5 @@ Names for singular codepoints are not included, you can use [unicode-name](https
|
|
37
40
|
|
38
41
|
## MIT License
|
39
42
|
|
40
|
-
- Copyright (C) 2017-
|
43
|
+
- Copyright (C) 2017-2023 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
41
44
|
- 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 = "15.
|
7
|
-
EMOJI_VERSION = "15.
|
8
|
-
IVD_VERSION = "
|
5
|
+
VERSION = "1.13.0"
|
6
|
+
UNICODE_VERSION = "15.1.0"
|
7
|
+
EMOJI_VERSION = "15.1"
|
8
|
+
IVD_VERSION = "2022-09-13"
|
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
|
@@ -15,6 +15,7 @@ describe Unicode::SequenceName do
|
|
15
15
|
assert_equal "HEART ON FIRE", Unicode::SequenceName.of("❤️🔥") # Emoji 13.1
|
16
16
|
assert_equal "HANDSHAKE: LIGHT SKIN TONE, MEDIUM-DARK SKIN TONE", Unicode::SequenceName.of("🫱🏻🫲🏾") # Emoji 14.0
|
17
17
|
assert_equal "BLACK BIRD", Unicode::SequenceName.of("🐦⬛") # Emoji 15.0
|
18
|
+
assert_equal "HEAD SHAKING HORIZONTALLY", Unicode::SequenceName.of("🙂↔️") # Emoji 15.1
|
18
19
|
end
|
19
20
|
|
20
21
|
it "will return nil for characters without name" do
|
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.13.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: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode 15.
|
13
|
+
description: "[Unicode 15.1.0][Emoji 15.1] Returns the name of a Unicode code point
|
14
14
|
sequence, if one exists"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
56
|
+
rubygems_version: 3.4.4
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Returns the name of a Unicode codepoint sequence, if one exists
|