unicode-age 1.0.1 → 1.1.0
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/.README.md.swp +0 -0
- data/.travis.yml +4 -5
- data/CHANGELOG.md +5 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +4 -2
- data/lib/unicode/age.rb +1 -0
- data/lib/unicode/age/version.rb +2 -2
- data/spec/unicode_age_spec.rb +2 -1
- data/unicode-age.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09dd3604fde1d681ba8ba3bdb5e04e4fd1b5b9c5'
|
4
|
+
data.tar.gz: 328c4825cb65b85e186b864808da5f69271e8b2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6015fe2ebcc4c195fc2c98f9ba594c70d913aef8b90924ccadf8f352a6098738ae96495674dd37a586cdd5a0b5b2ebbaf81f1b27d69bc17ace4ba5959026c8ef
|
7
|
+
data.tar.gz: 456299e5e0ecf1f43cdc77c755c8ec22cf74c3432ce81407707af92b195a4f9547452df526a4abb5071999283a81f96153fe31afbb4e9d975d4c64809c63ed14
|
data/.README.md.swp
ADDED
Binary file
|
data/.travis.yml
CHANGED
@@ -4,13 +4,13 @@ language: ruby
|
|
4
4
|
script: bundle exec ruby spec/unicode_age_spec.rb
|
5
5
|
|
6
6
|
rvm:
|
7
|
-
- 2.
|
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.
|
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.
|
22
|
-
- rvm: rbx-2
|
21
|
+
- rvm: jruby-9.1.7.0
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
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.
|
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.
|
data/lib/unicode/age.rb
CHANGED
data/lib/unicode/age/version.rb
CHANGED
data/spec/unicode_age_spec.rb
CHANGED
@@ -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("🛲")
|
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
|
data/unicode-age.gemspec
CHANGED
@@ -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
|
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:
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: A micromodule to detect which Unicode version is required
|
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.
|
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:
|