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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 776e55f85f2be081d35917ed4d35e5c273a51bab40c7bf57002cf62f830f4b93
4
- data.tar.gz: bff45459eaaab89965ed235ee54903c7b52acd193e5e7115ab348a6e2a161817
3
+ metadata.gz: 2298818499a99b0f1c12fa1d0995c0e557dd41cbca8c35ca1ece53a2a4d76701
4
+ data.tar.gz: a1d42566a004ec3f15526bea89b270c676e72dd52f2ab2ab5519372f4ba91c61
5
5
  SHA512:
6
- metadata.gz: 67a6dd320cfb2c5deb90baa6dedb7eb24daad2a3200e4309c2d91040254758e775e868b408bf2cba24d1274242f09039861527d2b23280a9e82caebebe44128f
7
- data.tar.gz: '086d8c0586215382dc57f51f6801df0509dc761dfc48866912d51a21fe7f6f8aebc390a96869ac7e5d2db8640104c5f70fbc24e601a4fc164bf16d3452a01dd5'
6
+ metadata.gz: 7c777cc151f22aae64f3fa49be07b452956358f3746891d72fa279f23a83e83b7ce90091e1f2428fa3085826f441cd256c294b3659e699aa164cd5a8fff649f2
7
+ data.tar.gz: 50bf50aa8160c9f7ddaadcc34a02ab30ac9e224a1e574ce081e13d637aad1a863d0c7aa0c9b8afcc7326593875f2cf7b37ee89449d04dc2a1f1a23dac3ac0b95
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.0
4
+
5
+ * Add Ruby 3.0.0
6
+
3
7
  ### 1.0.0
4
8
 
5
9
  * Initial release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # unicode-version [![[version]](https://badge.fury.io/rb/unicode-version.svg)](https://badge.fury.io/rb/unicode-version) [![[travis]](https://travis-ci.org/janlelis/unicode-version.svg)](https://travis-ci.org/janlelis/unicode-version)
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 2.7.0)
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 2.7.0)
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
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  desc "#{gemspec.name} | Spec"
34
34
  task :spec do
35
- sh "for file in spec/*_spec.rb; do ruby $file; done"
35
+ ruby "spec/unicode_version_spec.rb"
36
36
  end
37
37
  task default: :spec
38
38
 
@@ -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",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Unicode
4
4
  module Version
5
- VERSION = "1.0.0"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
@@ -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.0.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: 2020-02-02 00:00:00.000000000 Z
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.1.2
51
+ rubygems_version: 3.2.3
53
52
  signing_key:
54
53
  specification_version: 4
55
54
  summary: Ruby / Unicode / Emoji versions mapping
@@ -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