unicode-types 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdb9c714f76654efe664241f33adb6cfc5442d260c8ea63ff70b04508426a273
4
- data.tar.gz: 9f22e34dd0a58910c950509e88587d253dbff6f9627a2b5232b763073eccbfe5
3
+ metadata.gz: 170edb02b23794b7f703934e6919b8a59628e0a041e823c14fabc05a3c502b4d
4
+ data.tar.gz: e6489dc3d3cc39bf5478659b8701f401dc7fc43a1cac6985ef1b240c229ec266
5
5
  SHA512:
6
- metadata.gz: 206f8cbfe4289f7e3b4b1e3d904ac822cdad283ae769864c699c15acc93e1656da225df572937fb4086c3818c060d3a05ebbddf8e1a90c755c66b1a93cf4fec8
7
- data.tar.gz: 3d71bf7b3454c0d9cc17646eda5b19e3753fd9a865ad1a4321ab28227b90fa27a7b8eacf0d0e526e1928a35648f7a831956bab97d54f17941cccf0c31e1f79d2
6
+ metadata.gz: f819a26e75d74045a7f3f0a5ff76babfcbec149f0c015a10566e046d23d17cf4126812ccbc1c8763fdee562e2d02c18c8aeedf9a37fcbdc81ab46c4ced821122
7
+ data.tar.gz: 90c0aa8901a5b60ac78d7a06f34cd859e3d4c1e6b243987edcf10785c560e4c6174107353d7de39103d0c646cc8a5fa74ab768e9e69fbd41c5bb7885fe6403c8
@@ -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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2017 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2018 Jan Lelis, mail@janlelis.de
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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: **10.0.0**
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-2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
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
 
Binary file
@@ -1,7 +1,7 @@
1
1
  module Unicode
2
2
  module Types
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 + '/types.marshal.gz').freeze
7
7
  end
@@ -1,9 +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 Types
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
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.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 the basic type of codepoints (Graphic, Format,
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