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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/refinements/hash.rb +2 -4
- 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: 161e776116e30f2fb1624c3bd4904d0173fec8a8c09ee79c2e8f0188a501bc50
|
4
|
+
data.tar.gz: 0e1866c9ad344c5a28e0a23140ca2047d3e5382d4814942738b75c91a9d06738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab11b3e8fc4ec3d70ad994b44f76dd8d828fb09eb33d79666a21e1af33d8e4f2cdc74dcf719eea2abe232f92e3cdca110e307372875e18e17fc4306cb6945d0
|
7
|
+
data.tar.gz: 3806d85c8ca2257a42e804b54d8559833e0968035f58bfffc5bb7daa7aede1194b0abc5e3d537f4d2ad53e575deec57ca8a5917cf93dc932afe0d2728fd9ea96
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/refinements/hash.rb
CHANGED
@@ -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 { |
|
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
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.
|
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-
|
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.
|
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
|