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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 4fc5a953011a3e73c3de244442b61039553a3b055f2765300ad9c2c7924ba901
4
- data.tar.gz: 7220ce5e89d8a3e7b18420233ebbb83712dd7182fa8d8b4a250ff9aee948157b
2
+ SHA1:
3
+ metadata.gz: f03250a25609f8531c6038542d11dedb04e5a8f5
4
+ data.tar.gz: a607db16a3253a5fad631e222c782cc397afcffb
5
5
  SHA512:
6
- metadata.gz: 8abe2879ce3c81975b924596ddc60dd9424db7bfd0358e739aa7bae14fa64f58130eb468b06f574a1ec201a6e1f2f7b446ecccbbfc0ddcbec8bf0ac04713732c
7
- data.tar.gz: 5af6bea55a809f11c5aae2584017563ecb7f937ae62c500ec8be9569d706e733a9662ab49322e4c9542e6fdb1454b522223383749bc2dba8898f39e802349b34
6
+ metadata.gz: 2634bef93b541a60407237c358d72bae40676a83fdd8ac8145d028fed521120a7ee72765efc7f8385343ffeea053ccb999bd3f6ee385038d1d1aa7c4eb8725ff
7
+ data.tar.gz: 01c9e722b2e105888cc67482df62064ba795487174a4a914e53e88f78638dc10537b14ef82f447667ec06eace5e2ff5ac9634f68298d0f53c2894e685961269d
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.3.0
4
+
5
+ * Unicode 11
6
+ * Do not depend on rubygems (only use zlib stdlib for unzipping)
7
+
3
8
  ### 1.2.2
4
9
 
5
10
  * Explicitly load rubygems/util, fixes regression in 1.2.1
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2018 Jan Lelis, mail@janlelis.de
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
@@ -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: **10.0.0**
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
Binary file
@@ -1,7 +1,7 @@
1
1
  module Unicode
2
2
  module Blocks
3
- VERSION = "1.2.2".freeze
4
- UNICODE_VERSION = "10.0.0".freeze
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
@@ -1,8 +1,12 @@
1
- require 'rubygems/util'
2
- require_relative 'constants'
1
+ require "zlib"
2
+ require_relative "constants"
3
3
 
4
4
  module Unicode
5
5
  module Blocks
6
- INDEX = Marshal.load(Gem::Util.gunzip(File.binread(INDEX_FILENAME)))
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.2.2
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-04-19 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 10.0.0] Which Unicode block does a character belong to?"
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.7.6
56
+ rubygems_version: 2.6.14
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Return Unicode blocks of a string.