ruby3-backward-compatibility 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d863bc999c8d389ecc066c1e205d29599f8126296c177937bf61e054245765ee
4
- data.tar.gz: bd87ac80c634fa8292c8a7f09bf7cbb6c2c1e84e7a8eae02fab1ade564c05b12
3
+ metadata.gz: e72c4f9ed9be362ed3bcc227865c004eb1c87ba49a878f47fe8aa0af60503744
4
+ data.tar.gz: d362dbf046076652989f7530b7cbe5f6acc36dd5f45ed3d5be930f56cbedbbfb
5
5
  SHA512:
6
- metadata.gz: 06b02c646e5f753bf7e7f6ad908fc7687c11d96eace311e4e962264b9087e2f7c9b7f5613d72893d384b8ebb3c66a7dec27297e7e383dea4f675b44d80f220fb
7
- data.tar.gz: 84cb5c14e91f7c0272f7a56527aada55ea2785db50278584e3152265a43d435f68f4803f22693ffb750d2e6ca173df2fbd6a9771bd5181570eed87489b02092b
6
+ metadata.gz: 9ea7a3617ed5bcf3664d376827ee1f5a8e6c3b2aaac33af0460f3c43b8787e535b917a81d448d8e2b3935977c64b2e80c0bc8eba2d7fb7c0d6c06d673b8842bd
7
+ data.tar.gz: e2fdbf510be4111c4dc4611432eddd696b75db90dca65a023f98f7a61a9ca1a8a270dcbffaa905d480bdd04ef1de584bb41aff8b406e974c7fb646966071f134
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ## [1.1.0] - 2022-12-01
8
+
9
+ - Change `callable_with_hash` to return a symbol, if called with a singular method.
10
+
3
11
  ## [1.0.0] - 2022-12-01
4
12
 
5
13
  - Now 1.0, adhering to semantic versioning.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby3-backward-compatibility (1.0.0)
4
+ ruby3-backward-compatibility (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -50,6 +50,12 @@ module Ruby3BackwardCompatibility
50
50
  _ruby3_callable_with_hash_module.send(:protected, method_name)
51
51
  end
52
52
  end
53
+
54
+ if method_names.size > 1
55
+ method_names
56
+ else
57
+ method_names.first
58
+ end
53
59
  end
54
60
 
55
61
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruby3BackwardCompatibility
4
- VERSION = '1.0.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.0.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
  - - ">="