unicode-sequence_name 1.1.2 → 1.2.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 +2 -4
- data/data/sequence_name.marshal.gz +0 -0
- data/lib/unicode/sequence_name/constants.rb +3 -3
- data/lib/unicode/sequence_name/index.rb +9 -3
- 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: 1c15d809d319aa8f29f5d7933a626d0d02224c455bf86a1dd0b7cf50ee630ca8
|
4
|
+
data.tar.gz: 1851f35895f9b33906216f904c1a13cab4b6391bb34d5871400464fd61469573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cdf2870dbdda3f1db892a84363eb4335cc387126a00c4554d7e312f6803a3dcd750cb94d761ef64a4e293c618991804aa55c38a9b622ee0b59de5eb7807463a
|
7
|
+
data.tar.gz: c6a090c72e1b6a6c0cee5f0df5932fad246c2f1ef72aefaa10391e746081c82f6e20b3944c9115eecfc6cafd2bf85ccbd0e531820a84488c28f788ef3d8a5c39
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
Returns name of a Unicode codepoint sequence, if one exists.
|
4
4
|
|
5
|
-
Unicode version: **
|
6
|
-
|
7
|
-
Emoji version: **5.0**
|
5
|
+
Unicode / Emoji version: **11.0**
|
8
6
|
|
9
7
|
Supported Rubies: **2.5**, **2.4**, **2.3**
|
10
8
|
|
@@ -25,7 +23,7 @@ Unicode::SequenceName.of "🏴" # => "SCOTLAND"
|
|
25
23
|
|
26
24
|
## Also See
|
27
25
|
|
28
|
-
- [uniscribe](https://github.com/janlelis/uniscribe) - cli utility that makes use of
|
26
|
+
- [uniscribe](https://github.com/janlelis/uniscribe) - cli utility that makes use of unicode_sequence-name
|
29
27
|
- [unicode-name](https://github.com/janlelis/unicode-name) - single codepoint names
|
30
28
|
- [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
|
31
29
|
|
Binary file
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Unicode
|
2
2
|
module SequenceName
|
3
|
-
VERSION = "1.
|
4
|
-
UNICODE_VERSION = "
|
5
|
-
EMOJI_VERSION = "
|
3
|
+
VERSION = "1.2.0".freeze
|
4
|
+
UNICODE_VERSION = "11.0.0".freeze
|
5
|
+
EMOJI_VERSION = "11.0".freeze
|
6
6
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
|
7
7
|
INDEX_FILENAME = (DATA_DIRECTORY + '/sequence_name.marshal.gz').freeze
|
8
8
|
end
|
@@ -1,8 +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 SequenceName
|
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
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-sequence_name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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] Returns name of a Unicode codepoint sequence, if one
|
14
14
|
exists"
|
15
15
|
email:
|
16
16
|
- mail@janlelis.de
|