refinements 11.1.2 → 11.1.3

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: 02bd14a370832aff2b0039fe6afbddb3ebc5923aec4c28aa6050e62b48419fec
4
- data.tar.gz: c7325e8468e03f988b1c819ee5c2879240b41b8647e4d1643ad9cf625e30f066
3
+ metadata.gz: 3abadfec48a3ef48adc2130ab1e9a451fd27cacbb7e5c18c8332757e5db91937
4
+ data.tar.gz: fa754c6b2c1a19e214edce661a362e93f521381e1ab1fb8f1ebd99fbbca0b13f
5
5
  SHA512:
6
- metadata.gz: 6f651e24e9a314db8f298ddf697feb34b7124b4c53ecd6534cdb3958314223aeeb19b4ef126457f409e0d82f586b39786cb0c1d90ff542099bfb2d63a7a8b1ff
7
- data.tar.gz: 02d0648d45f362afe1a4abc1d4b8b0f66a5ea3e5eedf66150ef6ea9ea383a70a3bfc454da292630d454714cb4f4dc668b772c7827f14836f2a59a9e638fc09f1
6
+ metadata.gz: 67c3fb92363ce57b335c74ad29f492eeb634504fb8ba3a97b1374c3fe4cf4a7fb9ed1b274273640e5dac6f9d146753c9df79b4cc90156c089b2e3fba3d005a16
7
+ data.tar.gz: 4a1d3d5533fe0c76efddd34120066a559835394cf471577b539ef9450a5557243de47647968be6dfb78f6cb19e44fd5cc05a4059be51881c7da6d6932575d9dc
checksums.yaml.gz.sig CHANGED
Binary file
@@ -55,7 +55,7 @@ module Refinements
55
55
 
56
56
  def flatten_keys prefix: nil, delimiter: "_"
57
57
  reduce({}) do |accumulator, (key, value)|
58
- flat_key = prefix ? "#{prefix}#{delimiter}#{key}".to_sym : key
58
+ flat_key = prefix ? :"#{prefix}#{delimiter}#{key}" : key
59
59
 
60
60
  next accumulator.merge flat_key => value unless value in Hash
61
61
 
@@ -28,7 +28,9 @@ module Refinements
28
28
  reopen backup
29
29
  end
30
30
 
31
- def squelch(&) = self.class.void.then { |void| redirect(void, &) }
31
+ # rubocop:todo Naming/BlockForwarding
32
+ def squelch(&block) = self.class.void.then { |void| redirect(void, &block) }
33
+ # rubocop:enable Naming/BlockForwarding
32
34
  end
33
35
  end
34
36
  end
@@ -4,9 +4,11 @@ module Refinements
4
4
  # Provides additional enhancements to the Symbol primitive.
5
5
  module Symbols
6
6
  refine Symbol do
7
- def call(*arguments, &)
8
- proc { |receiver| receiver.public_send self, *arguments, & }
7
+ # rubocop:todo Naming/BlockForwarding
8
+ def call(*arguments, &block)
9
+ proc { |receiver| receiver.public_send self, *arguments, &block }
9
10
  end
11
+ # rubocop:enable Naming/BlockForwarding
10
12
  end
11
13
  end
12
14
  end
data/refinements.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "refinements"
5
- spec.version = "11.1.2"
5
+ spec.version = "11.1.3"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/refinements"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinements
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.1.2
4
+ version: 11.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-11-16 00:00:00.000000000 Z
38
+ date: 2023-12-25 00:00:00.000000000 Z
39
39
  dependencies: []
40
40
  description:
41
41
  email:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.4.22
98
+ rubygems_version: 3.5.3
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: A collection of core Ruby object refinements.
metadata.gz.sig CHANGED
Binary file