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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/refinements/hashes.rb +1 -1
- data/lib/refinements/ios.rb +3 -1
- data/lib/refinements/symbols.rb +4 -2
- data/refinements.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3abadfec48a3ef48adc2130ab1e9a451fd27cacbb7e5c18c8332757e5db91937
|
4
|
+
data.tar.gz: fa754c6b2c1a19e214edce661a362e93f521381e1ab1fb8f1ebd99fbbca0b13f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c3fb92363ce57b335c74ad29f492eeb634504fb8ba3a97b1374c3fe4cf4a7fb9ed1b274273640e5dac6f9d146753c9df79b4cc90156c089b2e3fba3d005a16
|
7
|
+
data.tar.gz: 4a1d3d5533fe0c76efddd34120066a559835394cf471577b539ef9450a5557243de47647968be6dfb78f6cb19e44fd5cc05a4059be51881c7da6d6932575d9dc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/refinements/hashes.rb
CHANGED
@@ -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}"
|
58
|
+
flat_key = prefix ? :"#{prefix}#{delimiter}#{key}" : key
|
59
59
|
|
60
60
|
next accumulator.merge flat_key => value unless value in Hash
|
61
61
|
|
data/lib/refinements/ios.rb
CHANGED
@@ -28,7 +28,9 @@ module Refinements
|
|
28
28
|
reopen backup
|
29
29
|
end
|
30
30
|
|
31
|
-
|
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
|
data/lib/refinements/symbols.rb
CHANGED
@@ -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
|
-
|
8
|
-
|
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
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.
|
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-
|
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.
|
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
|