unicode-blocks 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +13 -2
- data/data/blocks.marshal.gz +0 -0
- data/lib/unicode/blocks/constants.rb +2 -2
- data/lib/unicode/blocks/index.rb +7 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f03250a25609f8531c6038542d11dedb04e5a8f5
|
4
|
+
data.tar.gz: a607db16a3253a5fad631e222c782cc397afcffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2634bef93b541a60407237c358d72bae40676a83fdd8ac8145d028fed521120a7ee72765efc7f8385343ffeea053ccb999bd3f6ee385038d1d1aa7c4eb8725ff
|
7
|
+
data.tar.gz: 01c9e722b2e105888cc67482df62064ba795487174a4a914e53e88f78638dc10537b14ef82f447667ec06eace5e2ff5ac9634f68298d0f53c2894e685961269d
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Each unicode character belongs to a [block](https://en.wikipedia.org/wiki/Unicode_block). This gem returns the all blocks asociated with the given string.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **11.0.0**
|
6
6
|
|
7
7
|
Supported Rubies: **2.5**, **2.4**, **2.3**
|
8
8
|
|
@@ -119,6 +119,7 @@ Batak
|
|
119
119
|
Lepcha
|
120
120
|
Ol Chiki
|
121
121
|
Cyrillic Extended-C
|
122
|
+
Georgian Extended
|
122
123
|
Sundanese Supplement
|
123
124
|
Vedic Extensions
|
124
125
|
Phonetic Extensions
|
@@ -258,7 +259,10 @@ Inscriptional Pahlavi
|
|
258
259
|
Psalter Pahlavi
|
259
260
|
Old Turkic
|
260
261
|
Old Hungarian
|
262
|
+
Hanifi Rohingya
|
261
263
|
Rumi Numeral Symbols
|
264
|
+
Old Sogdian
|
265
|
+
Sogdian
|
262
266
|
Brahmi
|
263
267
|
Kaithi
|
264
268
|
Sora Sompeng
|
@@ -277,6 +281,7 @@ Modi
|
|
277
281
|
Mongolian Supplement
|
278
282
|
Takri
|
279
283
|
Ahom
|
284
|
+
Dogra
|
280
285
|
Warang Citi
|
281
286
|
Zanabazar Square
|
282
287
|
Soyombo
|
@@ -284,6 +289,8 @@ Pau Cin Hau
|
|
284
289
|
Bhaiksuki
|
285
290
|
Marchen
|
286
291
|
Masaram Gondi
|
292
|
+
Gunjala Gondi
|
293
|
+
Makasar
|
287
294
|
Cuneiform
|
288
295
|
Cuneiform Numbers and Punctuation
|
289
296
|
Early Dynastic Cuneiform
|
@@ -293,6 +300,7 @@ Bamum Supplement
|
|
293
300
|
Mro
|
294
301
|
Bassa Vah
|
295
302
|
Pahawh Hmong
|
303
|
+
Medefaidrin
|
296
304
|
Miao
|
297
305
|
Ideographic Symbols and Punctuation
|
298
306
|
Tangut
|
@@ -305,6 +313,7 @@ Shorthand Format Controls
|
|
305
313
|
Byzantine Musical Symbols
|
306
314
|
Musical Symbols
|
307
315
|
Ancient Greek Musical Notation
|
316
|
+
Mayan Numerals
|
308
317
|
Tai Xuan Jing Symbols
|
309
318
|
Counting Rod Numerals
|
310
319
|
Mathematical Alphanumeric Symbols
|
@@ -312,6 +321,7 @@ Sutton SignWriting
|
|
312
321
|
Glagolitic Supplement
|
313
322
|
Mende Kikakui
|
314
323
|
Adlam
|
324
|
+
Indic Siyaq Numbers
|
315
325
|
Arabic Mathematical Alphabetic Symbols
|
316
326
|
Mahjong Tiles
|
317
327
|
Domino Tiles
|
@@ -326,6 +336,7 @@ Alchemical Symbols
|
|
326
336
|
Geometric Shapes Extended
|
327
337
|
Supplemental Arrows-C
|
328
338
|
Supplemental Symbols and Pictographs
|
339
|
+
Chess Symbols
|
329
340
|
CJK Unified Ideographs Extension B
|
330
341
|
CJK Unified Ideographs Extension C
|
331
342
|
CJK Unified Ideographs Extension D
|
@@ -342,5 +353,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
342
353
|
|
343
354
|
## MIT License
|
344
355
|
|
345
|
-
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
356
|
+
- Copyright (C) 2016-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
346
357
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
data/data/blocks.marshal.gz
CHANGED
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Unicode
|
2
2
|
module Blocks
|
3
|
-
VERSION = "1.
|
4
|
-
UNICODE_VERSION = "
|
3
|
+
VERSION = "1.3.0".freeze
|
4
|
+
UNICODE_VERSION = "11.0.0".freeze
|
5
5
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
|
6
6
|
INDEX_FILENAME = (DATA_DIRECTORY + '/blocks.marshal.gz').freeze
|
7
7
|
end
|
data/lib/unicode/blocks/index.rb
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require "zlib"
|
2
|
+
require_relative "constants"
|
3
3
|
|
4
4
|
module Unicode
|
5
5
|
module Blocks
|
6
|
-
|
6
|
+
File.open(INDEX_FILENAME, "rb") do |file|
|
7
|
+
serialized_data = Zlib::GzipReader.new(file).read
|
8
|
+
serialized_data.force_encoding Encoding::BINARY
|
9
|
+
INDEX = Marshal.load(serialized_data)
|
10
|
+
end
|
7
11
|
end
|
8
12
|
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.3.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: 2018-
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 11.0.0] Which Unicode block does a character belong to?"
|
14
14
|
email:
|
15
15
|
- mail@janlelis.de
|
16
16
|
executables: []
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.6.14
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Return Unicode blocks of a string.
|