unicode-sequence_name 1.4.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -9
- data/CHANGELOG.md +20 -0
- data/Gemfile +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +14 -6
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +4 -3
- data/spec/unicode_sequence_name_spec.rb +3 -0
- data/unicode-sequence_name.gemspec +4 -4
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c6958e746cb34e3f2cf0b3680f4e4dd6063bfa2de553adc0ef481bfd8ebe7f4
|
4
|
+
data.tar.gz: b1074b7ac65a33786ecbf1b9895e8a08afd1195189846e414c2768db6a720034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec50040cb5159b4b50819a45c24068256cb026d6fc3f0e2b894a51d773562f132aacf66c4bef98ad6e9cf1a2563b89e5bda0a907d6f76b8211f92e1225c5447f
|
7
|
+
data.tar.gz: eaa769f79e97da308f7536f88c481c7748c3825abdde6d8eadfdf2ebed607c09c7b67aa3ba5aeb53f0d9d27ffbc47853aee0e42416a471e2f8393d6f10cd7768
|
data/.travis.yml
CHANGED
@@ -2,21 +2,18 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
|
4
4
|
rvm:
|
5
|
+
- 2.7
|
5
6
|
- 2.6
|
6
7
|
- 2.5
|
7
8
|
- 2.4
|
8
9
|
- 2.3
|
9
|
-
- 2.2
|
10
|
-
- 2.1
|
11
|
-
- 2.0
|
12
10
|
- ruby-head
|
13
|
-
- jruby-
|
14
|
-
-
|
11
|
+
- jruby-9.2.11.1
|
12
|
+
- truffleruby-20.2.0
|
15
13
|
|
16
14
|
matrix:
|
17
15
|
allow_failures:
|
16
|
+
- rvm: 2.4
|
18
17
|
- rvm: 2.3
|
19
|
-
- rvm:
|
20
|
-
|
21
|
-
- rvm: 2.0
|
22
|
-
- rvm: jruby-head
|
18
|
+
- rvm: ruby-head
|
19
|
+
# fast_finish: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,11 +2,15 @@
|
|
2
2
|
|
3
3
|
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode
|
5
|
+
Unicode version: **13.0** (March 2020)
|
6
6
|
|
7
|
-
|
7
|
+
Emoji version: **13.1** (September 2020)
|
8
8
|
|
9
|
-
|
9
|
+
IVD version: **2020-11-06** (November 2020)
|
10
|
+
|
11
|
+
Supported Rubies: **2.7**, **2.6**, **2.5** (also latest JRuby and TruffleRuby stable)
|
12
|
+
|
13
|
+
Old Rubies which might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
10
14
|
|
11
15
|
## Usage
|
12
16
|
|
@@ -19,15 +23,19 @@ Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
|
|
19
23
|
Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
20
24
|
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
21
25
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
26
|
+
Unicode::SequenceName.of "🧑🦱" # => "PERSON: CURLY HAIR"
|
27
|
+
Unicode::SequenceName.of "👨🍼" # => MAN FEEDING BABY
|
28
|
+
Unicode::SequenceName.of "❤️🔥" # => HEART ON FIRE
|
22
29
|
```
|
23
30
|
|
31
|
+
Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
|
32
|
+
|
24
33
|
## Also See
|
25
34
|
|
26
35
|
- [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
36
|
- [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
|
29
37
|
|
30
38
|
## MIT License
|
31
39
|
|
32
|
-
- Copyright (C) 2017-
|
33
|
-
- Unicode data:
|
40
|
+
- Copyright (C) 2017-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
41
|
+
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
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.9.0"
|
6
|
+
UNICODE_VERSION = "13.0.0"
|
7
|
+
EMOJI_VERSION = "13.1"
|
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,6 +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("🧑🦱") # 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
|
13
16
|
end
|
14
17
|
|
15
18
|
it "will return nil for characters without name" do
|
@@ -5,10 +5,10 @@ require File.dirname(__FILE__) + "/lib/unicode/sequence_name/constants"
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "unicode-sequence_name"
|
7
7
|
gem.version = Unicode::SequenceName::VERSION
|
8
|
-
gem.summary = "Returns name of a Unicode codepoint sequence, if one exists"
|
9
|
-
gem.description = "[Unicode #{Unicode::SequenceName::UNICODE_VERSION}][Emoji #{Unicode::SequenceName::EMOJI_VERSION}] Returns name of a Unicode
|
8
|
+
gem.summary = "Returns the name of a Unicode codepoint sequence, if one exists"
|
9
|
+
gem.description = "[Unicode #{Unicode::SequenceName::UNICODE_VERSION}][Emoji #{Unicode::SequenceName::EMOJI_VERSION}] Returns the name of a Unicode code point sequence, if one exists"
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/unicode-sequence_name"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
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.9.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: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
14
|
-
if one exists"
|
13
|
+
description: "[Unicode 13.0.0][Emoji 13.1] Returns the name of a Unicode code point
|
14
|
+
sequence, if one exists"
|
15
15
|
email:
|
16
|
-
-
|
16
|
+
- hi@ruby.consulting
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
@@ -44,7 +44,7 @@ require_paths:
|
|
44
44
|
- lib
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '2.0'
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -53,9 +53,9 @@ 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.1.2
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
|
-
summary: Returns name of a Unicode codepoint sequence, if one exists
|
59
|
+
summary: Returns the name of a Unicode codepoint sequence, if one exists
|
60
60
|
test_files:
|
61
61
|
- spec/unicode_sequence_name_spec.rb
|