unicode-blocks 1.5.0 → 1.6.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/.travis.yml +8 -12
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +15 -7
- data/data/blocks.marshal.gz +0 -0
- data/lib/unicode/blocks/constants.rb +2 -2
- data/unicode-blocks.gemspec +3 -3
- metadata +7 -7
- data/.CHANGELOG.md.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8813faec62e469d167e08be80cde1d7ebc3479506c034d106d1a7f83ce2fd9f9
|
4
|
+
data.tar.gz: 4156c968942f410b61301e04140c2406bca0a0dfef56df2535d37a7db1a55ae4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b915b36e5b5baa23dd581d1f82cf9481d15e425cb00a0bdcbc4190cf7b7b0eee6f933055f5f3048d3277a3fa16a287c1516f136f093e5998bde755d4697450ec
|
7
|
+
data.tar.gz: 2192c9e8cb37ae753321df4eaf6cd6d4ea7ff7862c5eadf56f3c61e0ad85261a0e42cf676e625b7d52d5e83e10e266b546e5f29a6050d7ecfd9b07acc08e45b4
|
data/.travis.yml
CHANGED
@@ -1,24 +1,20 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
|
4
|
-
script: bundle exec ruby spec/unicode_blocks_spec.rb
|
5
|
-
|
6
4
|
rvm:
|
7
|
-
-
|
5
|
+
- 2.7
|
8
6
|
- 2.6
|
9
7
|
- 2.5
|
10
8
|
- 2.4
|
11
9
|
- 2.3
|
12
|
-
-
|
13
|
-
- 2.
|
14
|
-
-
|
15
|
-
- jruby-head
|
16
|
-
- jruby-9.2.6.0
|
10
|
+
- ruby-head
|
11
|
+
- jruby-9.2.9.0
|
12
|
+
- truffleruby
|
17
13
|
|
18
14
|
matrix:
|
19
15
|
allow_failures:
|
20
|
-
- rvm: jruby-head
|
21
16
|
- rvm: 2.3
|
22
|
-
- rvm:
|
23
|
-
- rvm: 2.
|
24
|
-
- rvm:
|
17
|
+
- rvm: ruby-head
|
18
|
+
- rvm: jruby-2.9.2.0
|
19
|
+
- rvm: truffleruby
|
20
|
+
# fast_finish: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Unicode::Blocks [![[version]](https://badge.fury.io/rb/unicode-blocks.svg)](https://badge.fury.io/rb/unicode-blocks) [![[travis]](https://travis-ci.org/janlelis/unicode-blocks.png)](https://travis-ci.org/janlelis/unicode-blocks)
|
2
2
|
|
3
|
-
Each Unicode character belongs to a [block](https://en.wikipedia.org/wiki/Unicode_block). This gem returns the all blocks
|
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: **13.0.0** (March 2020)
|
6
6
|
|
7
|
-
Supported Rubies: **2.6**, **2.5**, **2.4**
|
7
|
+
Supported Rubies: **2.7**, **2.6**, **2.5**, **2.4**
|
8
8
|
|
9
|
-
Old Rubies
|
9
|
+
Old Rubies which might still work: **2.3**, **2.2**, **2.1**, **2.0**
|
10
10
|
|
11
11
|
## Gemfile
|
12
12
|
|
@@ -40,7 +40,7 @@ The list of blocks is always sorted alphabetically.
|
|
40
40
|
|
41
41
|
### Regex Matching
|
42
42
|
|
43
|
-
If you have a string and want to match a substring/character from a specific Unicode block, you actually won't need this gem. Instead, you can use the [Regexp Unicode Property Syntax `\p{}`](
|
43
|
+
If you have a string and want to match a substring/character from a specific Unicode block, you actually won't need this gem. Instead, you can use the [Regexp Unicode Property Syntax `\p{}`](https://ruby-doc.org/core/Regexp.html#class-Regexp-label-Character+Properties) with blocks by prefixing the block name with "In":
|
44
44
|
|
45
45
|
```ruby
|
46
46
|
"⧉⪥⟤".scan(/\p{In Miscellaneous Mathematical Symbols-B}/) # => ["⧉"]
|
@@ -263,8 +263,10 @@ Old Turkic
|
|
263
263
|
Old Hungarian
|
264
264
|
Hanifi Rohingya
|
265
265
|
Rumi Numeral Symbols
|
266
|
+
Yezidi
|
266
267
|
Old Sogdian
|
267
268
|
Sogdian
|
269
|
+
Chorasmian
|
268
270
|
Elymaic
|
269
271
|
Brahmi
|
270
272
|
Kaithi
|
@@ -286,6 +288,7 @@ Takri
|
|
286
288
|
Ahom
|
287
289
|
Dogra
|
288
290
|
Warang Citi
|
291
|
+
Dives Akuru
|
289
292
|
Nandinagari
|
290
293
|
Zanabazar Square
|
291
294
|
Soyombo
|
@@ -295,6 +298,7 @@ Marchen
|
|
295
298
|
Masaram Gondi
|
296
299
|
Gunjala Gondi
|
297
300
|
Makasar
|
301
|
+
Lisu Supplement
|
298
302
|
Tamil Supplement
|
299
303
|
Cuneiform
|
300
304
|
Cuneiform Numbers and Punctuation
|
@@ -311,6 +315,8 @@ Miao
|
|
311
315
|
Ideographic Symbols and Punctuation
|
312
316
|
Tangut
|
313
317
|
Tangut Components
|
318
|
+
Khitan Small Script
|
319
|
+
Tangut Supplement
|
314
320
|
Kana Supplement
|
315
321
|
Kana Extended-A
|
316
322
|
Small Kana Extension
|
@@ -348,12 +354,14 @@ Supplemental Arrows-C
|
|
348
354
|
Supplemental Symbols and Pictographs
|
349
355
|
Chess Symbols
|
350
356
|
Symbols and Pictographs Extended-A
|
357
|
+
Symbols for Legacy Computing
|
351
358
|
CJK Unified Ideographs Extension B
|
352
359
|
CJK Unified Ideographs Extension C
|
353
360
|
CJK Unified Ideographs Extension D
|
354
361
|
CJK Unified Ideographs Extension E
|
355
362
|
CJK Unified Ideographs Extension F
|
356
363
|
CJK Compatibility Ideographs Supplement
|
364
|
+
CJK Unified Ideographs Extension G
|
357
365
|
Tags
|
358
366
|
Variation Selectors Supplement
|
359
367
|
Supplementary Private Use Area-A
|
@@ -364,5 +372,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
364
372
|
|
365
373
|
## MIT License
|
366
374
|
|
367
|
-
- Copyright (C) 2016-
|
368
|
-
- Unicode data:
|
375
|
+
- Copyright (C) 2016-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
376
|
+
- 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.6.0"
|
6
|
+
UNICODE_VERSION = "13.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/unicode-blocks.gemspec
CHANGED
@@ -6,9 +6,9 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "unicode-blocks"
|
7
7
|
gem.version = Unicode::Blocks::VERSION
|
8
8
|
gem.summary = "Return Unicode blocks of a string."
|
9
|
-
gem.description = "[Unicode #{Unicode::Blocks::UNICODE_VERSION}] Which Unicode block does a
|
9
|
+
gem.description = "[Unicode #{Unicode::Blocks::UNICODE_VERSION}] Answers the question: Which Unicode block does a code point belong to?"
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/unicode-blocks"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 13.0.0] Answers the question: Which Unicode block does a code
|
14
|
+
point belong to?"
|
14
15
|
email:
|
15
|
-
-
|
16
|
+
- hi@ruby.consulting
|
16
17
|
executables: []
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
|
-
- ".CHANGELOG.md.swp"
|
21
21
|
- ".gitignore"
|
22
22
|
- ".travis.yml"
|
23
23
|
- CHANGELOG.md
|
@@ -44,7 +44,7 @@ require_paths:
|
|
44
44
|
- lib
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '2.0'
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
56
|
+
rubygems_version: 3.1.2
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Return Unicode blocks of a string.
|
data/.CHANGELOG.md.swp
DELETED
Binary file
|