unicode-name 1.5.2 → 1.6.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: 8bc9f0a1b2e3fa79af89afbb11f7b60338d4d4c916a8d65434ebfab3a66651e1
4
- data.tar.gz: 204fb73652c2318ae51eeb784b17bca61b1cc59bcbe8cf8371e8b0553adc0559
3
+ metadata.gz: 33e437c75d79f1a85ce8ea4cc33a0e39b099fdde5af4a811598530486eb55324
4
+ data.tar.gz: 745faab57e06f6f4db63d0689095cc6809afd1c00d6e239dc7b2cf89b93c6713
5
5
  SHA512:
6
- metadata.gz: c1eed254bc42b14836d77669a88de9caf207f1cebe2665d248e9ab053c1ac768cf7c1132b0b9d7297994d394f7f182fa4e646541c53c0636896362b6373be8b2
7
- data.tar.gz: 65794f4b49d2b724bda4779c2bfc7e1aecfc5edcd88f2979f15ae997f0b14892230f548da2f09028070283f742f17b466a95343ced038ffb1f68a337f545165f
6
+ metadata.gz: f2170cf5d259444bcb1bc1bcd1cb21b2914178c7e0cbfb313667e1c46b142e47b0cf1c6afbadfff975813a006fe3e7dc9be4198ebc2d0ff44055ac23c231bf97
7
+ data.tar.gz: 71023fd382b4e1bbf98d5e086fd48f9e647b2f8ee83307e60a63a46c3ad003b41e14f916ce58def300b8f3e3a0e59f378c4f7446f76f72b11e807c923cc718d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.6.0
4
+
5
+ * Unicode 11
6
+ * Do not depend on rubygems (only use zlib stdlib for unzipping)
7
+
3
8
  ### 1.5.2
4
9
 
5
10
  * Explicitly load rubygems/util, fixes regression in 1.5.1
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Return Unicode codepoint names, aliases, and labels.
4
4
 
5
- Unicode version: **10.0.0**
5
+ Unicode version: **11.0.0**
6
6
 
7
7
  Supported Rubies: **2.5**, **2.4**, **2.3**
8
8
 
data/data/name.marshal.gz CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  module Unicode
2
2
  module Name
3
- VERSION = "1.5.2".freeze
4
- UNICODE_VERSION = "10.0.0".freeze
3
+ VERSION = "1.6.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 + '/name.marshal.gz').freeze
7
7
  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 Name
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
data/unicode-name.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.required_ruby_version = "~> 2.0"
21
- gem.add_dependency "unicode-types", "~> 1.2"
21
+ gem.add_dependency "unicode-types", "~> 1.3"
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.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
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicode-types
@@ -16,15 +16,15 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.2'
27
- description: "[Unicode 10.0.0] Returns name/aliases/label of a Unicode codepoint"
26
+ version: '1.3'
27
+ description: "[Unicode 11.0.0] Returns name/aliases/label of a Unicode codepoint"
28
28
  email:
29
29
  - mail@janlelis.de
30
30
  executables: []