mrcr-cache 0.1.1 → 0.1.2
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/mrcr/cache.rb +6 -5
- data/lib/mrcr/cache/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d4c7cd90a77e5d8b61b3a373dacfe0dd435931d
|
|
4
|
+
data.tar.gz: 22c08104cbf745dcd164f0dbd391b92634720d37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2c7cbee5a29fe7cba39b48d23a54f745ce7152b14b642c5d8f5c584fd851a4ecd4e292cdb52c4041e6f231c09db1913cbc6864127c280914c2283fef4b43fb2
|
|
7
|
+
data.tar.gz: 3a2f1785337fbdf6ae6ec2c139170daeeacbc21c7703b3b7737590dd355c801f21d27fa711221a576627bd036d92d78019238054ed09a5d4e3b2caaa2a17835d
|
data/lib/mrcr/cache.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Mrcr
|
|
|
38
38
|
|
|
39
39
|
# Caches a result of the block evaluation
|
|
40
40
|
#
|
|
41
|
-
# @param [
|
|
41
|
+
# @param [Object] key Hashable object
|
|
42
42
|
# @yield An arbitrary block
|
|
43
43
|
#
|
|
44
44
|
# @note beware Proc instance hashes are not equal, i.e. -> { 1 }.hash != -> { 1 }.hash,
|
|
@@ -52,7 +52,8 @@ module Mrcr
|
|
|
52
52
|
|
|
53
53
|
# Caches a result of the block evaluation
|
|
54
54
|
#
|
|
55
|
-
# @param [
|
|
55
|
+
# @param [Object] args Hashable object
|
|
56
|
+
# @param [Object] default Default value
|
|
56
57
|
# @yield An arbitrary block
|
|
57
58
|
#
|
|
58
59
|
# @note beware Proc instance hashes are not equal, i.e. -> { 1 }.hash != -> { 1 }.hash,
|
|
@@ -68,7 +69,7 @@ module Mrcr
|
|
|
68
69
|
module Methods
|
|
69
70
|
# Delegates call to the class-level method
|
|
70
71
|
#
|
|
71
|
-
# @param [Array<Object>]
|
|
72
|
+
# @param [Array<Object>] key Hashable object
|
|
72
73
|
# @yield An arbitrary block
|
|
73
74
|
#
|
|
74
75
|
# @return [Object] block's return value
|
|
@@ -78,8 +79,8 @@ module Mrcr
|
|
|
78
79
|
|
|
79
80
|
# Delegates call to the class-level method
|
|
80
81
|
#
|
|
81
|
-
# @param [Object]
|
|
82
|
-
# @param [Object] default
|
|
82
|
+
# @param [Object] key Hashable object
|
|
83
|
+
# @param [Object] default Default value.
|
|
83
84
|
# @yield An arbitrary block
|
|
84
85
|
#
|
|
85
86
|
# @return [Object] block's return value
|
data/lib/mrcr/cache/version.rb
CHANGED