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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93a659e9c501a1314adde22291a9591574b61ca2e00c198eed3c7be4651b052d
4
- data.tar.gz: 6cd016b31f50f1e06fa2303d991f51c076d47e71127ac29cb6a637aa89e6c799
3
+ metadata.gz: '044887cc2a5f310d1c29a083a78e88e9c43ae818abe113a84b861edef7f8e36e'
4
+ data.tar.gz: f9d3cf944fa4ed27440371dce5094463b77303b0245989007a7b9eac8222e277
5
5
  SHA512:
6
- metadata.gz: 790e876f048df53e8bce02768de8d3f2b10d18c5022f0c2cd9e9fff55718538e600d769229e658e33da79e3edf1ced274c313a1f952b5947db5cd1ecbfc48e71
7
- data.tar.gz: eba1a3620908a94f91053c40e9cfc994412c5db5cc35513f4e771f33cde541abb24f3d8cd43e3210e4a51621dd16eabb57739b7aa971a4fe031f0adfd8fa10c0
6
+ metadata.gz: da21861d6834b9fb68f4c399fe8a07c6b1101f88f1afd03713f3b92f34bea838e79f7888f464b3c43ba7dafd8a2c09bb4b9ee807ebb07a929f09e36b4d36bb88
7
+ data.tar.gz: 0a1bcae0b8c5fae2fda9622d07ac3edd865ed7170b0527a719fdf36aa243415422ae422a58c1c400b0b2ef3516e687570ba8a4c9b275b843fc597e9c4f99a0f3
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.2.0
4
+
5
+ * Support Ruby 3.0
6
+
3
7
  ### 2.1.0
4
8
 
5
9
  * Support Unicode 12.0 (Ruby 2.6.2), Unicode 12.1 (Ruby 2.6.3)
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2018 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2020 Jan Lelis, https://janlelis.com
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)](https://badge.fury.io/rb/unicode-age) [![[travis]](https://travis-ci.org/janlelis/unicode-age.svg)](https://travis-ci.org/janlelis/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 | Unicode 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-2018 Jan Lelis <http://janlelis.com>. Released under the MIT license.
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
- sh "for file in spec/*.rb; do ruby $file; done"
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Unicode
4
4
  module Age
5
- VERSION = "2.1.0"
5
+ VERSION = "2.2.0"
6
6
  UNICODE_VERSION = "12.1.0"
7
7
  end
8
8
  end
@@ -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 = ["mail@janlelis.de"]
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 = "~> 2.0"
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.1.0
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: 2019-04-17 00:00:00.000000000 Z
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
- - mail@janlelis.de
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.0.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.
@@ -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