unicode-age 2.4.0 → 2.5.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: c748b37e2fd059a1d95ec6bc8fc50ffa36c9af89e405bc328591f7c446f13e29
4
- data.tar.gz: 1be4f778c3209c5e648b4f1eb5c73c6a7cdd5374cb8567720a87f63baf062ca7
3
+ metadata.gz: 6b27cdab54886185638abf89418a3f472cb8b8bf1b0948bf3c0f895ee30a3805
4
+ data.tar.gz: bc46ea7e98a2bf31a48e3014645886cbdb78247adc3feda445fb2c0e58209b9e
5
5
  SHA512:
6
- metadata.gz: a2bc5ec49c062338b271f71ec2f858ea2c620da686ecfaf80a59d2fb8b829210c0d3ff0dd1cdf8314e231cc87dfee6c8e7436eca7c0a8bede16a132b0305541b
7
- data.tar.gz: 78e06a7ab58c42066c3a3a865f604843e72d860c979d2009134793f7c3286828256a34f22c7eae84a9ef358f1e81abcb238d1a1a68f29e382a7d500e89756ace
6
+ metadata.gz: 7037e82552af16c2cbb7b1a65a9e7675515edda7dbc1d6b0c11cef56df5b4f82c4aae0febc3bac66526a6559fc8ee3d31c68b195c2437eb9fbecb1c126202e74
7
+ data.tar.gz: adcc353f446ddef0020bb15b8c6c7132b827a3a5eb2442ebecf82544a80574b217e23417c3e9ace089a3a11bf2bc2cbf35b138e8dbe471fb7de0b289c15604f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.5.0
4
+
5
+ * Add support for Unicode up to 17.0
6
+ * Allow Ruby 4.0
7
+
3
8
  ### 2.4.0
4
9
 
5
10
  * Add support for Unicode up to 15.1
data/Gemfile.lock CHANGED
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-age (2.0.0)
4
+ unicode-age (2.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- minitest (5.10.2)
10
- rake (12.0.0)
9
+ minitest (6.0.1)
10
+ prism (~> 1.5)
11
+ prism (1.7.0)
12
+ rake (13.3.1)
11
13
 
12
14
  PLATFORMS
13
15
  ruby
@@ -18,4 +20,4 @@ DEPENDENCIES
18
20
  unicode-age!
19
21
 
20
22
  BUNDLED WITH
21
- 1.14.6
23
+ 4.0.3
data/README.md CHANGED
@@ -23,4 +23,4 @@ See the [Unicode — Ruby version table at Idiosyncratic Ruby](https://idiosyncr
23
23
 
24
24
  ## MIT License
25
25
 
26
- Copyright (C) 2016-2022 Jan Lelis <https://janlelis.com>. Released under the MIT license.
26
+ Copyright (C) 2016-2026 Jan Lelis <https://janlelis.com>. Released under the MIT license.
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Unicode
4
4
  module Age
5
- VERSION = "2.4.0"
6
- UNICODE_VERSION = "15.1.0"
5
+ VERSION = "2.5.0"
6
+ UNICODE_VERSION = "17.0.0"
7
7
  end
8
8
  end
9
9
 
data/lib/unicode/age.rb CHANGED
@@ -31,6 +31,8 @@ module Unicode
31
31
  14.0,
32
32
  15.0,
33
33
  15.1,
34
+ 16.0,
35
+ 17.0,
34
36
  ].freeze
35
37
 
36
38
  KNOWN_UNICODE_REGEXES = KNOWN_UNICODE_VERSIONS.map{ |uv|
@@ -12,6 +12,11 @@ describe Unicode::Age do
12
12
  assert_equal 8.0, Unicode::Age.of("🌮 ") if RUBY_VERSION >= "2.3.0"
13
13
  assert_equal 9.0, Unicode::Age.of("🛒 ") if RUBY_VERSION >= "2.4.0"
14
14
  assert_equal 10.0, Unicode::Age.of("🛷 ") if RUBY_VERSION >= "2.5.0"
15
+ assert_equal 14.0, Unicode::Age.of("𞟣") if RUBY_VERSION >= "3.2.0"
16
+ assert_equal 15.0, Unicode::Age.of("𝋀") if RUBY_VERSION >= "3.2.0"
17
+ assert_equal 15.1, Unicode::Age.of("𮯰") if RUBY_VERSION >= "4.0.0"
18
+ assert_equal 16.0, Unicode::Age.of("𜱼") if RUBY_VERSION >= "4.0.0"
19
+ assert_equal 17.0, Unicode::Age.of("𑶰") if RUBY_VERSION >= "4.0.0"
15
20
  end
16
21
 
17
22
  it "will raise Unicode::Age::UnknownAge exception for unassigned characters" do
data/unicode-age.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
  gem.metadata = { "rubygems_mfa_required" => "true" }
20
20
 
21
- gem.required_ruby_version = ">= 2.0", "< 4.0"
21
+ gem.required_ruby_version = ">= 2.0", "< 5.0"
22
22
  end
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-age
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-10-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description: "[Unicode 15.1.0] A micromodule to detect which Unicode version is required
12
+ description: "[Unicode 17.0.0] A micromodule to detect which Unicode version is required
14
13
  to display a string."
15
14
  email:
16
15
  - hi@ruby.consulting
@@ -36,7 +35,6 @@ licenses:
36
35
  - MIT
37
36
  metadata:
38
37
  rubygems_mfa_required: 'true'
39
- post_install_message:
40
38
  rdoc_options: []
41
39
  require_paths:
42
40
  - lib
@@ -47,15 +45,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
45
  version: '2.0'
48
46
  - - "<"
49
47
  - !ruby/object:Gem::Version
50
- version: '4.0'
48
+ version: '5.0'
51
49
  required_rubygems_version: !ruby/object:Gem::Requirement
52
50
  requirements:
53
51
  - - ">="
54
52
  - !ruby/object:Gem::Version
55
53
  version: '0'
56
54
  requirements: []
57
- rubygems_version: 3.4.4
58
- signing_key:
55
+ rubygems_version: 4.0.3
59
56
  specification_version: 4
60
57
  summary: Determine required Unicode version of a string.
61
58
  test_files: