unicode-numeric_value 1.8.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 +8 -0
- data/Gemfile.lock +16 -4
- data/MIT-LICENSE.txt +1 -1
- data/README.md +4 -4
- data/data/numeric_value.marshal.gz +0 -0
- data/lib/unicode/numeric_value/constants.rb +2 -2
- data/spec/unicode_numeric_value_spec.rb +6 -2
- data/unicode-numeric_value.gemspec +1 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c2a1a0d3b6bc8cbf425e7206df7456df830d4d1d1f00e40261d0e1986689984
|
4
|
+
data.tar.gz: 2422d6f1b7c9ad6cd794858c1ea7d89f1aa5d8b91fe070da15b3aae2166e83ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdd3e2fa28aeeac06270960a452ebd2a2bca07986bb9de252734fea238d9aa17d4465f7d59b671d06210f41d3706b3bbb322841a0977f92b37d6c9856e38cbc1
|
7
|
+
data.tar.gz: c594dd1b88dfab5ad5f714e5838267e8071438e211209008628c94a8f17d44979c5ea356a6ebd410adf3267b1b14828d648832a32220eab54b58077274f4b2ab
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-numeric_value (1.
|
4
|
+
unicode-numeric_value (1.10.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
|
10
|
-
|
9
|
+
io-console (0.6.0)
|
10
|
+
irb (1.8.1)
|
11
|
+
rdoc
|
12
|
+
reline (>= 0.3.8)
|
13
|
+
minitest (5.20.0)
|
14
|
+
psych (5.1.0)
|
15
|
+
stringio
|
16
|
+
rake (13.0.6)
|
17
|
+
rdoc (6.5.0)
|
18
|
+
psych (>= 4.0.0)
|
19
|
+
reline (0.3.8)
|
20
|
+
io-console (~> 0.5)
|
21
|
+
stringio (3.0.8)
|
11
22
|
|
12
23
|
PLATFORMS
|
13
24
|
ruby
|
14
25
|
|
15
26
|
DEPENDENCIES
|
27
|
+
irb
|
16
28
|
minitest
|
17
29
|
rake
|
18
30
|
unicode-numeric_value!
|
19
31
|
|
20
32
|
BUNDLED WITH
|
21
|
-
|
33
|
+
2.4.4
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Convert a Unicode character into its numeric value.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **15.1.0** (September 2023)
|
6
6
|
|
7
|
-
Supported Rubies: **3.
|
7
|
+
Supported Rubies: **3.2**, **3.1**, **3.0**
|
8
8
|
|
9
|
-
Old Rubies that might still work: **2.
|
9
|
+
Old Rubies that might still work: **2.X**
|
10
10
|
|
11
11
|
## Gemfile
|
12
12
|
|
@@ -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-2023 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.10.0"
|
6
|
+
UNICODE_VERSION = "15.1.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
|
@@ -16,8 +16,12 @@ describe Unicode::NumericValue do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it "will return nil if no numeric value associated" do
|
19
|
-
|
20
|
-
|
19
|
+
assert_nil Unicode::NumericValue.of("A")
|
20
|
+
assert_nil Unicode::NumericValue.of("\0")
|
21
|
+
end
|
22
|
+
|
23
|
+
it "works with numbers from recent Unicode versions" do
|
24
|
+
assert_equal 0, Unicode::NumericValue.of("𝋀") # Unicode 15.0
|
21
25
|
end
|
22
26
|
end
|
23
27
|
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
|
+
gem.metadata = { "rubygems_mfa_required" => "true" }
|
19
20
|
|
20
21
|
gem.required_ruby_version = ">= 2.0"
|
21
22
|
end
|
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.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: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 15.1.0] Returns the numeric value associated with a Unicode
|
14
14
|
character"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -37,7 +37,8 @@ files:
|
|
37
37
|
homepage: https://github.com/janlelis/unicode-numeric_value
|
38
38
|
licenses:
|
39
39
|
- MIT
|
40
|
-
metadata:
|
40
|
+
metadata:
|
41
|
+
rubygems_mfa_required: 'true'
|
41
42
|
post_install_message:
|
42
43
|
rdoc_options: []
|
43
44
|
require_paths:
|
@@ -53,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '0'
|
55
56
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
57
|
+
rubygems_version: 3.4.4
|
57
58
|
signing_key:
|
58
59
|
specification_version: 4
|
59
60
|
summary: Returns the numeric value associated with a Unicode character
|