unicode-scripts 1.8.0 → 1.9.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +13 -7
- data/MIT-LICENSE.txt +1 -1
- data/README.md +4 -4
- data/data/scripts.marshal.gz +0 -0
- data/lib/unicode/scripts/constants.rb +2 -2
- data/spec/unicode_scripts_spec.rb +2 -2
- data/unicode-scripts.gemspec +1 -0
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3af7d40f02bdf4a276addf67e1f3dc0bdb76b4ba7658b68fb7de9a433ddba2a3
|
|
4
|
+
data.tar.gz: 19af4744dc3fee1e6f61e07134fdcca25dd6883bcc71b60707f6e3e22a03e2d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27ce63fcb077fff302de67202d8418327c097c9bd1bfd9b2cfe34bf452148fefda1d3caf07a6ae3d3d106c4603220769d277aaa9a6774a5a979873ef7e929e53
|
|
7
|
+
data.tar.gz: ca20a49dc38d5cb9ca76747bcbd89f2b0d6256b39da6aa994fd9e69862ca159b8738f5a9c984e67ef23c8cdb6739d097b73c69adb6cd1d61bd499b1b5c47407f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
unicode-scripts (1.
|
|
4
|
+
unicode-scripts (1.9.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
io-console (0.
|
|
10
|
-
irb (1.
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
13
16
|
rake (13.0.6)
|
|
14
|
-
|
|
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-scripts!
|
|
25
31
|
|
|
26
32
|
BUNDLED WITH
|
|
27
|
-
|
|
33
|
+
2.4.4
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Retrieve the [Unicode script(s)](https://en.wikipedia.org/wiki/Script_%28Unicode%29) a string belongs to. Can also return the *Script_Extension* property which is defined as characters which are "commonly used with more than one script, but with a limited number of scripts".
|
|
4
4
|
|
|
5
|
-
Unicode version: **15.
|
|
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
|
|
|
@@ -405,5 +405,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
|
405
405
|
|
|
406
406
|
## MIT License
|
|
407
407
|
|
|
408
|
-
- Copyright (C) 2016-
|
|
408
|
+
- Copyright (C) 2016-2023 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
|
409
409
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
data/data/scripts.marshal.gz
CHANGED
|
Binary file
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Unicode
|
|
4
4
|
module Scripts
|
|
5
|
-
VERSION = "1.
|
|
6
|
-
UNICODE_VERSION = "15.
|
|
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 + "/scripts.marshal.gz").freeze
|
|
9
9
|
end
|
|
@@ -18,7 +18,7 @@ describe Unicode::Scripts do
|
|
|
18
18
|
|
|
19
19
|
if RUBY_ENGINE != "jruby"
|
|
20
20
|
it "will call .script for every character" do
|
|
21
|
-
mocked_method =
|
|
21
|
+
mocked_method = Minitest::Mock.new
|
|
22
22
|
if RUBY_VERSION >= "2.7"
|
|
23
23
|
mocked_method.expect :call, "first script", ["С"]
|
|
24
24
|
mocked_method.expect :call, "second script", ["A"]
|
|
@@ -114,7 +114,7 @@ describe Unicode::Scripts do
|
|
|
114
114
|
|
|
115
115
|
if RUBY_VERSION >= "3.0" && RUBY_ENGINE != "jruby"
|
|
116
116
|
it "will call .scripts for characters that have no explicit script extension" do
|
|
117
|
-
mocked_method =
|
|
117
|
+
mocked_method = Minitest::Mock.new
|
|
118
118
|
|
|
119
119
|
mocked_method.expect(:call, ["scripts"], ["A"], format: :long)
|
|
120
120
|
|
data/unicode-scripts.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,18 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unicode-scripts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.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: 2023-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: "[Unicode 15.
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
description: "[Unicode 15.1.0] Retrieve the Unicode script(s) a string belongs to.
|
|
14
|
+
Can also return the Script_Extension property which is defined as characters which
|
|
15
|
+
are 'commonly used with more than one script, but with a limited number of scripts'. "
|
|
16
16
|
email:
|
|
17
17
|
- hi@ruby.consulting
|
|
18
18
|
executables: []
|
|
@@ -37,8 +37,9 @@ files:
|
|
|
37
37
|
homepage: https://github.com/janlelis/unicode-scripts
|
|
38
38
|
licenses:
|
|
39
39
|
- MIT
|
|
40
|
-
metadata:
|
|
41
|
-
|
|
40
|
+
metadata:
|
|
41
|
+
rubygems_mfa_required: 'true'
|
|
42
|
+
post_install_message:
|
|
42
43
|
rdoc_options: []
|
|
43
44
|
require_paths:
|
|
44
45
|
- lib
|
|
@@ -53,9 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
53
54
|
- !ruby/object:Gem::Version
|
|
54
55
|
version: '0'
|
|
55
56
|
requirements: []
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
signing_key:
|
|
57
|
+
rubygems_version: 3.4.4
|
|
58
|
+
signing_key:
|
|
59
59
|
specification_version: 4
|
|
60
60
|
summary: Which script(s) does a Unicode string belong to?
|
|
61
61
|
test_files:
|