unicode-blocks 1.4.0 → 1.5.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
2
  SHA256:
3
- metadata.gz: c005f270bd0499b5d931074a2ec36bb4627139f632e029a5a9f74232c040609c
4
- data.tar.gz: dff179e22db4c7fefa4ed46593d9a2aab16112fc7c9592b9b26bef12a1257ead
3
+ metadata.gz: 65e01572a6f38450504a2a6859bca8ded029fddceb09fd98979386ddde756257
4
+ data.tar.gz: 67087e0ec5bcb4360f995232ef67ec9bbb3ecde3d8abde796f25e4c536767525
5
5
  SHA512:
6
- metadata.gz: 5a684ed432d63daa57ac13c1694fb5870cfdbab559689c0aba3ab2b7e757b042ddf18138268cc1694a619e12f5b875c6b028b0b008d38a1d722df4a56a6d7587
7
- data.tar.gz: 1ca5e0a31e4d9c68a4a9e47cda69c1d182301f19edf9730a3799501d05b272426ae4420f5f65d3e6259c3f6951f20167dfe9804b2ad89805d48e3221a5ce5519
6
+ metadata.gz: 5b4fda7dcf811d79093e3d9c8be347ee69d4c268e7f7c96e8adfcf7e891485cf560f0737cdcea8c48407e3cb5c483a443cd06765182748d00f9e627921eb20a7
7
+ data.tar.gz: 830148be065dfe437dc69bff92ae56ac0dae05eca90ab91aa6a53a0ae865e213ae425850b21ca288ddc5fbee3750a294645e34d843d8af7facc2bf71e1927bad
Binary file
@@ -5,10 +5,10 @@ script: bundle exec ruby spec/unicode_blocks_spec.rb
5
5
 
6
6
  rvm:
7
7
  - ruby-head
8
- - 2.6.1
9
- - 2.5.3
10
- - 2.4.5
11
- - 2.3.8
8
+ - 2.6
9
+ - 2.5
10
+ - 2.4
11
+ - 2.3
12
12
  - 2.2
13
13
  - 2.1
14
14
  - 2.0
@@ -1,6 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
- ### Next
3
+ ## 1.5.0
4
+
5
+ * Unicode 12.1
6
+
7
+ ### 1.4.0
4
8
 
5
9
  * Unicode 12
6
10
 
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
7
+ gem 'irb'
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: **12.0.0**
5
+ Unicode version: **12.1.0** (May 2019)
6
6
 
7
7
  Supported Rubies: **2.6**, **2.5**, **2.4**
8
8
 
@@ -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{}`](http://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:
Binary file
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Unicode
4
4
  module Blocks
5
- VERSION = "1.4.0"
6
- UNICODE_VERSION = "12.0.0"
5
+ VERSION = "1.5.0"
6
+ UNICODE_VERSION = "12.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
metadata CHANGED
@@ -1,22 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.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: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2019-05-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 12.0.0] Which Unicode block does a character belong to?"
13
+ description: "[Unicode 12.1.0] Which Unicode block does a character belong to?"
14
14
  email:
15
15
  - mail@janlelis.de
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".CHANGELOG.md.swp"
20
21
  - ".gitignore"
21
22
  - ".travis.yml"
22
23
  - CHANGELOG.md
@@ -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.0.1
56
+ rubygems_version: 3.0.3
56
57
  signing_key:
57
58
  specification_version: 4
58
59
  summary: Return Unicode blocks of a string.