unicode-blocks 1.4.0 → 1.5.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/.CHANGELOG.md.swp +0 -0
- data/.travis.yml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile +1 -0
- data/README.md +4 -2
- data/data/blocks.marshal.gz +0 -0
- data/lib/unicode/blocks/constants.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e01572a6f38450504a2a6859bca8ded029fddceb09fd98979386ddde756257
|
4
|
+
data.tar.gz: 67087e0ec5bcb4360f995232ef67ec9bbb3ecde3d8abde796f25e4c536767525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4fda7dcf811d79093e3d9c8be347ee69d4c268e7f7c96e8adfcf7e891485cf560f0737cdcea8c48407e3cb5c483a443cd06765182748d00f9e627921eb20a7
|
7
|
+
data.tar.gz: 830148be065dfe437dc69bff92ae56ac0dae05eca90ab91aa6a53a0ae865e213ae425850b21ca288ddc5fbee3750a294645e34d843d8af7facc2bf71e1927bad
|
data/.CHANGELOG.md.swp
ADDED
Binary file
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
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: **12.
|
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
|
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:
|
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 = "12.
|
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
|
+
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-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode 12.
|
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.
|
56
|
+
rubygems_version: 3.0.3
|
56
57
|
signing_key:
|
57
58
|
specification_version: 4
|
58
59
|
summary: Return Unicode blocks of a string.
|