unicode-sequence_name 1.2.0 → 1.3.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 +7 -5
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +7 -7
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +7 -6
- data/spec/unicode_sequence_name_spec.rb +2 -2
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 434aa8e312ba7ff312bde9ca4e7a922d2494a35c78c1b58463c7514d47677d8c
|
4
|
+
data.tar.gz: 7c7dcbd62fa7b061f6549a9d9bf6f6416daf901589a3a58de48c38f9c3df5c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfa24967c1ee4e1d1a031560096879f8f08c748040d511bb1fdc62b2b52c80954c8a9ebc811b4aa420016e082b70124c001a92b1e11d829a5595632bc4ddf70
|
7
|
+
data.tar.gz: 2b7548a0ec071e8ab4d10a953f8fcbf34c0bc4f6e78a83d4398cac375a710b04cd11c4d8be1dd16ae5443f08416b730c781ab9389bed723e07dbc1853216856f
|
data/.travis.yml
CHANGED
@@ -2,18 +2,20 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
|
4
4
|
rvm:
|
5
|
-
-
|
6
|
-
- 2.5.
|
7
|
-
- 2.4.
|
8
|
-
- 2.3.
|
5
|
+
- 2.6.1
|
6
|
+
- 2.5.3
|
7
|
+
- 2.4.5
|
8
|
+
- 2.3.8
|
9
9
|
- 2.2
|
10
10
|
- 2.1
|
11
11
|
- 2.0
|
12
|
+
- ruby-head
|
12
13
|
- jruby-head
|
13
|
-
- jruby-9.
|
14
|
+
- jruby-9.2.6.0
|
14
15
|
|
15
16
|
matrix:
|
16
17
|
allow_failures:
|
18
|
+
- rvm: 2.3.8
|
17
19
|
- rvm: 2.2
|
18
20
|
- rvm: 2.1
|
19
21
|
- rvm: 2.0
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# Unicode::SequenceName [![[version]](https://badge.fury.io/rb/unicode-sequence_name.svg)](
|
1
|
+
# Unicode::SequenceName [![[version]](https://badge.fury.io/rb/unicode-sequence_name.svg)](https://badge.fury.io/rb/unicode-sequence_name) [![[travis]](https://travis-ci.org/janlelis/unicode-sequence_name.png)](https://travis-ci.org/janlelis/unicode-sequence_name)
|
2
2
|
|
3
|
-
Returns name of a Unicode codepoint sequence, if one exists.
|
3
|
+
Returns the name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode / Emoji version: **
|
5
|
+
Unicode / Emoji version: **12.0** (March / February 2019)
|
6
6
|
|
7
|
-
Supported Rubies: **2.
|
7
|
+
Supported Rubies: **2.6**, **2.5**, **2.4**
|
8
8
|
|
9
|
-
Old Rubies but might still work: **2.2**, **2.1**, **2.0**
|
9
|
+
Old Rubies but might still work: **2.3**, **2.2**, **2.1**, **2.0**
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
@@ -17,7 +17,7 @@ Unicode::SequenceName.of "‼︎" # => "DOUBLE EXCLAMATION MARK (text style)"
|
|
17
17
|
Unicode::SequenceName.of "㓟︀" # => "CJK COMPATIBILITY IDEOGRAPH-2F81F"
|
18
18
|
Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
|
19
19
|
Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
|
20
|
-
Unicode::SequenceName.of "🇺🇳" # => "UNITED NATIONS"
|
20
|
+
Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
|
21
21
|
Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
22
22
|
```
|
23
23
|
|
@@ -29,5 +29,5 @@ Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
|
29
29
|
|
30
30
|
## MIT License
|
31
31
|
|
32
|
-
- Copyright (C) 2017-
|
32
|
+
- Copyright (C) 2017-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
33
33
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
Binary file
|
@@ -1,10 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Unicode
|
2
4
|
module SequenceName
|
3
|
-
VERSION = "1.
|
4
|
-
UNICODE_VERSION = "
|
5
|
-
EMOJI_VERSION = "
|
6
|
-
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) +
|
7
|
-
INDEX_FILENAME = (DATA_DIRECTORY +
|
5
|
+
VERSION = "1.3.0"
|
6
|
+
UNICODE_VERSION = "12.0.0"
|
7
|
+
EMOJI_VERSION = "12.0"
|
8
|
+
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
9
|
+
INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
|
8
10
|
end
|
9
11
|
end
|
10
|
-
|
@@ -8,8 +8,8 @@ describe Unicode::SequenceName do
|
|
8
8
|
assert_equal "CJK COMPATIBILITY IDEOGRAPH-2F81F", Unicode::SequenceName.of("㓟︀")
|
9
9
|
assert_equal "MYANMAR LETTER NGA (dotted form)", Unicode::SequenceName.of("င︀")
|
10
10
|
assert_equal "TAMIL SYLLABLE NI", Unicode::SequenceName.of("நி")
|
11
|
-
assert_equal "UNITED NATIONS", Unicode::SequenceName.of("🇺🇳")
|
12
|
-
assert_equal "SCOTLAND", Unicode::SequenceName.of("🏴")
|
11
|
+
assert_equal "FLAG: UNITED NATIONS", Unicode::SequenceName.of("🇺🇳")
|
12
|
+
assert_equal "FLAG: SCOTLAND", Unicode::SequenceName.of("🏴")
|
13
13
|
end
|
14
14
|
|
15
15
|
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.3.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: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 12.0.0] Returns name of a Unicode codepoint sequence, if one
|
14
14
|
exists"
|
15
15
|
email:
|
16
16
|
- mail@janlelis.de
|
@@ -53,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
|
-
|
57
|
-
rubygems_version: 2.7.6
|
56
|
+
rubygems_version: 3.0.1
|
58
57
|
signing_key:
|
59
58
|
specification_version: 4
|
60
59
|
summary: Returns name of a Unicode codepoint sequence, if one exists
|