unicode-categories 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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/data/categories.marshal.gz +0 -0
- data/lib/unicode/categories/constants.rb +2 -2
- data/lib/unicode/categories/index.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf4109962c1a2f0d865b9aa98ecb1ca17892c27efac126f1d1d5ec31132e946f
|
4
|
+
data.tar.gz: 65d10bc63e800592a65b2dee8255fb15f3b7ac1864aa52a00e5c49254597e691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cb5f1efea3592cc032ebeb02c5fac9238b9ec0949cfe1f8ac923267bedeec584effee46636b83a0e560deccad8058590c9dfc3f536c403ad6a285676affbdd5
|
7
|
+
data.tar.gz: a766642492174ef2dd68aa0cf6bcd32d76d47f7d95e0dcfc71a4c23a8ee47cdd8b6c7e65fabc0082daa86a49a773af769c4ae76045507edfe4abc42fe7b26b70
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/data/categories.marshal.gz
CHANGED
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Unicode
|
2
2
|
module Categories
|
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 + '/categories.marshal.gz').freeze
|
7
7
|
end
|
@@ -1,9 +1,12 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require "zlib"
|
2
|
+
require_relative "constants"
|
3
3
|
|
4
4
|
module Unicode
|
5
5
|
module Categories
|
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
|
9
|
-
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-categories
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 11.0.0] Determine which Unicode General Categories a string
|
14
14
|
belongs to."
|
15
15
|
email:
|
16
16
|
- mail@janlelis.de
|