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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mug/hash/fetch-assign.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07d9d3f3a20cd20fcc6215086d2de4453052caacce79d03dfca21c779d362f30
4
- data.tar.gz: 19b0ab7a8e6e64ada49eaebcc0412e3f6d50dc750a56b9393cb197a8610417cb
3
+ metadata.gz: 4e308285c55c5291127761955400bafe2a1bf874343ff1524c30028f588815fc
4
+ data.tar.gz: dc8a248835f0167d72d1ebffa6228d0e727562f28681033edd88a43743a297b3
5
5
  SHA512:
6
- metadata.gz: c87042f97f0e62885e891d47a28d2eef4453eda56fef0f9414b541536dfc0275fce0d69792cbb0cdc99dd35dd0fdcfa73246036f4b76dbe2c4483df1238b6fb1
7
- data.tar.gz: 920b93e52a85d10ded07d19d88950b2a7c608379ef599f344d1291dc837acd13c5fb6f324bf77092fb3e9e19d4d60bcb6c5eab9b57e00c9f843ace7c4f14c4de
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 cant be
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.0
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-26 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  == MUG: Matty's Ultimate Gem