ruby3-backward-compatibility 1.1.0 → 1.1.1

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: 633e9d810f14371159a3119d1e2c713dfb79a00beae434fa1ae12d4bb6bd726b
4
- data.tar.gz: 1e37912bd6c3885a3b0c03fe47bdfd5033e79d44361234a5a8f4fc653e23d275
3
+ metadata.gz: e72c4f9ed9be362ed3bcc227865c004eb1c87ba49a878f47fe8aa0af60503744
4
+ data.tar.gz: d362dbf046076652989f7530b7cbe5f6acc36dd5f45ed3d5be930f56cbedbbfb
5
5
  SHA512:
6
- metadata.gz: bf74e2f1827ea9d397905258f6053000d74c3369b4b1f601a5250359c03fd31d1c2109e952050c1ab7ef19851f05f2efdfdd3861c34c985d6308f7b88a0966da
7
- data.tar.gz: 6674cc14712ed77e0698dd9956ef0ca9228f32c872ee4cd091d7b2d621e7d80612a5d555336da797ce933f8a8fba6b60993ae17c644d211f7535604e2918872c
6
+ metadata.gz: 9ea7a3617ed5bcf3664d376827ee1f5a8e6c3b2aaac33af0460f3c43b8787e535b917a81d448d8e2b3935977c64b2e80c0bc8eba2d7fb7c0d6c06d673b8842bd
7
+ data.tar.gz: e2fdbf510be4111c4dc4611432eddd696b75db90dca65a023f98f7a61a9ca1a8a270dcbffaa905d480bdd04ef1de584bb41aff8b406e974c7fb646966071f134
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.1] - 2022-12-01
4
+
5
+ - Gem no longer requires Ruby 3. It will not do anything when used on Ruby 2.x, but you can add it to your Gemfile if you need that for a Ruby migration strategy. (Thanks to @BigAirJosh)
6
+
3
7
  ## [1.1.0] - 2022-12-01
4
8
 
5
9
  - Change `callable_with_hash` to return a symbol, if called with a singular method.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruby3BackwardCompatibility
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -1,10 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Ruby3BackwardCompatibility
4
- NOT_GIVEN = Object.new
3
+ if RUBY_VERSION.start_with?('3')
4
+ module Ruby3BackwardCompatibility
5
+ NOT_GIVEN = Object.new
5
6
 
6
- # TODO private?
7
- end
7
+ # TODO private?
8
+ end
8
9
 
9
- require 'ruby3_backward_compatibility/callable_with_hash'
10
- require 'ruby3_backward_compatibility/version'
10
+ require 'ruby3_backward_compatibility/callable_with_hash'
11
+ require 'ruby3_backward_compatibility/version'
12
+ end
@@ -11,7 +11,6 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = 'Backward compatibility for Ruby 3 stdlib'
12
12
  spec.homepage = 'https://github.com/makandra/ruby3-backward-compatibility'
13
13
  spec.license = 'MIT'
14
- spec.required_ruby_version = '>= 3.0.0'
15
14
 
16
15
  spec.metadata['homepage_uri'] = spec.homepage
17
16
  spec.metadata['source_code_uri'] = 'https://github.com/makandra/ruby3-backward-compatibility'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby3-backward-compatibility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-01 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -68,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 3.0.0
71
+ version: '0'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="