unicode-version 1.1.0 → 1.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 +5 -1
- data/MIT-LICENSE.txt +1 -1
- data/README.md +5 -5
- data/lib/unicode/version/version.rb +1 -1
- data/lib/unicode/version.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 737d929ffee53b36e1e422c54f94df8fd27b48931125f6ed0724c9454eb98171
|
4
|
+
data.tar.gz: 2a62897a7b948e84db5b5d7dd100fc41761e057927b629b4bbf94597da4114c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdeccd4e5e0ff90f23ae1543f79f1745c7cb0d32737d4a8743a403a480b5812203ee744b9cfc8c97ac56206f40d5715f9d39105096ff8a02c7632c09904d7112
|
7
|
+
data.tar.gz: 30f63c789d7a048356158023d4e0a508ba28978946fb3cd8c28ca6dfda68814d477eebab4e0a419506e8860801f784e7252e983f523c0ea9df880c73a2899103
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -13,8 +13,8 @@ gem "unicode-version"
|
|
13
13
|
## Usage
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
# Returns current Unicode version (example with Ruby 3.
|
17
|
-
Unicode::Version.unicode_version # =>
|
16
|
+
# Returns current Unicode version (example with Ruby 3.1.0)
|
17
|
+
Unicode::Version.unicode_version # => 13.0.0
|
18
18
|
|
19
19
|
# Returns Unicode version of older Rubies
|
20
20
|
Unicode::Version.unicode_version "2.6.2" # => 12.0.0
|
@@ -23,8 +23,8 @@ 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 3.
|
27
|
-
Unicode::Version.emoji_version # =>
|
26
|
+
# Returns current Emoji version (example with Ruby 3.1.0)
|
27
|
+
Unicode::Version.emoji_version # => 13.1
|
28
28
|
|
29
29
|
# Returns Emoji version of older Rubies
|
30
30
|
Unicode::Version.emoji_version "2.6.2" # => 12.0
|
@@ -36,4 +36,4 @@ Unicode::Version.emoji_version 2.4 # => nil
|
|
36
36
|
|
37
37
|
## MIT License
|
38
38
|
|
39
|
-
Copyright (C) 2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
39
|
+
Copyright (C) 2020-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
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.1 => "13.0.0",
|
11
12
|
3.0 => "12.1.0",
|
12
13
|
2.7 => "12.1.0",
|
13
14
|
2.6 => "12.1.0",
|
@@ -24,6 +25,7 @@ module Unicode
|
|
24
25
|
}.freeze
|
25
26
|
|
26
27
|
RUBY_EMOJI_VERSIONS = {
|
28
|
+
3.1 => "13.1",
|
27
29
|
3.0 => "12.1",
|
28
30
|
2.7 => "12.1",
|
29
31
|
2.6 => "12.0",
|
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.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: 2021-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Returns Unicode / Emoji versions of current and previous Rubies
|
14
14
|
email:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
51
|
+
rubygems_version: 3.3.3
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Ruby / Unicode / Emoji versions mapping
|