unicode-name 1.12.0 β 1.13.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 +4 -0
- data/Gemfile.lock +3 -3
- data/MIT-LICENSE.txt +1 -1
- data/README.md +7 -4
- data/data/name.marshal.gz +0 -0
- data/lib/unicode/name/constants.rb +2 -2
- data/spec/unicode_name_spec.rb +1 -0
- data/unicode-name.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4698018ace1d5ea494dae78e89b9b034ef75bbb78441c960a3e9afed0a7632b
|
4
|
+
data.tar.gz: 26bec8d0de6272266d958e400b45efc8b979a6e0c5c9792c08824060b239d72d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c016a26447bb75579756602a8bf3ea68a29d8fc46074be79c4583d559779f3251bfbdd6838def8913274c2bbf1f69d225acf6ed6dec258513bb2c091535e7d0c
|
7
|
+
data.tar.gz: f67d5e5edf3554ccc69d52709f1551f8ac066325234c428b604f9e050700883a2cb503d812123cd3b88774afca488b63167c331274bf34ab8e15bb00b43e143c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-name (1.
|
5
|
-
unicode-types (~> 1.
|
4
|
+
unicode-name (1.13.0)
|
5
|
+
unicode-types (~> 1.10)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
reline (0.3.8)
|
21
21
|
io-console (~> 0.5)
|
22
22
|
stringio (3.0.8)
|
23
|
-
unicode-types (1.
|
23
|
+
unicode-types (1.10.0)
|
24
24
|
|
25
25
|
PLATFORMS
|
26
26
|
ruby
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Return Unicode codepoint names, aliases, and labels.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **16.0.0** (September 2024)
|
6
6
|
|
7
|
-
Supported Rubies: **3.2**, **3.1**, **3.0**
|
7
|
+
Supported Rubies: **3.3**, **3.2**, **3.1**, **3.0**
|
8
8
|
|
9
|
-
Old Rubies that might still work: **2.X**
|
9
|
+
Old Rubies that might still work: **2.7**, **2.6**, **2.5**, **2.4**, **2.3**, **2.X**
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
@@ -19,6 +19,9 @@ Unicode::Name.of "π‘" # => "AERIAL TRAMWAY"
|
|
19
19
|
Unicode::Name.of "δΈ" # => "CJK UNIFIED IDEOGRAPH-4E01"
|
20
20
|
Unicode::Name.of "ν" # => "HANGUL SYLLABLE HAN"
|
21
21
|
|
22
|
+
# Unicode 16 (2024) example
|
23
|
+
Unicode::Name.of "π±Ό" # => "SQUARE SPIRAL FROM TOP LEFT"
|
24
|
+
|
22
25
|
# Aliases, by type
|
23
26
|
Unicode::Name.aliases "\t" # => {:control=>["CHARACTER TABULATION", "HORIZONTAL TABULATION"],
|
24
27
|
:abbreviation=>["HT", "TAB"]}
|
@@ -45,5 +48,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
45
48
|
|
46
49
|
## MIT License
|
47
50
|
|
48
|
-
- Copyright (C) 2016-
|
51
|
+
- Copyright (C) 2016-2024 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
49
52
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
data/data/name.marshal.gz
CHANGED
Binary file
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module Name
|
5
|
-
VERSION = "1.
|
6
|
-
UNICODE_VERSION = "
|
5
|
+
VERSION = "1.13.0"
|
6
|
+
UNICODE_VERSION = "16.0.0"
|
7
7
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
8
8
|
INDEX_FILENAME = (DATA_DIRECTORY + "/name.marshal.gz").freeze
|
9
9
|
end
|
data/spec/unicode_name_spec.rb
CHANGED
@@ -24,6 +24,7 @@ describe Unicode::Name do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "works with recent Unicode characters" do
|
27
|
+
assert_equal "SQUARE SPIRAL FROM TOP LEFT", Unicode::Name.of("π±Ό") # Unicode 16.0
|
27
28
|
assert_equal "ALCHEMICAL SYMBOL FOR QUICK LIME", Unicode::Name.of("π") # Unicode 15.1
|
28
29
|
assert_equal "KAKTOVIK NUMERAL ZERO", Unicode::Name.of("π") # Unicode 15.0
|
29
30
|
assert_equal "ETHIOPIC SYLLABLE HHYAA", Unicode::Name.of("π£") # Unicode 14.0
|
data/unicode-name.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode-types
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
27
|
-
description: "[Unicode
|
26
|
+
version: '1.10'
|
27
|
+
description: "[Unicode 16.0.0] Returns the name, aliases, or label of a Unicode code
|
28
28
|
point"
|
29
29
|
email:
|
30
30
|
- hi@ruby.consulting
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
- MIT
|
53
53
|
metadata:
|
54
54
|
rubygems_mfa_required: 'true'
|
55
|
-
post_install_message:
|
55
|
+
post_install_message:
|
56
56
|
rdoc_options: []
|
57
57
|
require_paths:
|
58
58
|
- lib
|
@@ -67,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
71
|
-
signing_key:
|
70
|
+
rubygems_version: 3.5.9
|
71
|
+
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Returns name/aliases/label of a Unicode codepoint
|
74
74
|
test_files:
|