unicode-sequence_name 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -3
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +2 -2
- data/spec/unicode_sequence_name_spec.rb +3 -2
- 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: 7ce16d9dd77769ad11c608f57ec99492f1c6e64d812146fd2c9451b6854d640d
|
4
|
+
data.tar.gz: 5ae055dc2079b8e18e2f95616fb03aef46fcc73912c272e417cd808848d68a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2b00362dec8c61a5b9427be558c123e181fcef7f6d679641308da75870f022e16359b9fc26604d105622f6f8f0326fc876bf2825dc59314864e1ffcc82782e
|
7
|
+
data.tar.gz: 77888ad3890fb0e0761f626ac351ed7a225ac382b3b6195fc8df71d2c256b849c92ee66ae8a14ea247bc0c13d95c67333083eae4d9a8d733e272f2f15526a13a
|
data/.travis.yml
CHANGED
@@ -8,13 +8,12 @@ rvm:
|
|
8
8
|
- 2.4
|
9
9
|
- 2.3
|
10
10
|
- ruby-head
|
11
|
-
- jruby-9.2.
|
12
|
-
- truffleruby
|
11
|
+
- jruby-9.2.11.1
|
12
|
+
- truffleruby-20.2.0
|
13
13
|
|
14
14
|
matrix:
|
15
15
|
allow_failures:
|
16
|
+
- rvm: 2.4
|
16
17
|
- rvm: 2.3
|
17
18
|
- rvm: ruby-head
|
18
|
-
- rvm: jruby-2.9.2.0
|
19
|
-
- rvm: truffleruby
|
20
19
|
# fast_finish: true
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode / Emoji version: **13.0** / **13.
|
5
|
+
Unicode / Emoji version: **13.0** / **13.1** (March 2020 / September 2020)
|
6
6
|
|
7
|
-
Supported Rubies: **2.7**, **2.6**, **2.5
|
7
|
+
Supported Rubies: **2.7**, **2.6**, **2.5** (also latest JRuby and TruffleRuby stable)
|
8
8
|
|
9
|
-
Old Rubies which might still work: **2.3**, **2.2**, **2.1**, **2.0**
|
9
|
+
Old Rubies which might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
@@ -20,6 +20,8 @@ Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
|
20
20
|
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
21
21
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
22
22
|
Unicode::SequenceName.of "🧑🦱" # => "PERSON: CURLY HAIR"
|
23
|
+
Unicode::SequenceName.of "👨🍼" # => MAN FEEDING BABY
|
24
|
+
Unicode::SequenceName.of "❤️🔥" # => HEART ON FIRE
|
23
25
|
```
|
24
26
|
|
25
27
|
Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
|
Binary file
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module SequenceName
|
5
|
-
VERSION = "1.
|
5
|
+
VERSION = "1.8.0"
|
6
6
|
UNICODE_VERSION = "13.0.0"
|
7
|
-
EMOJI_VERSION = "13.
|
7
|
+
EMOJI_VERSION = "13.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,8 +10,9 @@ 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("🧑🦱") # 12.1
|
14
|
-
assert_equal "MAN FEEDING BABY", Unicode::SequenceName.of("👨🍼") # 13.0
|
13
|
+
assert_equal "PERSON: CURLY HAIR", Unicode::SequenceName.of("🧑🦱") # Emoji 12.1
|
14
|
+
assert_equal "MAN FEEDING BABY", Unicode::SequenceName.of("👨🍼") # Emoji 13.0
|
15
|
+
assert_equal "HEART ON FIRE", Unicode::SequenceName.of("❤️🔥") # Emoji 13.1
|
15
16
|
end
|
16
17
|
|
17
18
|
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.8.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: 2020-
|
11
|
+
date: 2020-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode 13.0.0][Emoji 13.
|
13
|
+
description: "[Unicode 13.0.0][Emoji 13.1] Returns the name of a Unicode code point
|
14
14
|
sequence, if one exists"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|