unicode-categories 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59f96c391e28d4ab5f2616788c46d6148ff64c7a
4
- data.tar.gz: 007f619431879bbfe642d43a5795e602c3d8d28b
3
+ metadata.gz: 46c009abcf33c078cb5c6cd06885c159743ff789
4
+ data.tar.gz: d037e3ba7676959d4e55dfb1336832c46e3265af
5
5
  SHA512:
6
- metadata.gz: 799356034de49c64589f4db850b6bf7fbad99b62037e7bc3d6a5d9d312f01b36cb824dbb203f2e9a45b902d783e42e1db03c8ddb82fa570797dcfab4269c0719
7
- data.tar.gz: 271f8d10c7e1182137b5ec07df63c741e4d8ce84086ed4323b86baa99d017eee9858c0ee9f0d4e25171e333558a1c53a6eaee258a2a0cfe85f456658badf505b
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
- - 2.3.0
5
+ - ruby-head
6
+ - 2.4.0
7
+ - 2.3.3
8
8
  - 2.2
9
9
  - 2.1
10
- - ruby-head
11
- - rbx-2
10
+ - 2.0
12
11
  - jruby-head
13
- - jruby-9.0.5.0
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: rbx-2
20
+ - rvm: ruby-head
21
+ - rvm: 2.0
22
+ # fast_finish: true
23
+
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.1
4
+
5
+ - Fix bug that prevented non-UTF-8 encodings from working
6
+
3
7
  ### 1.1.0
4
8
 
5
- Support Unicode 9.0
9
+ - Support Unicode 9.0
6
10
 
7
11
  ### 1.0.0
8
12
 
9
- * Inital release
13
+ - Iniital release
10
14
 
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2017 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
@@ -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
 
@@ -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.unpack("U")[0] or
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.0".freeze
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.0
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: 2016-06-21 00:00:00.000000000 Z
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.5.1
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.