unicode-sequence_name 1.9.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 +5 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +6 -6
- data/Rakefile +5 -1
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +3 -3
- data/spec/unicode_sequence_name_spec.rb +1 -0
- metadata +4 -5
- data/.travis.yml +0 -19
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/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
3
|
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **14.0.0** (September 2021)
|
6
6
|
|
7
|
-
Emoji version: **
|
7
|
+
Emoji version: **14.0** (September 2021)
|
8
8
|
|
9
9
|
IVD version: **2020-11-06** (November 2020)
|
10
10
|
|
11
|
-
Supported Rubies: **
|
11
|
+
Supported Rubies: **3.0**, **2.7**
|
12
12
|
|
13
|
-
Old Rubies which might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
13
|
+
Old Rubies which might still work: **2.6**, **2.5**, **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
@@ -37,5 +37,5 @@ Names for singular codepoints are not included, you can use [unicode-name](https
|
|
37
37
|
|
38
38
|
## MIT License
|
39
39
|
|
40
|
-
- Copyright (C) 2017-
|
40
|
+
- Copyright (C) 2017-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
41
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,9 @@
|
|
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
8
|
IVD_VERSION = "2020-11-06"
|
9
9
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
10
10
|
INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
|
@@ -13,6 +13,7 @@ describe Unicode::SequenceName do
|
|
13
13
|
assert_equal "PERSON: CURLY HAIR", Unicode::SequenceName.of("🧑🦱") # Emoji 12.1
|
14
14
|
assert_equal "MAN FEEDING BABY", Unicode::SequenceName.of("👨🍼") # Emoji 13.0
|
15
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
|
16
17
|
end
|
17
18
|
|
18
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