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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3b10fd50fc84121acf4d869c3a223f18e337ed8aa11d3f560e0e67ea79aa5ef
4
- data.tar.gz: 776de673786787d9f2d3600fc58a950b17f9b38730455e75daa6e7f0428d664a
3
+ metadata.gz: 1c15d809d319aa8f29f5d7933a626d0d02224c455bf86a1dd0b7cf50ee630ca8
4
+ data.tar.gz: 1851f35895f9b33906216f904c1a13cab4b6391bb34d5871400464fd61469573
5
5
  SHA512:
6
- metadata.gz: fff3a07e54fa35f13e0463c7569d4202d71c4bf737c2863fb2c8b69faf0bd9de9e49d5f24f813b09964a941ed9a0fe670f8e5f8df1debbcac42a656d7964d440
7
- data.tar.gz: '01039180069d9c49faf364206bd85eb0188915b3b38629ab630bf9346c369eee6315256821ad43a0e3ccd70c500f0fb21cbd99ec7938133ec40706d041e5c88f'
6
+ metadata.gz: 9cdf2870dbdda3f1db892a84363eb4335cc387126a00c4554d7e312f6803a3dcd750cb94d761ef64a4e293c618991804aa55c38a9b622ee0b59de5eb7807463a
7
+ data.tar.gz: c6a090c72e1b6a6c0cee5f0df5932fad246c2f1ef72aefaa10391e746081c82f6e20b3944c9115eecfc6cafd2bf85ccbd0e531820a84488c28f788ef3d8a5c39
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.2.0
4
+
5
+ * Unicode 11 / Emoji 11
6
+ * Do not depend on rubygems (only use zlib stdlib for unzipping)
7
+
3
8
  ### 1.1.2
4
9
 
5
10
  * Explicitly load rubygems/util, fixes regression in 1.1.1
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: **10.0.0**
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 unicode-sequence-name
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
 
@@ -1,8 +1,8 @@
1
1
  module Unicode
2
2
  module SequenceName
3
- VERSION = "1.1.2".freeze
4
- UNICODE_VERSION = "10.0.0".freeze
5
- EMOJI_VERSION = "5.0".freeze
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
- require 'rubygems/util'
2
- require_relative 'constants'
1
+ # frozen_string_literal: true
2
+
3
+ require "zlib"
4
+ require_relative "constants"
3
5
 
4
6
  module Unicode
5
7
  module SequenceName
6
- INDEX = Marshal.load(Gem::Util.gunzip(File.binread(INDEX_FILENAME)))
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.1.2
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-04-19 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 10.0.0] Returns name of a Unicode codepoint sequence, if one
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