unicode-scripts 1.11.0 → 1.12.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 +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/data/scripts.marshal.gz +0 -0
- data/lib/unicode/scripts/constants.rb +2 -2
- data/spec/unicode_scripts_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 408f42160ba401c0d6434f304703bea2f037ace4ba151887111003970564ea08
|
4
|
+
data.tar.gz: 1392a2b3b7b4a717343334f5ac60c0cfec4b32773fddfd46c2287cdda2232279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dad0578c6bee57413301c74c08ec09e86b517d3c206e6671d038dfae3c2b85e624b58ee46a32cf1abf01f8f834be136e7234254e2f147f56bca15901163fe69
|
7
|
+
data.tar.gz: b8f1e8895cff59f52e50d191465bc4608376ff7178b2e96c5e3f720c45abd81636f7c7cac386a3492ad36c8b72e4cd69cff193d02050e123dba7222ce0480507
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Retrieve all [Unicode script(s)](https://en.wikipedia.org/wiki/Script_%28Unicode
|
|
4
4
|
|
5
5
|
Based on the *Script_Extension*, this library can also return the [augmented script set](https://www.unicode.org/reports/tr39/#def-augmented-script-set) to figure out if a string is **mixed-script** or **single-script**. Mixed scripts can be an indicator of suspicious user inputs.
|
6
6
|
|
7
|
-
Unicode version: **
|
7
|
+
Unicode version: **17.0.0** (September 2025)
|
8
8
|
|
9
9
|
Supported Rubies: **3.x** (might work: **2.x**)
|
10
10
|
|
@@ -128,5 +128,5 @@ See [Idiosyncratic Ruby: Proper Unicoding](https://idiosyncratic-ruby.com/41-pro
|
|
128
128
|
|
129
129
|
## MIT License
|
130
130
|
|
131
|
-
- Copyright (C) 2016-
|
131
|
+
- Copyright (C) 2016-2025 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
132
132
|
- 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 = "
|
5
|
+
VERSION = "1.12.0"
|
6
|
+
UNICODE_VERSION = "17.0.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
|
|
@@ -186,5 +186,11 @@ describe Unicode::Scripts do
|
|
186
186
|
assert_equal Unicode::Scripts.names(format: :short, augmented: :only), ["Hanb", "Jpan", "Kore"]
|
187
187
|
end
|
188
188
|
end
|
189
|
+
|
190
|
+
describe '[unicode versions]' do
|
191
|
+
it "works for scripts introduced in Unicode 17" do
|
192
|
+
assert_equal "Tai_Yo", Unicode::Scripts.script("")
|
193
|
+
end
|
194
|
+
end
|
189
195
|
end
|
190
196
|
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.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:
|
11
|
+
date: 2025-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 17.0.0] Retrieve the Unicode script(s) a string belongs to.
|
14
14
|
Can also return the Script_Extension property which is defined as characters which
|
15
15
|
are 'commonly used with more than one script, but with a limited number of scripts'. "
|
16
16
|
email:
|