unicode-age 1.0.1 → 1.1.0

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: 5c5cc3c3abd30c8572e612824fa4eb2bafca0f09
4
- data.tar.gz: 381569a79f4b1d08f51e3bafd8ecc86de9a8e19d
3
+ metadata.gz: '09dd3604fde1d681ba8ba3bdb5e04e4fd1b5b9c5'
4
+ data.tar.gz: 328c4825cb65b85e186b864808da5f69271e8b2a
5
5
  SHA512:
6
- metadata.gz: 172016091f8f1df92d4fc3f076aafc6d1ed7448d121082e4aec2a0175ee16a45eeefed552b68160f833f638210d4b3c5e743ef47033bf05f2747257abc1e6728
7
- data.tar.gz: 4db8b392cd5dce76d1453a38b05f8f3815c78bc9d7f8ce444654871776bdc320b9cf49b38370b9264264e44b58d6dd8abe61e8e7844bf26ed33618b9a80556ff
6
+ metadata.gz: 6015fe2ebcc4c195fc2c98f9ba594c70d913aef8b90924ccadf8f352a6098738ae96495674dd37a586cdd5a0b5b2ebbaf81f1b27d69bc17ace4ba5959026c8ef
7
+ data.tar.gz: 456299e5e0ecf1f43cdc77c755c8ec22cf74c3432ce81407707af92b195a4f9547452df526a4abb5071999283a81f96153fe31afbb4e9d975d4c64809c63ed14
Binary file
@@ -4,13 +4,13 @@ language: ruby
4
4
  script: bundle exec ruby spec/unicode_age_spec.rb
5
5
 
6
6
  rvm:
7
- - 2.3.0
7
+ - 2.4.0
8
+ - 2.3.3
8
9
  - 2.2
9
10
  - 2.1
10
11
  - ruby-head
11
- - rbx-2
12
12
  - jruby-head
13
- - jruby-9.0.5.0
13
+ - jruby-9.1.7.0
14
14
 
15
15
  cache:
16
16
  - bundler
@@ -18,5 +18,4 @@ cache:
18
18
  matrix:
19
19
  allow_failures:
20
20
  - rvm: jruby-head
21
- - rvm: jruby-9.0.5.0
22
- - rvm: rbx-2
21
+ - rvm: jruby-9.1.7.0
@@ -1,10 +1,14 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.0
4
+
5
+ * Detect Unicode 9.0 (Ruby 2.4)
6
+
3
7
  ### 1.0.1
4
8
 
5
9
  * Fix for Ruby 2.2, 2.1
6
10
 
7
11
  ### 1.0.0
8
12
 
9
- * Inital release
13
+ * Initial release
10
14
 
@@ -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::Age [![[version]](https://badge.fury.io/rb/unicode-age.svg)](http://badge.fury.io/rb/unicode-age) [![[travis]](https://travis-ci.org/janlelis/unicode-age.png)](https://travis-ci.org/janlelis/unicode-age)
1
+ # Unicode::Age [![[version]](https://badge.fury.io/rb/unicode-age.svg)](http://badge.fury.io/rb/unicode-age) [![[travis]](https://travis-ci.org/janlelis/unicode-age.svg)](https://travis-ci.org/janlelis/unicode-age)
2
2
 
3
3
  A micromodule to detect which Unicode version is required to display a string.
4
4
 
@@ -9,6 +9,7 @@ Unicode::Age.of "ℜ𝘂ᖯʏ" # => 3.1
9
9
  Unicode::Age.of "🚡" # => 6.0
10
10
  Unicode::Age.of "🛲" # => 7.0
11
11
  Unicode::Age.of "🌮 " # => 8.0
12
+ Unicode::Age.of "🛒" # => 9.0
12
13
  Unicode::Age.of "\u{10FFFF}" # => nil
13
14
  Unicode::Age.of "\u{10FFFD}" # => 2.0
14
15
  ```
@@ -19,10 +20,11 @@ Characters of status "Unassigned" (Unicode General Category of **Cn**) will retu
19
20
 
20
21
  Ruby version | Unicode version
21
22
  -------------|----------------
23
+ **2.4** | **9.0.0**
22
24
  **2.3** | **8.0.0**
23
25
  **2.2** | **7.0.0**
24
26
  **2.1** | **6.1.0**
25
27
 
26
28
  ## MIT License
27
29
 
28
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
30
+ Copyright (C) 2016-2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
@@ -20,6 +20,7 @@ module Unicode
20
20
  6.3,
21
21
  7.0,
22
22
  8.0,
23
+ 9.0,
23
24
  ].freeze
24
25
 
25
26
  KNOWN_UNICODE_REGEXES = KNOWN_UNICODE_VERSIONS.map{ |uv|
@@ -1,7 +1,7 @@
1
1
  module Unicode
2
2
  module Age
3
- VERSION = "1.0.1".freeze
4
- UNICODE_VERSION = "8.0.0".freeze
3
+ VERSION = "1.1.0".freeze
4
+ UNICODE_VERSION = "9.0.0".freeze
5
5
  end
6
6
  end
7
7
 
@@ -8,8 +8,9 @@ describe Unicode::Age do
8
8
  assert_equal 3.0, Unicode::Age.of("ℜսᖯʏ")
9
9
  assert_equal 3.1, Unicode::Age.of("ℜ𝘂ᖯʏ")
10
10
  assert_equal 6.0, Unicode::Age.of("🚡")
11
- assert_equal 7.0, Unicode::Age.of("🛲") if RUBY_VERSION >= "2.2.0"
11
+ assert_equal 7.0, Unicode::Age.of("🛲 ") if RUBY_VERSION >= "2.2.0"
12
12
  assert_equal 8.0, Unicode::Age.of("🌮 ") if RUBY_VERSION >= "2.3.0"
13
+ assert_equal 9.0, Unicode::Age.of("🛒 ") if RUBY_VERSION >= "2.4.0"
13
14
  end
14
15
 
15
16
  it "returns nil for unassigned codepoints" do
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.name = "unicode-age"
7
7
  gem.version = Unicode::Age::VERSION
8
8
  gem.summary = "Determine required Unicode version of a string."
9
- gem.description = "A micromodule to detect which Unicode version is required to display a string."
9
+ gem.description = "[Unicode #{Unicode::Age::UNICODE_VERSION}] A micromodule to detect which Unicode version is required to display a string."
10
10
  gem.authors = ["Jan Lelis"]
11
11
  gem.email = ["mail@janlelis.de"]
12
12
  gem.homepage = "https://github.com/janlelis/unicode-age"
metadata CHANGED
@@ -1,23 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-age
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.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: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A micromodule to detect which Unicode version is required to display
14
- a string.
13
+ description: "[Unicode 9.0.0] A micromodule to detect which Unicode version is required
14
+ to display a string."
15
15
  email:
16
16
  - mail@janlelis.de
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - ".README.md.swp"
21
22
  - ".gitignore"
22
23
  - ".travis.yml"
23
24
  - CHANGELOG.md
@@ -51,10 +52,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
52
  version: '0'
52
53
  requirements: []
53
54
  rubyforge_project:
54
- rubygems_version: 2.6.3
55
+ rubygems_version: 2.6.8
55
56
  signing_key:
56
57
  specification_version: 4
57
58
  summary: Determine required Unicode version of a string.
58
59
  test_files:
59
60
  - spec/unicode_age_spec.rb
60
- has_rdoc: