unicode-age 2.1.0 → 2.2.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/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -14
- data/Rakefile +5 -1
- data/lib/unicode/age/version.rb +1 -1
- data/unicode-age.gemspec +2 -2
- metadata +8 -6
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '044887cc2a5f310d1c29a083a78e88e9c43ae818abe113a84b861edef7f8e36e'
|
4
|
+
data.tar.gz: f9d3cf944fa4ed27440371dce5094463b77303b0245989007a7b9eac8222e277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da21861d6834b9fb68f4c399fe8a07c6b1101f88f1afd03713f3b92f34bea838e79f7888f464b3c43ba7dafd8a2c09bb4b9ee807ebb07a929f09e36b4d36bb88
|
7
|
+
data.tar.gz: 0a1bcae0b8c5fae2fda9622d07ac3edd865ed7170b0527a719fdf36aa243415422ae422a58c1c400b0b2ef3516e687570ba8a4c9b275b843fc597e9c4f99a0f3
|
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)](https://badge.fury.io/rb/unicode-age) [![[
|
1
|
+
# Unicode::Age [![[version]](https://badge.fury.io/rb/unicode-age.svg)](https://badge.fury.io/rb/unicode-age) [![[ci]](https://github.com/janlelis/unicode-age/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-age/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
A micromodule to detect which Unicode version is required to display a string.
|
4
4
|
|
@@ -17,21 +17,10 @@ Unicode::Age.of "\u{10FFFD}" # => 2.0
|
|
17
17
|
|
18
18
|
Characters of status "Unassigned" (Unicode General Category of **Cn**) will raise a `Unicode::Age::UnknownAge` exception.
|
19
19
|
|
20
|
-
**This is a breaking change:** In the current non-*pre* version of the gem on rubygems.org, unassigned characters will just return `nil`
|
21
|
-
|
22
20
|
## Supported Ruby/Unicode versions
|
23
21
|
|
24
|
-
Ruby version
|
25
|
-
-------------|----------------
|
26
|
-
**2.6.3+** | **12.1.0**
|
27
|
-
**2.6.2** | **12.0.0**
|
28
|
-
**2.6.1-** | **11.0.0**
|
29
|
-
**2.5** | **10.0.0**
|
30
|
-
**2.4** | **9.0.0**
|
31
|
-
**2.3** | **8.0.0**
|
32
|
-
**2.2** | **7.0.0**
|
33
|
-
**2.1** | **6.1.0**
|
22
|
+
See the [Unicode — Ruby version table at Idiosyncratic Ruby](https://idiosyncratic-ruby.com/73-unicode-version-mapping.html)
|
34
23
|
|
35
24
|
## MIT License
|
36
25
|
|
37
|
-
Copyright (C) 2016-
|
26
|
+
Copyright (C) 2016-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/Rakefile
CHANGED
@@ -34,7 +34,11 @@ end
|
|
34
34
|
|
35
35
|
desc "#{gemspec.name} | Spec"
|
36
36
|
task :spec do
|
37
|
-
|
37
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
38
|
+
sh "for %f in (spec/\*.rb) do ruby spec/%f"
|
39
|
+
else
|
40
|
+
sh "for file in spec/*.rb; do ruby $file; done"
|
41
|
+
end
|
38
42
|
end
|
39
43
|
task default: :spec
|
40
44
|
|
data/lib/unicode/age/version.rb
CHANGED
data/unicode-age.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Determine required Unicode version of a string."
|
9
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
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/unicode-age"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0", "< 4.0"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-age
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.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: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "[Unicode 12.1.0] A micromodule to detect which Unicode version is required
|
14
14
|
to display a string."
|
15
15
|
email:
|
16
|
-
-
|
16
|
+
- hi@ruby.consulting
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".gitignore"
|
22
|
-
- ".travis.yml"
|
23
22
|
- CHANGELOG.md
|
24
23
|
- CODE_OF_CONDUCT.md
|
25
24
|
- Gemfile
|
@@ -42,16 +41,19 @@ require_paths:
|
|
42
41
|
- lib
|
43
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- - "
|
44
|
+
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '2.0'
|
47
|
+
- - "<"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.0'
|
48
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
51
|
requirements:
|
50
52
|
- - ">="
|
51
53
|
- !ruby/object:Gem::Version
|
52
54
|
version: '0'
|
53
55
|
requirements: []
|
54
|
-
rubygems_version: 3.
|
56
|
+
rubygems_version: 3.2.3
|
55
57
|
signing_key:
|
56
58
|
specification_version: 4
|
57
59
|
summary: Determine required Unicode version of a string.
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
script: bundle exec ruby spec/unicode_age_spec.rb
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.6.3
|
8
|
-
- 2.6.2
|
9
|
-
- 2.6.1
|
10
|
-
- 2.5.4
|
11
|
-
- 2.4.6
|
12
|
-
- 2.3.8
|
13
|
-
- 2.2
|
14
|
-
- 2.1
|
15
|
-
- ruby-head
|
16
|
-
- jruby-head
|
17
|
-
- jruby-9.2.6.0
|
18
|
-
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- rvm: 2.2
|
22
|
-
- rvm: 2.1
|
23
|
-
- rvm: jruby-head
|
24
|
-
- rvm: jruby-9.2.6.0
|