unicode-sequence_name 1.4.0 → 1.5.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 +4 -0
- data/README.md +6 -4
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +2 -2
- 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: 6157c3beeb99578ada6b4a7bff891ff336c4f33af497a3f8df91a620b1fd3594
|
4
|
+
data.tar.gz: 46cc6b1a7ee27ac1e731ba597c5bdc61147093181cc95b2cc456bdd610a34224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07dd863e3d46e29353b38f5922f9fd577fbbb15d20979ddcac6f3236162b40d8e3a7a8061a27a0c02e457c92fe832b23fe33e9b2d0c70770f8d077725cf7f517
|
7
|
+
data.tar.gz: e4d2faad1a959061aed1cb7e83adef9f09a06373c3060c556856117627cd8d8df7d92ad611e43b7f508222bbf99829776f02f336ae033ae15459832b5334fad5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode / Emoji version: **12.1** / **12.
|
5
|
+
Unicode / Emoji version: **12.1** / **12.1** (May / October 2019)
|
6
6
|
|
7
7
|
Supported Rubies: **2.6**, **2.5**, **2.4**
|
8
8
|
|
@@ -19,15 +19,17 @@ Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
|
|
19
19
|
Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
20
20
|
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
21
21
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
22
|
+
Unicode::SequenceName.of "🧑🦱" # => "PERSON: CURLY HAIR"
|
22
23
|
```
|
23
24
|
|
25
|
+
Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
|
26
|
+
|
24
27
|
## Also See
|
25
28
|
|
26
29
|
- [uniscribe](https://github.com/janlelis/uniscribe) - cli utility that makes use of unicode_sequence-name
|
27
|
-
- [unicode-name](https://github.com/janlelis/unicode-name) - single codepoint names
|
28
30
|
- [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
|
29
31
|
|
30
32
|
## MIT License
|
31
33
|
|
32
|
-
- Copyright (C) 2017-2019 Jan Lelis <
|
33
|
-
- Unicode data:
|
34
|
+
- Copyright (C) 2017-2019 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
35
|
+
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
Binary file
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module SequenceName
|
5
|
-
VERSION = "1.
|
5
|
+
VERSION = "1.5.0"
|
6
6
|
UNICODE_VERSION = "12.1.0"
|
7
|
-
EMOJI_VERSION = "12.
|
7
|
+
EMOJI_VERSION = "12.1"
|
8
8
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
9
9
|
INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
|
10
10
|
end
|
@@ -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 "PERSON: CURLY HAIR", Unicode::SequenceName.of("🧑🦱")
|
13
14
|
end
|
14
15
|
|
15
16
|
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.5.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: 2019-
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode 12.1.0][Emoji 12.
|
13
|
+
description: "[Unicode 12.1.0][Emoji 12.1] Returns name of a Unicode codepoint sequence,
|
14
14
|
if one exists"
|
15
15
|
email:
|
16
16
|
- mail@janlelis.de
|
@@ -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.0.
|
56
|
+
rubygems_version: 3.0.6
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Returns name of a Unicode codepoint sequence, if one exists
|