unicode-blocks 1.8.0 → 1.10.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 +8 -0
- data/Gemfile.lock +13 -7
- data/MIT-LICENSE.txt +1 -1
- data/README.md +15 -4
- data/data/blocks.marshal.gz +0 -0
- data/lib/unicode/blocks/constants.rb +2 -2
- data/spec/unicode_blocks_spec.rb +1 -1
- data/unicode-blocks.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: fec3349bb9fa52ff8e2a95ed6a079addcce50eb31174884e95fa860f3d7d22c5
|
4
|
+
data.tar.gz: 1cf56e530557f8c1f1e5a03aeac99ff28c67c7eb91b329a65e5a3209ee5bb20f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865ac933659b46ea0e4eec13b5ee92a36b2889fecf1abc798d514c91c43262e7464b40a609c37db32cd76da19322f7ed34d8ae4a1e1a631a82ade591bfb5c61f
|
7
|
+
data.tar.gz: 3554824666cb4c4b36a8b412ab1b5d0d16a5fdeaf6aa9a3776152d3befa375b6a4167ff8665a2fd423e0041791ea9d0197764be673313c7a4ffc291cdc087e28
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unicode-blocks (1.
|
4
|
+
unicode-blocks (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
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Each Unicode character belongs to a [block](https://en.wikipedia.org/wiki/Unicode_block). This gem returns the all blocks associated with the given string.
|
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 which might still work: **2.
|
9
|
+
Old Rubies which might still work: **2.7**, **2.6**, **2.5**, **2.4**, **2.3**, **2.X**
|
10
10
|
|
11
11
|
## Gemfile
|
12
12
|
|
@@ -243,6 +243,7 @@ Osage
|
|
243
243
|
Elbasan
|
244
244
|
Caucasian Albanian
|
245
245
|
Vithkuqi
|
246
|
+
Todhri
|
246
247
|
Linear A
|
247
248
|
Latin Extended-F
|
248
249
|
Cypriot Syllabary
|
@@ -265,6 +266,7 @@ Psalter Pahlavi
|
|
265
266
|
Old Turkic
|
266
267
|
Old Hungarian
|
267
268
|
Hanifi Rohingya
|
269
|
+
Garay
|
268
270
|
Rumi Numeral Symbols
|
269
271
|
Yezidi
|
270
272
|
Arabic Extended-C
|
@@ -284,12 +286,14 @@ Khojki
|
|
284
286
|
Multani
|
285
287
|
Khudawadi
|
286
288
|
Grantha
|
289
|
+
Tulu-Tigalari
|
287
290
|
Newa
|
288
291
|
Tirhuta
|
289
292
|
Siddham
|
290
293
|
Modi
|
291
294
|
Mongolian Supplement
|
292
295
|
Takri
|
296
|
+
Myanmar Extended-C
|
293
297
|
Ahom
|
294
298
|
Dogra
|
295
299
|
Warang Citi
|
@@ -300,6 +304,7 @@ Soyombo
|
|
300
304
|
Unified Canadian Aboriginal Syllabics Extended-A
|
301
305
|
Pau Cin Hau
|
302
306
|
Devanagari Extended-A
|
307
|
+
Sunuwar
|
303
308
|
Bhaiksuki
|
304
309
|
Marchen
|
305
310
|
Masaram Gondi
|
@@ -314,12 +319,15 @@ Early Dynastic Cuneiform
|
|
314
319
|
Cypro-Minoan
|
315
320
|
Egyptian Hieroglyphs
|
316
321
|
Egyptian Hieroglyph Format Controls
|
322
|
+
Egyptian Hieroglyphs Extended-A
|
317
323
|
Anatolian Hieroglyphs
|
324
|
+
Gurung Khema
|
318
325
|
Bamum Supplement
|
319
326
|
Mro
|
320
327
|
Tangsa
|
321
328
|
Bassa Vah
|
322
329
|
Pahawh Hmong
|
330
|
+
Kirat Rai
|
323
331
|
Medefaidrin
|
324
332
|
Miao
|
325
333
|
Ideographic Symbols and Punctuation
|
@@ -334,6 +342,7 @@ Small Kana Extension
|
|
334
342
|
Nushu
|
335
343
|
Duployan
|
336
344
|
Shorthand Format Controls
|
345
|
+
Symbols for Legacy Computing Supplement
|
337
346
|
Znamenny Musical Notation
|
338
347
|
Byzantine Musical Symbols
|
339
348
|
Musical Symbols
|
@@ -351,6 +360,7 @@ Nyiakeng Puachue Hmong
|
|
351
360
|
Toto
|
352
361
|
Wancho
|
353
362
|
Nag Mundari
|
363
|
+
Ol Onal
|
354
364
|
Ethiopic Extended-B
|
355
365
|
Mende Kikakui
|
356
366
|
Adlam
|
@@ -378,6 +388,7 @@ CJK Unified Ideographs Extension C
|
|
378
388
|
CJK Unified Ideographs Extension D
|
379
389
|
CJK Unified Ideographs Extension E
|
380
390
|
CJK Unified Ideographs Extension F
|
391
|
+
CJK Unified Ideographs Extension I
|
381
392
|
CJK Compatibility Ideographs Supplement
|
382
393
|
CJK Unified Ideographs Extension G
|
383
394
|
CJK Unified Ideographs Extension H
|
@@ -391,5 +402,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
391
402
|
|
392
403
|
## MIT License
|
393
404
|
|
394
|
-
- Copyright (C) 2016-
|
405
|
+
- Copyright (C) 2016-2024 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
395
406
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
data/data/blocks.marshal.gz
CHANGED
Binary file
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module Blocks
|
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 + "/blocks.marshal.gz").freeze
|
9
9
|
end
|
data/spec/unicode_blocks_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe Unicode::Blocks do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it "will call .block for every character" do
|
20
|
-
mocked_method =
|
20
|
+
mocked_method = Minitest::Mock.new
|
21
21
|
mocked_method.expect :call, "first block", ["С"]
|
22
22
|
mocked_method.expect :call, "second block", ["A"]
|
23
23
|
Unicode::Blocks.stub :block, mocked_method do
|
data/unicode-blocks.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-blocks
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 16.0.0] Answers the question: Which Unicode block does a code
|
14
14
|
point belong to?"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -36,8 +36,9 @@ files:
|
|
36
36
|
homepage: https://github.com/janlelis/unicode-blocks
|
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: Return Unicode blocks of a string.
|
59
60
|
test_files:
|