level2 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/level2.gemspec +1 -1
- data/lib/active_support/cache/level2.rb +4 -3
- 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: 4869d39d97c053102f103b2e2119f161b4085bfd
|
4
|
+
data.tar.gz: ee721c49e80a68745fdf31508149a89cd480e5fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc493bd4ce879fdd97c0129e6c93d538ef67ca86e1bfce2de091070593a03ed952ccbc5a2010209dff13475637e6778f36e0406689148ac06ea3286e00a6e8d4
|
7
|
+
data.tar.gz: e7bf429a98c70b6813eef8cd8ebc2ea956380029eceb0bf3fb5f0bf8d2636cd9dd602f12c0c9a360908693b1b1c8c38a7022cdc0adc416bc8dd2defd18a39656
|
data/Gemfile.lock
CHANGED
data/level2.gemspec
CHANGED
@@ -27,10 +27,11 @@ module ActiveSupport
|
|
27
27
|
|
28
28
|
protected
|
29
29
|
|
30
|
-
def instrument(operation, key, options = nil
|
30
|
+
def instrument(operation, key, options = nil)
|
31
31
|
super(operation, key, options) do |payload|
|
32
|
-
payload
|
33
|
-
|
32
|
+
yield(payload).tap do
|
33
|
+
payload[:level] = current_level if payload
|
34
|
+
end
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|