unicode-types 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/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/data/types.marshal.gz +0 -0
- data/lib/unicode/types/constants.rb +2 -2
- data/lib/unicode/types/index.rb +9 -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: 170edb02b23794b7f703934e6919b8a59628e0a041e823c14fabc05a3c502b4d
|
4
|
+
data.tar.gz: e6489dc3d3cc39bf5478659b8701f401dc7fc43a1cac6985ef1b240c229ec266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f819a26e75d74045a7f3f0a5ff76babfcbec149f0c015a10566e046d23d17cf4126812ccbc1c8763fdee562e2d02c18c8aeedf9a37fcbdc81ab46c4ced821122
|
7
|
+
data.tar.gz: 90c0aa8901a5b60ac78d7a06f34cd859e3d4c1e6b243987edcf10785c560e4c6174107353d7de39103d0c646cc8a5fa74ab768e9e69fbd41c5bb7885fe6403c8
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Determine the basic type of codepoints. This can be one of:
|
|
10
10
|
- Noncharacter
|
11
11
|
- Reserved
|
12
12
|
|
13
|
-
Unicode version: **
|
13
|
+
Unicode version: **11.0.0**
|
14
14
|
|
15
15
|
Supported Rubies: **2.5**, **2.4**, **2.3**
|
16
16
|
|
@@ -43,6 +43,6 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
43
43
|
|
44
44
|
## MIT License
|
45
45
|
|
46
|
-
- Copyright (C) 2016-
|
46
|
+
- Copyright (C) 2016-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
47
47
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
48
48
|
|
data/data/types.marshal.gz
CHANGED
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Unicode
|
2
2
|
module Types
|
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 + '/types.marshal.gz').freeze
|
7
7
|
end
|
data/lib/unicode/types/index.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "zlib"
|
4
|
+
require_relative "constants"
|
3
5
|
|
4
6
|
module Unicode
|
5
7
|
module Types
|
6
|
-
|
8
|
+
File.open(INDEX_FILENAME, "rb") do |file|
|
9
|
+
serialized_data = Zlib::GzipReader.new(file).read
|
10
|
+
serialized_data.force_encoding Encoding::BINARY
|
11
|
+
INDEX = Marshal.load(serialized_data)
|
12
|
+
end
|
7
13
|
end
|
8
14
|
end
|
9
|
-
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-types
|
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 the basic type of codepoints (Graphic, Format,
|
14
14
|
Control, Private-use, Surrogate, Noncharacter, Reserved)"
|
15
15
|
email:
|
16
16
|
- mail@janlelis.de
|