unicode-categories 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 +14 -8
- data/MIT-LICENSE.txt +1 -1
- data/README.md +4 -4
- data/data/categories.marshal.gz +0 -0
- data/lib/unicode/categories/constants.rb +2 -2
- data/spec/unicode_categories_spec.rb +1 -1
- data/unicode-categories.gemspec +1 -0
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63ce4cd0ad5560588ef864f3b52763196b1eb17b8e83eab0a1644bb0fa848a32
|
4
|
+
data.tar.gz: 6d6df8e8d4b29217a46eae4a638db9fc6507f39413a3816dea065a7d33cdd097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b3ae3cdde9eeb55fdc9f87efe4975f334b122c9a36cd4dd986304cc14120ad4f9a13dfc9037c6a68a056270715de4d87922c4703808afad29e0dffa9bc86e9
|
7
|
+
data.tar.gz: bf58113ecde0d96ff8604b5a64eba91a19877dec838b7eb206b83aef2d099ee376bcec84e840f279684c651b2f032ab4e415fa69c21b3f0f02dc68f226aeb2ee
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-categories (1.
|
4
|
+
unicode-categories (1.10.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
io-console (0.
|
10
|
-
irb (1.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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.
|
33
|
+
2.5.17
|
data/MIT-LICENSE.txt
CHANGED
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: **
|
5
|
+
Unicode version: **16.0.0** (September 2024)
|
6
6
|
|
7
|
-
Supported Rubies: **3.
|
7
|
+
Supported Rubies: **3.3**, **3.2**, **3.1**, **3.0**
|
8
8
|
|
9
|
-
Old Rubies that might still work: **2.
|
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
|
|
@@ -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-
|
98
|
+
- Copyright (C) 2016-2024 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
99
99
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
100
100
|
|
data/data/categories.marshal.gz
CHANGED
Binary file
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module Categories
|
5
|
-
VERSION = "1.
|
6
|
-
UNICODE_VERSION = "
|
5
|
+
VERSION = "1.10.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 + "/categories.marshal.gz").freeze
|
9
9
|
end
|
@@ -23,7 +23,7 @@ describe Unicode::Categories do
|
|
23
23
|
|
24
24
|
if RUBY_ENGINE != "jruby"
|
25
25
|
it "will call .category for every character" do
|
26
|
-
mocked_method =
|
26
|
+
mocked_method = Minitest::Mock.new
|
27
27
|
if RUBY_VERSION >= "2.7"
|
28
28
|
mocked_method.expect :call, "first category", ["A"]
|
29
29
|
mocked_method.expect :call, "second category", ["2"]
|
data/unicode-categories.gemspec
CHANGED
@@ -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.
|
4
|
+
version: 1.10.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:
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: '[Unicode
|
13
|
+
description: '[Unicode 16.0.0] Determine which Unicode "General Categories" a string
|
14
14
|
belongs to'
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -36,8 +36,9 @@ files:
|
|
36
36
|
homepage: https://github.com/janlelis/unicode-categories
|
37
37
|
licenses:
|
38
38
|
- MIT
|
39
|
-
metadata:
|
40
|
-
|
39
|
+
metadata:
|
40
|
+
rubygems_mfa_required: 'true'
|
41
|
+
post_install_message:
|
41
42
|
rdoc_options: []
|
42
43
|
require_paths:
|
43
44
|
- lib
|
@@ -52,8 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
53
|
- !ruby/object:Gem::Version
|
53
54
|
version: '0'
|
54
55
|
requirements: []
|
55
|
-
rubygems_version: 3.
|
56
|
-
signing_key:
|
56
|
+
rubygems_version: 3.5.9
|
57
|
+
signing_key:
|
57
58
|
specification_version: 4
|
58
59
|
summary: Determine the Unicode General Categories of a string
|
59
60
|
test_files:
|