unicode-types 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47550a19f8271569aae8d375c3360fc06d729e18
4
- data.tar.gz: b0a66b95da5e86c96054b3d50ba4653a30eb8df3
3
+ metadata.gz: 0f30aed70893363dcf284d94fb14e78a7b97cc6e
4
+ data.tar.gz: 8c4d3ade7a56cd84bbe7e2637fd1a68477f2655a
5
5
  SHA512:
6
- metadata.gz: 2c71162d900bec998e78da82b811d4a272b4b949fc122862d245be8b20c7b9726095217dd396b8f36faf0dc80c0ed4d15cecc944842bde6d43fc2a09aa4bd3a7
7
- data.tar.gz: 54100636de36a52fc8d8d24dfaae08efc2bf04de413af67d7bb9171300a1250d33195faf8cdc535864bf8b025ab8e90ae11d4dc546a97858082a2c6808971476
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
- - 2.3.0
7
+ - ruby-head
8
+ - 2.4.0
9
+ - 2.3.3
8
10
  - 2.2
9
11
  - 2.1
10
- - ruby-head
11
- - rbx-2
12
+ - 2.0
12
13
  - jruby-head
13
- - jruby-9.0.5.0
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: rbx-2
22
+ - rvm: ruby-head
23
+ - rvm: 2.0
24
+ # fast_finish: true
25
+
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.1
4
+
5
+ * Fix bug that prevented non-UTF-8 encodings from workin
6
+
3
7
  ### 1.1.0
4
8
 
5
9
  * Support Unicode 9.0
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
@@ -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.png)](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.unpack("U")[0] or
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.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 + '/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.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-22 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 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.5.1
56
+ rubygems_version: 2.6.8
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Determine the basic type of codepoints.