redis-cacheable 0.2.0 → 0.2.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/redis_cacheable.rb +2 -7
- data/lib/redis_cacheable/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: 31bc4cb6af9e7e18b7e2c8d3a30595fdc4895e25
|
4
|
+
data.tar.gz: b940d81a3321cdecd05711648edd6b29848f1966
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4baeafafa7813e8d6f57ea66bb8262889d3d2e5c9fb0ab1a0e680b466199b068e01ff20fde55e551dc905be5acb1dd32f218d132154386cc60e016aae6794311
|
7
|
+
data.tar.gz: 33291e1c2af0b7e58ed8779ab43e647147dd66676c4487da96c72fa3249ddc29730db60011223b2b230396aa8bc763aef0554dad7957ca781e336d68815b2f96
|
data/lib/redis_cacheable.rb
CHANGED
@@ -101,13 +101,8 @@ module RedisCacheable
|
|
101
101
|
when Proc
|
102
102
|
__redis_cache_attrs__.call(self)
|
103
103
|
when Array
|
104
|
-
|
105
|
-
|
106
|
-
as_json(options)
|
107
|
-
else
|
108
|
-
__redis_cache_attrs__.each_with_object({}) do |attr, hash|
|
109
|
-
hash[attr] = send(attr)
|
110
|
-
end
|
104
|
+
__redis_cache_attrs__.each_with_object({}) do |attr, hash|
|
105
|
+
hash[attr] = send(attr)
|
111
106
|
end
|
112
107
|
end
|
113
108
|
end
|