refinements 12.2.0 → 12.3.0

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: b6fbc75fb62c2c48c8ca83f2b955b7bbd633b215efca6247ccf15405310a912a
4
- data.tar.gz: a98317fe571c2d185a146c06032d9e77d8aa13eb9ce622a5e0d37cfdbd5e1491
3
+ metadata.gz: 161e776116e30f2fb1624c3bd4904d0173fec8a8c09ee79c2e8f0188a501bc50
4
+ data.tar.gz: 0e1866c9ad344c5a28e0a23140ca2047d3e5382d4814942738b75c91a9d06738
5
5
  SHA512:
6
- metadata.gz: 40b49b202491fb4b65c15ac08a4d4ac437c42b6757164cb8bacaeb4f5730529d76fd8075bcf9c6820b86b248fe0be1f0f1c76bdac40d5d4b776f66e7814650a3
7
- data.tar.gz: '090a7d02b8d54a3558ff15c01920bf357bb651ea4d85c39864b3bf3e5daa874731a8b4ed392f131f92ebfbea102269de1697887df8398942ac9e0128a01e1516'
6
+ metadata.gz: 1ab11b3e8fc4ec3d70ad994b44f76dd8d828fb09eb33d79666a21e1af33d8e4f2cdc74dcf719eea2abe232f92e3cdca110e307372875e18e17fc4306cb6945d0
7
+ data.tar.gz: 3806d85c8ca2257a42e804b54d8559833e0968035f58bfffc5bb7daa7aede1194b0abc5e3d537f4d2ad53e575deec57ca8a5917cf93dc932afe0d2728fd9ea96
checksums.yaml.gz.sig CHANGED
Binary file
@@ -6,11 +6,9 @@ module Refinements
6
6
  # Provides additional enhancements to the Hash primitive.
7
7
  module Hash
8
8
  refine ::Hash.singleton_class do
9
- def infinite
10
- new { |new_hash, missing_key| new_hash[missing_key] = new(&new_hash.default_proc) }
11
- end
9
+ def infinite = new { |nascence, lacuna| nascence[lacuna] = new(&nascence.default_proc) }
12
10
 
13
- def with_default(value) = new { |new_hash, missing_key| new_hash[missing_key] = value }
11
+ def with_default(value) = new { |nascence, lacuna| nascence[lacuna] = value }
14
12
  end
15
13
 
16
14
  refine ::Hash do
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 = "12.2.0"
5
+ spec.version = "12.3.0"
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: 12.2.0
4
+ version: 12.3.0
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: 2024-03-03 00:00:00.000000000 Z
38
+ date: 2024-04-21 00:00:00.000000000 Z
39
39
  dependencies: []
40
40
  description:
41
41
  email:
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.5.6
94
+ rubygems_version: 3.5.9
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: A collection of core Ruby object refinements.
metadata.gz.sig CHANGED
Binary file