unicode-version 1.0.0 → 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/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/unicode/version.rb +2 -0
- data/lib/unicode/version/version.rb +1 -1
- data/spec/unicode_version_spec.rb +2 -0
- metadata +3 -4
- data/.travis.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2298818499a99b0f1c12fa1d0995c0e557dd41cbca8c35ca1ece53a2a4d76701
|
4
|
+
data.tar.gz: a1d42566a004ec3f15526bea89b270c676e72dd52f2ab2ab5519372f4ba91c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c777cc151f22aae64f3fa49be07b452956358f3746891d72fa279f23a83e83b7ce90091e1f2428fa3085826f441cd256c294b3659e699aa164cd5a8fff649f2
|
7
|
+
data.tar.gz: 50bf50aa8160c9f7ddaadcc34a02ab30ac9e224a1e574ce081e13d637aad1a863d0c7aa0c9b8afcc7326593875f2cf7b37ee89449d04dc2a1f1a23dac3ac0b95
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Unicode::Version.unicode_version [![[version]](https://badge.fury.io/rb/unicode-version.svg)](https://badge.fury.io/rb/unicode-version) [![[ci]](https://github.com/janlelis/unicode-version/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-version/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Makes it easy to check for Unicode and Emoji support of your current Ruby (and older Rubies)
|
4
4
|
|
@@ -13,7 +13,7 @@ gem "unicode-version"
|
|
13
13
|
## Usage
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
# Returns current Unicode version (example with Ruby
|
16
|
+
# Returns current Unicode version (example with Ruby 3.0.0)
|
17
17
|
Unicode::Version.unicode_version # => 12.1
|
18
18
|
|
19
19
|
# Returns Unicode version of older Rubies
|
@@ -23,7 +23,7 @@ Unicode::Version.unicode_version 1.9 # => 5.2.0
|
|
23
23
|
# Returns nil when Ruby version too old (before 1.9)
|
24
24
|
Unicode::Version.unicode_version 1.8 # => nil
|
25
25
|
|
26
|
-
# Returns current Emoji version (example with Ruby
|
26
|
+
# Returns current Emoji version (example with Ruby 3.0.0)
|
27
27
|
Unicode::Version.emoji_version # => 12.1
|
28
28
|
|
29
29
|
# Returns Emoji version of older Rubies
|
data/Rakefile
CHANGED
data/lib/unicode/version.rb
CHANGED
@@ -8,6 +8,7 @@ module Unicode
|
|
8
8
|
RB_CONFIG_EMOJI_AVAILABLE = "2.6.0"
|
9
9
|
|
10
10
|
RUBY_UNICODE_VERSIONS = {
|
11
|
+
3.0 => "12.1.0",
|
11
12
|
2.7 => "12.1.0",
|
12
13
|
2.6 => "12.1.0",
|
13
14
|
"2.6.2" => "12.0.0",
|
@@ -23,6 +24,7 @@ module Unicode
|
|
23
24
|
}.freeze
|
24
25
|
|
25
26
|
RUBY_EMOJI_VERSIONS = {
|
27
|
+
3.0 => "12.1",
|
26
28
|
2.7 => "12.1",
|
27
29
|
2.6 => "12.0",
|
28
30
|
"2.6.1" => "11.0",
|
@@ -26,10 +26,12 @@ describe Unicode::Version do
|
|
26
26
|
describe ".emoji_version" do
|
27
27
|
it "returns current Ruby's Emoji version when no Ruby version given" do
|
28
28
|
RUBY_VERSION, original_ruby_version = "2.7.0", RUBY_VERSION
|
29
|
+
Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE, original_available = "2.8.0", Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE
|
29
30
|
|
30
31
|
assert_equal "12.1", Unicode::Version.emoji_version
|
31
32
|
|
32
33
|
RUBY_VERSION = original_ruby_version
|
34
|
+
Unicode::Version::RB_CONFIG_EMOJI_AVAILABLE = original_available
|
33
35
|
end
|
34
36
|
|
35
37
|
it "returns Emoji version of given Ruby" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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: 2020-
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Returns Unicode / Emoji versions of current and previous Rubies
|
14
14
|
email:
|
@@ -18,7 +18,6 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
|
-
- ".travis.yml"
|
22
21
|
- CHANGELOG.md
|
23
22
|
- CODE_OF_CONDUCT.md
|
24
23
|
- Gemfile
|
@@ -49,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
48
|
- !ruby/object:Gem::Version
|
50
49
|
version: '0'
|
51
50
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
51
|
+
rubygems_version: 3.2.3
|
53
52
|
signing_key:
|
54
53
|
specification_version: 4
|
55
54
|
summary: Ruby / Unicode / Emoji versions mapping
|
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.7
|
6
|
-
- 2.6
|
7
|
-
- 2.5
|
8
|
-
- 2.4
|
9
|
-
- 2.3
|
10
|
-
- 2.2
|
11
|
-
- 2.1
|
12
|
-
- 2.0
|
13
|
-
- ruby-head
|
14
|
-
- jruby-9.2.9.0
|
15
|
-
- truffleruby
|
16
|
-
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: jruby-2.9.2.0
|
20
|
-
- rvm: truffleruby
|
21
|
-
# fast_finish: true
|