unicode-categories 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -7
- data/CHANGELOG.md +6 -2
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/unicode/categories.rb +1 -1
- data/lib/unicode/categories/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: 46c009abcf33c078cb5c6cd06885c159743ff789
|
4
|
+
data.tar.gz: d037e3ba7676959d4e55dfb1336832c46e3265af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5bc0defe0083b32ebc2283324917b54b50a3df0360cea3eb6d654bca89de4c8f1721e77df21f603ee42f2c4138ea02db14ffd3ba9595a4a782206d9b05f10d
|
7
|
+
data.tar.gz: 4518d997fff4ecd24f69cf2e25c5b204177786a6348cfd96b30bbd7ef4f80a0e31c66f72b6bc215db17e18a92fb5eec9c89f021e3d7eaf4cf134c82ba56cf715
|
data/.travis.yml
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
|
4
|
-
script: bundle exec ruby spec/unicode_categories_spec.rb
|
5
|
-
|
6
4
|
rvm:
|
7
|
-
-
|
5
|
+
- ruby-head
|
6
|
+
- 2.4.0
|
7
|
+
- 2.3.3
|
8
8
|
- 2.2
|
9
9
|
- 2.1
|
10
|
-
-
|
11
|
-
- rbx-2
|
10
|
+
- 2.0
|
12
11
|
- jruby-head
|
13
|
-
- jruby-9.
|
12
|
+
- jruby-9.1.7.0
|
14
13
|
|
15
14
|
cache:
|
16
15
|
- bundler
|
@@ -18,4 +17,7 @@ cache:
|
|
18
17
|
matrix:
|
19
18
|
allow_failures:
|
20
19
|
- rvm: jruby-head
|
21
|
-
- rvm:
|
20
|
+
- rvm: ruby-head
|
21
|
+
- rvm: 2.0
|
22
|
+
# fast_finish: true
|
23
|
+
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Returns which [General Categories](https://en.wikipedia.org/wiki/Unicode_charact
|
|
4
4
|
|
5
5
|
Unicode version: **9.0.0**
|
6
6
|
|
7
|
-
Supported Rubies: **2.3**, **2.2**, **2.1**
|
7
|
+
Supported Rubies: **2.4**, **2.3**, **2.2**, **2.1**
|
8
8
|
|
9
9
|
## Gemfile
|
10
10
|
|
@@ -91,6 +91,6 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
91
91
|
|
92
92
|
## MIT License
|
93
93
|
|
94
|
-
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
94
|
+
- Copyright (C) 2016-2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
95
95
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
96
96
|
|
data/lib/unicode/categories.rb
CHANGED
@@ -14,7 +14,7 @@ module Unicode
|
|
14
14
|
|
15
15
|
def self.category(char, format: :short)
|
16
16
|
require_relative 'categories/index' unless defined? ::Unicode::Categories::INDEX
|
17
|
-
codepoint_depth_offset = char.
|
17
|
+
codepoint_depth_offset = char.ord or
|
18
18
|
raise(ArgumentError, "Unicode::Categories.category must be given a valid char")
|
19
19
|
index_or_value = INDEX[:CATEGORIES]
|
20
20
|
[0x10000, 0x1000, 0x100, 0x10].each{ |depth|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Unicode
|
2
2
|
module Categories
|
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 + '/categories.marshal.gz').freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-categories
|
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 which Unicode General Categories a string
|
14
14
|
belongs to."
|
@@ -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 Unicode General Categories of a string.
|