unicode-categories 1.7.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a55f2bf8572f74a9188b1969e1625472c9abf66a5d45376e2ba0c1d41cf3a5cf
4
- data.tar.gz: 4fef80698d971cc0b7395853b1daf7fcb37fcf1e0a571f100747350205034596
3
+ metadata.gz: 5ba2b399298e2f1c74ccf9894f7708bb865852c9b33e3340fcd3ab7e7cc357e1
4
+ data.tar.gz: 833bc2680d3b7d16068f92a880d8fbae3d829bab85a7f6cb405b8e393340b9d6
5
5
  SHA512:
6
- metadata.gz: f4a2341e8293ca64d44f8693c022190de8f3c1bf411b5a972a08fb6bcc0efe34d35189e1311232cfedcbdc860638bdb5216e446f58bbee6e59542318672aa146
7
- data.tar.gz: 2d780af0d933a3a2c22b1460ef958571f80f699cbfdfeee5ade55b92acfa257048312af1018170eccc56cf2809e4a675abb6248312a474908bd0305df2583eb2
6
+ metadata.gz: f746dc02a6ed796de2e725947192e77d6e8d49ae568667256612469994aa08b5fab4c6005c0c7ee5676320741695deca16edbd405992f045fd88116f0dfc9b04
7
+ data.tar.gz: a382380180b80209ea837e0e47c357163dc565751524fd1d9776e9ca6629f5a6ac3e1ccd2121115b2fb3d7fa8d31860bd6d7d8407ef9a4dab55e150772baada5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.9.0
4
+
5
+ - Unicode 15.1
6
+
7
+ ### 1.8.0
8
+
9
+ - Unicode 15.0
10
+
3
11
  ### 1.7.0
4
12
 
5
13
  - Unicode 14.0
data/Gemfile.lock CHANGED
@@ -1,18 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-categories (1.6.0)
4
+ unicode-categories (1.9.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- io-console (0.5.4)
10
- irb (1.2.1)
11
- reline (>= 0.0.1)
12
- minitest (5.14.0)
13
- rake (13.0.1)
14
- reline (0.1.2)
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)
15
20
  io-console (~> 0.5)
21
+ stringio (3.0.8)
16
22
 
17
23
  PLATFORMS
18
24
  ruby
@@ -24,4 +30,4 @@ DEPENDENCIES
24
30
  unicode-categories!
25
31
 
26
32
  BUNDLED WITH
27
- 2.1.2
33
+ 2.2.30
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2021 Jan Lelis, https://janlelis.com
1
+ Copyright (c) 2016-2023 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
  Returns a list which [General Categories](https://en.wikipedia.org/wiki/Unicode_character_property#General_Category) a Unicode string belongs to.
4
4
 
5
- Unicode version: **14.0.0** (September 2021)
5
+ Unicode version: **15.1.0** (September 2023)
6
6
 
7
- Supported Rubies: **3.0**, **2.7**
7
+ Supported Rubies: **3.2**, **3.1**, **3.0**
8
8
 
9
- Old Rubies that might still work: **2.6**, **2.5**, **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
9
+ Old Rubies that might still work: **2.X**
10
10
 
11
11
  ## Gemfile
12
12
 
@@ -95,6 +95,6 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
95
95
 
96
96
  ## MIT License
97
97
 
98
- - Copyright (C) 2016-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
98
+ - Copyright (C) 2016-2023 Jan Lelis <https://janlelis.com>. Released under the MIT license.
99
99
  - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
100
100
 
Binary file
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Unicode
4
4
  module Categories
5
- VERSION = "1.7.0"
6
- UNICODE_VERSION = "14.0.0"
5
+ VERSION = "1.9.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 + "/categories.marshal.gz").freeze
9
9
  end
@@ -21,21 +21,23 @@ describe Unicode::Categories do
21
21
  assert_equal ["Lu", "Nd"], Unicode::Categories.of("2A")
22
22
  end
23
23
 
24
- it "will call .category for every character" do
25
- mocked_method = MiniTest::Mock.new
26
- if RUBY_VERSION >= "2.7"
27
- mocked_method.expect :call, "first category", ["A"]
28
- mocked_method.expect :call, "second category", ["2"]
29
- else
30
- mocked_method.expect :call, "first category", ["A", {}]
31
- mocked_method.expect :call, "second category", ["2", {}]
32
- end
24
+ if RUBY_ENGINE != "jruby"
25
+ it "will call .category for every character" do
26
+ mocked_method = Minitest::Mock.new
27
+ if RUBY_VERSION >= "2.7"
28
+ mocked_method.expect :call, "first category", ["A"]
29
+ mocked_method.expect :call, "second category", ["2"]
30
+ else
31
+ mocked_method.expect :call, "first category", ["A", {}]
32
+ mocked_method.expect :call, "second category", ["2", {}]
33
+ end
33
34
 
34
- Unicode::Categories.stub :category, mocked_method do
35
- Unicode::Categories.of("A2")
36
- end
37
- mocked_method.verify
38
- end
35
+ Unicode::Categories.stub :category, mocked_method do
36
+ Unicode::Categories.of("A2")
37
+ end
38
+ mocked_method.verify
39
+ end
40
+ end
39
41
  end
40
42
 
41
43
  describe ".category" do
@@ -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-categories
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
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: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: '[Unicode 14.0.0] Determine which Unicode "General Categories" a string
13
+ description: '[Unicode 15.1.0] Determine which Unicode "General Categories" a string
14
14
  belongs to'
15
15
  email:
16
16
  - hi@ruby.consulting
@@ -36,7 +36,8 @@ files:
36
36
  homepage: https://github.com/janlelis/unicode-categories
37
37
  licenses:
38
38
  - MIT
39
- metadata: {}
39
+ metadata:
40
+ rubygems_mfa_required: 'true'
40
41
  post_install_message:
41
42
  rdoc_options: []
42
43
  require_paths:
@@ -52,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
54
55
  requirements: []
55
- rubygems_version: 3.2.3
56
+ rubygems_version: 3.4.4
56
57
  signing_key:
57
58
  specification_version: 4
58
59
  summary: Determine the Unicode General Categories of a string