unicode-blocks 1.3.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f03250a25609f8531c6038542d11dedb04e5a8f5
4
- data.tar.gz: a607db16a3253a5fad631e222c782cc397afcffb
2
+ SHA256:
3
+ metadata.gz: 80a0be578ae09d39ac540f91bad52804bafd263807e2fafd4c05cb17f20e81bf
4
+ data.tar.gz: f74078fb7dbc481e9890a9be2da723b7c362506a6a34afd2ab094420fc7956ce
5
5
  SHA512:
6
- metadata.gz: 2634bef93b541a60407237c358d72bae40676a83fdd8ac8145d028fed521120a7ee72765efc7f8385343ffeea053ccb999bd3f6ee385038d1d1aa7c4eb8725ff
7
- data.tar.gz: 01c9e722b2e105888cc67482df62064ba795487174a4a914e53e88f78638dc10537b14ef82f447667ec06eace5e2ff5ac9634f68298d0f53c2894e685961269d
6
+ metadata.gz: 204d67076e419612d96a3d2f6d29bedff0eb4b907a68e7d228e42e37eb75f5a17114f6f5dc57dae0ec84da8ed6e4e1a0b76fd99e96e148e84d6b87919212eab4
7
+ data.tar.gz: 9d9e53b5485451f17683dacae0dc8aecc4e4e873c80932915b13eba9890fa29b93326c2440c1ed78dad79c06814759de6f398f46ede5f38266f8f86df36cb0c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.7.0
4
+
5
+ - Unicode 14.0
6
+
7
+ ### 1.6.0
8
+
9
+ * Unicode 13.0
10
+
11
+ ### 1.5.0
12
+
13
+ * Unicode 12.1
14
+
15
+ ### 1.4.0
16
+
17
+ * Unicode 12
18
+
3
19
  ### 1.3.0
4
20
 
5
21
  * Unicode 11
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
7
+ gem 'irb' unless RUBY_ENGINE == "jruby"
data/Gemfile.lock CHANGED
@@ -1,21 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-blocks (1.3.0)
4
+ unicode-blocks (1.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- minitest (5.11.3)
10
- rake (12.3.1)
9
+ io-console (0.5.4)
10
+ irb (1.2.1)
11
+ reline (>= 0.0.1)
12
+ minitest (5.14.0)
13
+ rake (13.0.1)
14
+ reline (0.1.2)
15
+ io-console (~> 0.5)
11
16
 
12
17
  PLATFORMS
13
18
  ruby
14
19
 
15
20
  DEPENDENCIES
21
+ irb
16
22
  minitest
17
23
  rake
18
24
  unicode-blocks!
19
25
 
20
26
  BUNDLED WITH
21
- 1.16.1
27
+ 2.1.2
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2018 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2021 Jan Lelis, https://janlelis.com
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
@@ -1,12 +1,12 @@
1
- # Unicode::Blocks [![[version]](https://badge.fury.io/rb/unicode-blocks.svg)](http://badge.fury.io/rb/unicode-blocks) [![[travis]](https://travis-ci.org/janlelis/unicode-blocks.png)](https://travis-ci.org/janlelis/unicode-blocks)
1
+ # Unicode::Blocks [![[version]](https://badge.fury.io/rb/unicode-blocks.svg)](https://badge.fury.io/rb/unicode-blocks) [![[ci]](https://github.com/janlelis/unicode-blocks/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-blocks/actions?query=workflow%3ATest)
2
2
 
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.
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: **11.0.0**
5
+ Unicode version: **14.0.0** (September 2021)
6
6
 
7
- Supported Rubies: **2.5**, **2.4**, **2.3**
7
+ Supported Rubies: **3.0**, **2.7**
8
8
 
9
- Old Rubies that might still work: **2.2**, **2.1**, **2.0**
9
+ Old Rubies which might still work: **2.6**, **2.5**, **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
10
10
 
11
11
  ## Gemfile
12
12
 
@@ -40,12 +40,14 @@ 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{}`](http://ruby-doc.org/core-2.3.0/Regexp.html#class-Regexp-label-Character+Properties) with blocks by prefixing the block name with "In":
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}/) # => ["⧉"]
47
47
  ```
48
48
 
49
+ See [Idiosyncratic Ruby: Proper Unicoding](https://idiosyncratic-ruby.com/41-proper-unicoding.html) for more info.
50
+
49
51
  ### Block Names
50
52
 
51
53
  You can retrieve all block names (except for **No_Block**) like this:
@@ -76,6 +78,7 @@ NKo
76
78
  Samaritan
77
79
  Mandaic
78
80
  Syriac Supplement
81
+ Arabic Extended-B
79
82
  Arabic Extended-A
80
83
  Devanagari
81
84
  Bengali
@@ -239,7 +242,9 @@ Osmanya
239
242
  Osage
240
243
  Elbasan
241
244
  Caucasian Albanian
245
+ Vithkuqi
242
246
  Linear A
247
+ Latin Extended-F
243
248
  Cypriot Syllabary
244
249
  Imperial Aramaic
245
250
  Palmyrene
@@ -261,8 +266,12 @@ Old Turkic
261
266
  Old Hungarian
262
267
  Hanifi Rohingya
263
268
  Rumi Numeral Symbols
269
+ Yezidi
264
270
  Old Sogdian
265
271
  Sogdian
272
+ Old Uyghur
273
+ Chorasmian
274
+ Elymaic
266
275
  Brahmi
267
276
  Kaithi
268
277
  Sora Sompeng
@@ -283,21 +292,29 @@ Takri
283
292
  Ahom
284
293
  Dogra
285
294
  Warang Citi
295
+ Dives Akuru
296
+ Nandinagari
286
297
  Zanabazar Square
287
298
  Soyombo
299
+ Unified Canadian Aboriginal Syllabics Extended-A
288
300
  Pau Cin Hau
289
301
  Bhaiksuki
290
302
  Marchen
291
303
  Masaram Gondi
292
304
  Gunjala Gondi
293
305
  Makasar
306
+ Lisu Supplement
307
+ Tamil Supplement
294
308
  Cuneiform
295
309
  Cuneiform Numbers and Punctuation
296
310
  Early Dynastic Cuneiform
311
+ Cypro-Minoan
297
312
  Egyptian Hieroglyphs
313
+ Egyptian Hieroglyph Format Controls
298
314
  Anatolian Hieroglyphs
299
315
  Bamum Supplement
300
316
  Mro
317
+ Tangsa
301
318
  Bassa Vah
302
319
  Pahawh Hmong
303
320
  Medefaidrin
@@ -305,11 +322,16 @@ Miao
305
322
  Ideographic Symbols and Punctuation
306
323
  Tangut
307
324
  Tangut Components
325
+ Khitan Small Script
326
+ Tangut Supplement
327
+ Kana Extended-B
308
328
  Kana Supplement
309
329
  Kana Extended-A
330
+ Small Kana Extension
310
331
  Nushu
311
332
  Duployan
312
333
  Shorthand Format Controls
334
+ Znamenny Musical Notation
313
335
  Byzantine Musical Symbols
314
336
  Musical Symbols
315
337
  Ancient Greek Musical Notation
@@ -318,10 +340,16 @@ Tai Xuan Jing Symbols
318
340
  Counting Rod Numerals
319
341
  Mathematical Alphanumeric Symbols
320
342
  Sutton SignWriting
343
+ Latin Extended-G
321
344
  Glagolitic Supplement
345
+ Nyiakeng Puachue Hmong
346
+ Toto
347
+ Wancho
348
+ Ethiopic Extended-B
322
349
  Mende Kikakui
323
350
  Adlam
324
351
  Indic Siyaq Numbers
352
+ Ottoman Siyaq Numbers
325
353
  Arabic Mathematical Alphabetic Symbols
326
354
  Mahjong Tiles
327
355
  Domino Tiles
@@ -337,12 +365,15 @@ Geometric Shapes Extended
337
365
  Supplemental Arrows-C
338
366
  Supplemental Symbols and Pictographs
339
367
  Chess Symbols
368
+ Symbols and Pictographs Extended-A
369
+ Symbols for Legacy Computing
340
370
  CJK Unified Ideographs Extension B
341
371
  CJK Unified Ideographs Extension C
342
372
  CJK Unified Ideographs Extension D
343
373
  CJK Unified Ideographs Extension E
344
374
  CJK Unified Ideographs Extension F
345
375
  CJK Compatibility Ideographs Supplement
376
+ CJK Unified Ideographs Extension G
346
377
  Tags
347
378
  Variation Selectors Supplement
348
379
  Supplementary Private Use Area-A
@@ -353,5 +384,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
353
384
 
354
385
  ## MIT License
355
386
 
356
- - Copyright (C) 2016-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
357
- - Unicode data: http://www.unicode.org/copyright.html#Exhibit1
387
+ - Copyright (C) 2016-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
388
+ - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
data/Rakefile CHANGED
@@ -32,6 +32,10 @@ end
32
32
 
33
33
  desc "#{gemspec.name} | Spec"
34
34
  task :spec do
35
- sh "for file in spec/*.rb; do ruby $file; done"
35
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
36
+ sh "for %f in (spec/\*.rb) do ruby spec/%f"
37
+ else
38
+ sh "for file in spec/*.rb; do ruby $file; done"
39
+ end
36
40
  end
37
41
  task default: :spec
Binary file
@@ -1,9 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Unicode
2
4
  module Blocks
3
- VERSION = "1.3.0".freeze
4
- UNICODE_VERSION = "11.0.0".freeze
5
- DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
6
- INDEX_FILENAME = (DATA_DIRECTORY + '/blocks.marshal.gz').freeze
5
+ VERSION = "1.7.0"
6
+ UNICODE_VERSION = "14.0.0"
7
+ DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
8
+ INDEX_FILENAME = (DATA_DIRECTORY + "/blocks.marshal.gz").freeze
7
9
  end
8
10
  end
9
-
@@ -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 character belong to?"
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 = ["mail@janlelis.de"]
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 = "~> 2.0"
20
+ gem.required_ruby_version = ">= 2.0"
21
21
  end
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.7.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-06-01 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 11.0.0] Which Unicode block does a character belong to?"
13
+ description: "[Unicode 14.0.0] Answers the question: Which Unicode block does a code
14
+ point belong to?"
14
15
  email:
15
- - mail@janlelis.de
16
+ - hi@ruby.consulting
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - ".gitignore"
21
- - ".travis.yml"
22
22
  - CHANGELOG.md
23
23
  - CODE_OF_CONDUCT.md
24
24
  - Gemfile
@@ -43,7 +43,7 @@ require_paths:
43
43
  - lib
44
44
  required_ruby_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '2.0'
49
49
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -52,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubyforge_project:
56
- rubygems_version: 2.6.14
55
+ rubygems_version: 3.2.3
57
56
  signing_key:
58
57
  specification_version: 4
59
58
  summary: Return Unicode blocks of a string.
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- script: bundle exec ruby spec/unicode_blocks_spec.rb
5
-
6
- rvm:
7
- - ruby-head
8
- - 2.5.1
9
- - 2.4.4
10
- - 2.3.7
11
- - 2.2
12
- - 2.1
13
- - 2.0
14
- - jruby-head
15
- - jruby-9.1.16.0
16
-
17
- matrix:
18
- allow_failures:
19
- - rvm: jruby-head
20
- - rvm: 2.2
21
- - rvm: 2.1
22
- - rvm: 2.0