unicode-numeric_value 1.8.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/CHANGELOG.md +4 -0
- data/Gemfile.lock +7 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -3
- data/data/numeric_value.marshal.gz +0 -0
- data/lib/unicode/numeric_value/constants.rb +2 -2
- data/spec/unicode_numeric_value_spec.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6df33647f390dfe4b6e565651f92f63241b8ddc9b5f614cd1c84a31688b0fa78
|
4
|
+
data.tar.gz: f495cf0e07aa7f0d2c072cf620ca7b59053115d7be6745a3763c7f4117b96aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f2d50803c912d4d4ce83bb7105c366a08cae3c269c51ab5916e85f25f9ac00fd7095160aa6c6daa20891ff93804fb88b75e59bbfddc318ef0d2b28ac96aaec7
|
7
|
+
data.tar.gz: ceac12c4429d3cb04ac321e05e6087c70b751fa46fd1f392b7c36b34a90ab1f00e91efc82dcc51758883c1ca5a5087ea8f24d390ee8dd0b4626f5088bd442649
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-numeric_value (1.
|
4
|
+
unicode-numeric_value (1.9.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
io-console (0.5.11)
|
10
|
+
irb (1.4.1)
|
11
|
+
reline (>= 0.3.0)
|
9
12
|
minitest (5.8.4)
|
10
13
|
rake (12.0.0)
|
14
|
+
reline (0.3.1)
|
15
|
+
io-console (~> 0.5)
|
11
16
|
|
12
17
|
PLATFORMS
|
13
18
|
ruby
|
14
19
|
|
15
20
|
DEPENDENCIES
|
21
|
+
irb
|
16
22
|
minitest
|
17
23
|
rake
|
18
24
|
unicode-numeric_value!
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Convert a Unicode character into its numeric value.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **15.0.0** (September 2022)
|
6
6
|
|
7
|
-
Supported Rubies: **3.0**, **2.7**
|
7
|
+
Supported Rubies: **3.1**, **3.0**, **2.7**
|
8
8
|
|
9
9
|
Old Rubies that might still work: **2.6**, **2.5**, **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
|
10
10
|
|
@@ -61,5 +61,5 @@ puts "Codepoint | Character | Numeric Value | Name\n" \
|
|
61
61
|
|
62
62
|
## MIT License
|
63
63
|
|
64
|
-
- Copyright (C) 2016-
|
64
|
+
- Copyright (C) 2016-2022 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
65
65
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
Binary file
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module NumericValue
|
5
|
-
VERSION = "1.
|
6
|
-
UNICODE_VERSION = "
|
5
|
+
VERSION = "1.9.0"
|
6
|
+
UNICODE_VERSION = "15.0.0"
|
7
7
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
8
8
|
INDEX_FILENAME = (DATA_DIRECTORY + "/numeric_value.marshal.gz").freeze
|
9
9
|
end
|
@@ -19,6 +19,10 @@ describe Unicode::NumericValue do
|
|
19
19
|
assert_equal nil, Unicode::NumericValue.of("A")
|
20
20
|
assert_equal nil, Unicode::NumericValue.of("\0")
|
21
21
|
end
|
22
|
+
|
23
|
+
it "works with numbers from recent Unicode versions" do
|
24
|
+
assert_equal 0, Unicode::NumericValue.of("𝋀") # Unicode 15.0
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
describe ".chars" do
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-numeric_value
|
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: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 15.0.0] Returns the numeric value associated with a Unicode
|
14
14
|
character"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -53,7 +53,7 @@ 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.3.7
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Returns the numeric value associated with a Unicode character
|