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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bdf92b19edaec8af9c94cfdd01ce993edcb458378fd307ff52c3dbbc0706a24
4
- data.tar.gz: a9e1aca4e8c6c7927093e6b9b140846c78badba8f2e8fe3f04c4897cb34a6ee9
3
+ metadata.gz: bf4109962c1a2f0d865b9aa98ecb1ca17892c27efac126f1d1d5ec31132e946f
4
+ data.tar.gz: 65d10bc63e800592a65b2dee8255fb15f3b7ac1864aa52a00e5c49254597e691
5
5
  SHA512:
6
- metadata.gz: '0766696f9b25ceca87d31bdc1b1669fb1f00a6dd808fd53a28286354f32d881c72f6fbd3ea6998fc004375e2ce39da1edd62c9f035084fae800115ef9d2c613f'
7
- data.tar.gz: de9b765082a27fdcbbd6f48f023386973f5f54e9ff8e59ae4529e0273b72475a6c51da09b4ced1f6edd4cba67ce7f668b60335ef538ca08ca33545959b00187f
6
+ metadata.gz: 6cb5f1efea3592cc032ebeb02c5fac9238b9ec0949cfe1f8ac923267bedeec584effee46636b83a0e560deccad8058590c9dfc3f536c403ad6a285676affbdd5
7
+ data.tar.gz: a766642492174ef2dd68aa0cf6bcd32d76d47f7d95e0dcfc71a4c23a8ee47cdd8b6c7e65fabc0082daa86a49a773af769c4ae76045507edfe4abc42fe7b26b70
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.3.0
4
+
5
+ - Unicode 11
6
+ - Do not depend on rubygems (only use zlib stdlib for unzipping)
7
+
3
8
  ### 1.2.2
4
9
 
5
10
  - Explicitly load rubygems/util, fixes regression in 1.2.1
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Returns which [General Categories](https://en.wikipedia.org/wiki/Unicode_character_property#General_Category) a Unicode string contains.
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
 
Binary file
@@ -1,7 +1,7 @@
1
1
  module Unicode
2
2
  module Categories
3
- VERSION = "1.2.2".freeze
4
- UNICODE_VERSION = "10.0.0".freeze
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 'rubygems/util'
2
- require_relative 'constants'
1
+ require "zlib"
2
+ require_relative "constants"
3
3
 
4
4
  module Unicode
5
5
  module Categories
6
- INDEX = Marshal.load(Gem::Util.gunzip(File.binread(INDEX_FILENAME)))
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.2.2
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-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] Determine which Unicode General Categories a string
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