mug 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mug/hash/fetch-assign.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e308285c55c5291127761955400bafe2a1bf874343ff1524c30028f588815fc
|
|
4
|
+
data.tar.gz: dc8a248835f0167d72d1ebffa6228d0e727562f28681033edd88a43743a297b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89b6e6e1189c2d5f08b451d4d0994d313c395b0dad53757318683b7e7ebd98d3e9c606ca088b5579741fb840f2b5019d3d34ed2fd2cfa749028a65a1ac0b85fd
|
|
7
|
+
data.tar.gz: 00c4304d80f1e9ce517db8a4de889932b02e6798894f25ba8cae36730d3561ca90236fad8f390f7c689125724e920540610461f73afd9b168536a67f5af4bfa7
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
class Hash
|
|
3
3
|
|
|
4
4
|
#
|
|
5
|
-
# Returns a value from the hash for the given key. If the key can
|
|
5
|
+
# Returns a value from the hash for the given key. If the key can't be
|
|
6
6
|
# found, there are several options: if default is given, then that will
|
|
7
7
|
# be stored and returned; if the optional code block is specified, then
|
|
8
8
|
# that will be run and its result stored and returned.
|
|
@@ -12,6 +12,7 @@ class Hash
|
|
|
12
12
|
store key, (default.length == 1 ? default[0] : yield(key)) unless key? key
|
|
13
13
|
fetch key
|
|
14
14
|
end
|
|
15
|
+
alias compute_if_absent fetch_assign
|
|
15
16
|
|
|
16
17
|
end
|
|
17
18
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Kerwin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-11-
|
|
11
|
+
date: 2020-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
== MUG: Matty's Ultimate Gem
|