unicode-sequence_name 1.6.0 → 1.10.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 +17 -0
- data/Gemfile.lock +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +11 -5
- data/Rakefile +5 -1
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +4 -3
- data/spec/unicode_sequence_name_spec.rb +4 -2
- metadata +4 -5
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f0c1cb1975b78bd640e8a33ed3cec8ed66cfccb5498bfafa81a6a13ac3ebefc
|
4
|
+
data.tar.gz: 944edb1a2ad1ddc530a10462934924ce89d42181cb01b25b67a4930ad479c107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61f23708ffa7449871eb272bcf448a9360fffd1dd8d39420d4fb9c72668e69a1743a1fa77ff8f8390edd740a727626cc6e6a4123516cba09cd36c45f3275513f
|
7
|
+
data.tar.gz: 54ed2fac27b84d63d6b858a1d1aabcb420ac1d546780bae2d808b858656f7feef07f771376113286fdeac2aa16ecd59e85f7cb4319f93800473b59bcd83ffa1e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +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
3
|
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode
|
5
|
+
Unicode version: **14.0.0** (September 2021)
|
6
6
|
|
7
|
-
|
7
|
+
Emoji version: **14.0** (September 2021)
|
8
8
|
|
9
|
-
|
9
|
+
IVD version: **2020-11-06** (November 2020)
|
10
|
+
|
11
|
+
Supported Rubies: **3.0**, **2.7**
|
12
|
+
|
13
|
+
Old Rubies which might still work: **2.6**, **2.5**, **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
10
14
|
|
11
15
|
## Usage
|
12
16
|
|
@@ -20,6 +24,8 @@ Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
|
20
24
|
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
21
25
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
22
26
|
Unicode::SequenceName.of "🧑🦱" # => "PERSON: CURLY HAIR"
|
27
|
+
Unicode::SequenceName.of "👨🍼" # => MAN FEEDING BABY
|
28
|
+
Unicode::SequenceName.of "❤️🔥" # => HEART ON FIRE
|
23
29
|
```
|
24
30
|
|
25
31
|
Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
|
@@ -31,5 +37,5 @@ Names for singular codepoints are not included, you can use [unicode-name](https
|
|
31
37
|
|
32
38
|
## MIT License
|
33
39
|
|
34
|
-
- Copyright (C) 2017-
|
40
|
+
- Copyright (C) 2017-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
35
41
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
data/Rakefile
CHANGED
@@ -32,6 +32,10 @@ end
|
|
32
32
|
|
33
33
|
desc "#{gemspec.name} | Spec"
|
34
34
|
task :spec do
|
35
|
-
|
35
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
36
|
+
sh "for %f in (spec/\*.rb) do ruby spec/%f"
|
37
|
+
else
|
38
|
+
sh "for file in spec/*.rb; do ruby $file; done"
|
39
|
+
end
|
36
40
|
end
|
37
41
|
task default: :spec
|
Binary file
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module SequenceName
|
5
|
-
VERSION = "1.
|
6
|
-
UNICODE_VERSION = "
|
7
|
-
EMOJI_VERSION = "
|
5
|
+
VERSION = "1.10.0"
|
6
|
+
UNICODE_VERSION = "14.0.0"
|
7
|
+
EMOJI_VERSION = "14.0"
|
8
|
+
IVD_VERSION = "2020-11-06"
|
8
9
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
9
10
|
INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
|
10
11
|
end
|
@@ -10,8 +10,10 @@ 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
|
16
|
+
assert_equal "HANDSHAKE: LIGHT SKIN TONE, MEDIUM-DARK SKIN TONE", Unicode::SequenceName.of("🫱🏻🫲🏾") # Emoji 14.0
|
15
17
|
end
|
16
18
|
|
17
19
|
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.10.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: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 14.0.0][Emoji 14.0] Returns the name of a Unicode code point
|
14
14
|
sequence, if one exists"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -19,7 +19,6 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".gitignore"
|
22
|
-
- ".travis.yml"
|
23
22
|
- CHANGELOG.md
|
24
23
|
- CODE_OF_CONDUCT.md
|
25
24
|
- Gemfile
|
@@ -53,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '0'
|
55
54
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
55
|
+
rubygems_version: 3.2.3
|
57
56
|
signing_key:
|
58
57
|
specification_version: 4
|
59
58
|
summary: Returns the name of a Unicode codepoint sequence, if one exists
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.7
|
6
|
-
- 2.6
|
7
|
-
- 2.5
|
8
|
-
- 2.4
|
9
|
-
- 2.3
|
10
|
-
- ruby-head
|
11
|
-
- jruby-9.2.9.0
|
12
|
-
- truffleruby
|
13
|
-
|
14
|
-
matrix:
|
15
|
-
allow_failures:
|
16
|
-
- rvm: 2.3
|
17
|
-
- rvm: ruby-head
|
18
|
-
- rvm: jruby-2.9.2.0
|
19
|
-
- rvm: truffleruby
|
20
|
-
# fast_finish: true
|