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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feaabd20c3a3869a96e62e34d7c39b83739365549904ecdb129e83d9f73540d4
4
- data.tar.gz: 40af16102c2aa63b35051f09b65cd8e2d14c32fbce21a7c802ea260121ade5b5
3
+ metadata.gz: 408f42160ba401c0d6434f304703bea2f037ace4ba151887111003970564ea08
4
+ data.tar.gz: 1392a2b3b7b4a717343334f5ac60c0cfec4b32773fddfd46c2287cdda2232279
5
5
  SHA512:
6
- metadata.gz: 8d5f215ed6b03d5192eef673d22f0705cac149e3701427570ab52b4e3c538ac1537b7ca5a0768a66e6d5ffdd4d66b9363b4fdafbdf74112df1e7e59ab639cf2c
7
- data.tar.gz: 735b9611f0bfee72dd074a8873c3c269d23a150b6d7a9da64ca33b7d02c5a65316a45eaa47bb60fc44a554b70d3efbd3bcd8cf0c94185e01d7fdd5f767766839
6
+ metadata.gz: 9dad0578c6bee57413301c74c08ec09e86b517d3c206e6671d038dfae3c2b85e624b58ee46a32cf1abf01f8f834be136e7234254e2f147f56bca15901163fe69
7
+ data.tar.gz: b8f1e8895cff59f52e50d191465bc4608376ff7178b2e96c5e3f720c45abd81636f7c7cac386a3492ad36c8b72e4cd69cff193d02050e123dba7222ce0480507
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.12.0
4
+
5
+ - Unicode 17.0
6
+
3
7
  ### 1.11.0
4
8
 
5
9
  - Add augmented scripts and mixed-script detection (as described in UTS39)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-scripts (1.11.0)
4
+ unicode-scripts (1.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2024 Jan Lelis, https://janlelis.com
1
+ Copyright (c) 2016-2025 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
@@ -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: **16.0.0** (September 2024)
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-2024 Jan Lelis <https://janlelis.com>. Released under the MIT license.
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
Binary file
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Unicode
4
4
  module Scripts
5
- VERSION = "1.11.0"
6
- UNICODE_VERSION = "16.0.0"
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.11.0
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: 2024-11-03 00:00:00.000000000 Z
11
+ date: 2025-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 16.0.0] Retrieve the Unicode script(s) a string belongs to.
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: