unicode-blocks 1.7.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 +8 -0
- data/Gemfile.lock +14 -8
- data/MIT-LICENSE.txt +1 -1
- data/README.md +12 -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 +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d666ec02449b42d98b91df1ccb4372a5b00f71dadaebeca4bd7cc0d5708d7d6b
|
4
|
+
data.tar.gz: d005bd93cd8dcf70c056cf805a553471ffda5c5695f99cdf247417ddebbaae03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86bf3347ba3c228cccdbf249e0620eb877c288f794213fee682eb145415a4ed6c5bff280b7748da1de60ddaf8f9bbd76b491140097d0e66673cd149ec99717cd
|
7
|
+
data.tar.gz: 9fad954a04a20717f7b4d5e95da494fbf821ac1865239efa31a8d8af3540c21244404d5ed9d4a98639571552dc0ee22613bc83460e58348a53cf75bdb85c9af6
|
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.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
|
-
|
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-blocks!
|
25
31
|
|
26
32
|
BUNDLED WITH
|
27
|
-
2.
|
33
|
+
2.2.30
|
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: **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 which might still work: **2.
|
9
|
+
Old Rubies which might still work: **2.X**
|
10
10
|
|
11
11
|
## Gemfile
|
12
12
|
|
@@ -267,6 +267,7 @@ Old Hungarian
|
|
267
267
|
Hanifi Rohingya
|
268
268
|
Rumi Numeral Symbols
|
269
269
|
Yezidi
|
270
|
+
Arabic Extended-C
|
270
271
|
Old Sogdian
|
271
272
|
Sogdian
|
272
273
|
Old Uyghur
|
@@ -298,11 +299,13 @@ Zanabazar Square
|
|
298
299
|
Soyombo
|
299
300
|
Unified Canadian Aboriginal Syllabics Extended-A
|
300
301
|
Pau Cin Hau
|
302
|
+
Devanagari Extended-A
|
301
303
|
Bhaiksuki
|
302
304
|
Marchen
|
303
305
|
Masaram Gondi
|
304
306
|
Gunjala Gondi
|
305
307
|
Makasar
|
308
|
+
Kawi
|
306
309
|
Lisu Supplement
|
307
310
|
Tamil Supplement
|
308
311
|
Cuneiform
|
@@ -335,6 +338,7 @@ Znamenny Musical Notation
|
|
335
338
|
Byzantine Musical Symbols
|
336
339
|
Musical Symbols
|
337
340
|
Ancient Greek Musical Notation
|
341
|
+
Kaktovik Numerals
|
338
342
|
Mayan Numerals
|
339
343
|
Tai Xuan Jing Symbols
|
340
344
|
Counting Rod Numerals
|
@@ -342,9 +346,11 @@ Mathematical Alphanumeric Symbols
|
|
342
346
|
Sutton SignWriting
|
343
347
|
Latin Extended-G
|
344
348
|
Glagolitic Supplement
|
349
|
+
Cyrillic Extended-D
|
345
350
|
Nyiakeng Puachue Hmong
|
346
351
|
Toto
|
347
352
|
Wancho
|
353
|
+
Nag Mundari
|
348
354
|
Ethiopic Extended-B
|
349
355
|
Mende Kikakui
|
350
356
|
Adlam
|
@@ -372,8 +378,10 @@ CJK Unified Ideographs Extension C
|
|
372
378
|
CJK Unified Ideographs Extension D
|
373
379
|
CJK Unified Ideographs Extension E
|
374
380
|
CJK Unified Ideographs Extension F
|
381
|
+
CJK Unified Ideographs Extension I
|
375
382
|
CJK Compatibility Ideographs Supplement
|
376
383
|
CJK Unified Ideographs Extension G
|
384
|
+
CJK Unified Ideographs Extension H
|
377
385
|
Tags
|
378
386
|
Variation Selectors Supplement
|
379
387
|
Supplementary Private Use Area-A
|
@@ -384,5 +392,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
384
392
|
|
385
393
|
## MIT License
|
386
394
|
|
387
|
-
- Copyright (C) 2016-
|
395
|
+
- Copyright (C) 2016-2023 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
388
396
|
- 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.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 + "/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.9.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: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 15.1.0] Answers the question: Which Unicode block does a code
|
14
14
|
point belong to?"
|
15
15
|
email:
|
16
16
|
- hi@ruby.consulting
|
@@ -36,7 +36,8 @@ files:
|
|
36
36
|
homepage: https://github.com/janlelis/unicode-blocks
|
37
37
|
licenses:
|
38
38
|
- MIT
|
39
|
-
metadata:
|
39
|
+
metadata:
|
40
|
+
rubygems_mfa_required: 'true'
|
40
41
|
post_install_message:
|
41
42
|
rdoc_options: []
|
42
43
|
require_paths:
|
@@ -52,7 +53,7 @@ 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
|
+
rubygems_version: 3.4.4
|
56
57
|
signing_key:
|
57
58
|
specification_version: 4
|
58
59
|
summary: Return Unicode blocks of a string.
|