unicode-types 1.1.0 → 1.1.1
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 +4 -4
- data/.travis.yml +9 -5
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -3
- data/lib/unicode/types.rb +1 -1
- data/lib/unicode/types/constants.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f30aed70893363dcf284d94fb14e78a7b97cc6e
|
4
|
+
data.tar.gz: 8c4d3ade7a56cd84bbe7e2637fd1a68477f2655a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293afcc57dfba9325c74d2cf85fd6bf164140712c47eb90224ff3d9ddd9fc14e5c0d92e197f82957356505756bcf710555235ab97e2a7a2680a10e43239483d6
|
7
|
+
data.tar.gz: c8984c80a34da22f5d4662961974a0616d5c814b7a4f01f8be18a07df892d59c5288fdc38d414d60b2f5db46ced53c4271c1791da4663c3accac91ed279ae7e0
|
data/.travis.yml
CHANGED
@@ -4,13 +4,14 @@ language: ruby
|
|
4
4
|
script: bundle exec ruby spec/unicode_types_spec.rb
|
5
5
|
|
6
6
|
rvm:
|
7
|
-
-
|
7
|
+
- ruby-head
|
8
|
+
- 2.4.0
|
9
|
+
- 2.3.3
|
8
10
|
- 2.2
|
9
11
|
- 2.1
|
10
|
-
-
|
11
|
-
- rbx-2
|
12
|
+
- 2.0
|
12
13
|
- jruby-head
|
13
|
-
- jruby-9.
|
14
|
+
- jruby-9.1.7.0
|
14
15
|
|
15
16
|
cache:
|
16
17
|
- bundler
|
@@ -18,4 +19,7 @@ cache:
|
|
18
19
|
matrix:
|
19
20
|
allow_failures:
|
20
21
|
- rvm: jruby-head
|
21
|
-
- rvm:
|
22
|
+
- rvm: ruby-head
|
23
|
+
- rvm: 2.0
|
24
|
+
# fast_finish: true
|
25
|
+
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Unicode::Types [![[version]](https://badge.fury.io/rb/unicode-types.svg)](http://badge.fury.io/rb/unicode-types) [![[travis]](https://travis-ci.org/janlelis/unicode-types.
|
1
|
+
# Unicode::Types [![[version]](https://badge.fury.io/rb/unicode-types.svg)](http://badge.fury.io/rb/unicode-types) [![[travis]](https://travis-ci.org/janlelis/unicode-types.svg)](https://travis-ci.org/janlelis/unicode-types)
|
2
2
|
|
3
3
|
Determine the basic type of codepoints. This can be one of:
|
4
4
|
|
@@ -12,7 +12,7 @@ Determine the basic type of codepoints. This can be one of:
|
|
12
12
|
|
13
13
|
Unicode version: **9.0.0**
|
14
14
|
|
15
|
-
Supported Rubies: **2.3**, **2.2**, **2.1**
|
15
|
+
Supported Rubies: **2.4**, **2.3**, **2.2**, **2.1**
|
16
16
|
|
17
17
|
## Gemfile
|
18
18
|
|
@@ -41,6 +41,6 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
41
41
|
|
42
42
|
## MIT License
|
43
43
|
|
44
|
-
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
44
|
+
- Copyright (C) 2016-2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
45
45
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
46
46
|
|
data/lib/unicode/types.rb
CHANGED
@@ -14,7 +14,7 @@ module Unicode
|
|
14
14
|
|
15
15
|
def self.type(char)
|
16
16
|
require_relative 'types/index' unless defined? ::Unicode::Types::INDEX
|
17
|
-
codepoint_depth_offset = char.
|
17
|
+
codepoint_depth_offset = char.ord or
|
18
18
|
raise(ArgumentError, "Unicode::Types.type must be given a valid char")
|
19
19
|
index_or_value = INDEX[:TYPES]
|
20
20
|
[0x10000, 0x1000, 0x100, 0x10].each{ |depth|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Unicode
|
2
2
|
module Types
|
3
|
-
VERSION = "1.1.
|
3
|
+
VERSION = "1.1.1".freeze
|
4
4
|
UNICODE_VERSION = "9.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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "[Unicode 9.0.0] Determine the basic type of codepoints (Graphic, Format,
|
14
14
|
Control, Private-use, Surrogate, Noncharacter, Reserved)"
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.6.8
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Determine the basic type of codepoints.
|