unicode-numeric_value 1.10.0 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c2a1a0d3b6bc8cbf425e7206df7456df830d4d1d1f00e40261d0e1986689984
4
- data.tar.gz: 2422d6f1b7c9ad6cd794858c1ea7d89f1aa5d8b91fe070da15b3aae2166e83ef
3
+ metadata.gz: '090561d907e6eb6381779c7eef541b9866e5d6a7e774e6e47128b853f601cfc0'
4
+ data.tar.gz: a0b05674a97172b71ef207e7335c6a0c7d7b505fa5e7898228393d6e3b258610
5
5
  SHA512:
6
- metadata.gz: bdd3e2fa28aeeac06270960a452ebd2a2bca07986bb9de252734fea238d9aa17d4465f7d59b671d06210f41d3706b3bbb322841a0977f92b37d6c9856e38cbc1
7
- data.tar.gz: c594dd1b88dfab5ad5f714e5838267e8071438e211209008628c94a8f17d44979c5ea356a6ebd410adf3267b1b14828d648832a32220eab54b58077274f4b2ab
6
+ metadata.gz: 383a11cacf6fcdc9d713e7c5f066d398eee0ff62d84f06435a17c3a252575fb044ca4bde4cd9b490a70feeef22652fbdbb3ac9cf61aba9354cf9649830aeac12
7
+ data.tar.gz: 5fac1ae759d2c36026614210b1f1f592452db1a0ce2402a7b14a7d4334656a4ab2f5944a0ee75bf1bbb08eef648789d7673db0421ee6a8f28a2c45119f452a7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.11.0
4
+
5
+ - Unicode 16.0
6
+
3
7
  ### 1.10.0
4
8
 
5
9
  - Unicode 15.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-numeric_value (1.10.0)
4
+ unicode-numeric_value (1.11.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2023 Jan Lelis, https://janlelis.com
1
+ Copyright (c) 2016-2024 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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: **15.1.0** (September 2023)
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
  ## Gemfile
12
12
 
@@ -29,6 +29,7 @@ Unicode::NumericValue.of("༳") # => (-1/2)
29
29
  Unicode::NumericValue.of("𑿀") # => (1/320)
30
30
  Unicode::NumericValue.of("𖭡") # => 1000000000000
31
31
  Unicode::NumericValue.of("五") # => 5
32
+ Unicode::NumericValue.of("𜳷") # => 7
32
33
  Unicode::NumericValue.of("A") # => nil
33
34
  ```
34
35
 
@@ -61,5 +62,5 @@ puts "Codepoint | Character | Numeric Value | Name\n" \
61
62
 
62
63
  ## MIT License
63
64
 
64
- - Copyright (C) 2016-2023 Jan Lelis <https://janlelis.com>. Released under the MIT license.
65
+ - Copyright (C) 2016-2024 Jan Lelis <https://janlelis.com>. Released under the MIT license.
65
66
  - 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.10.0"
6
- UNICODE_VERSION = "15.1.0"
5
+ VERSION = "1.11.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 + "/numeric_value.marshal.gz").freeze
9
9
  end
@@ -10,6 +10,10 @@ describe Unicode::NumericValue do
10
10
  assert_equal 1000000000000, Unicode::NumericValue.of("𖭡")
11
11
  end
12
12
 
13
+ it "works with numbers from Unicode 16 (2024)" do
14
+ assert_equal 7, Unicode::NumericValue.of("𜳷")
15
+ end
16
+
13
17
  it "will return rational values" do
14
18
  assert_equal 3/4r, Unicode::NumericValue.of("¾")
15
19
  assert_equal -1/2r, Unicode::NumericValue.of("༳")
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.10.0
4
+ version: 1.11.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: 2023-10-01 00:00:00.000000000 Z
11
+ date: 2024-09-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 15.1.0] Returns the numeric value associated with a Unicode
13
+ description: "[Unicode 16.0.0] Returns the numeric value associated with a Unicode
14
14
  character"
15
15
  email:
16
16
  - hi@ruby.consulting
@@ -39,7 +39,7 @@ licenses:
39
39
  - MIT
40
40
  metadata:
41
41
  rubygems_mfa_required: 'true'
42
- post_install_message:
42
+ post_install_message:
43
43
  rdoc_options: []
44
44
  require_paths:
45
45
  - lib
@@ -54,8 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubygems_version: 3.4.4
58
- signing_key:
57
+ rubygems_version: 3.5.9
58
+ signing_key:
59
59
  specification_version: 4
60
60
  summary: Returns the numeric value associated with a Unicode character
61
61
  test_files: