redis-cacheable 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9706cf90fd7bfd8c6276e7fb47c9d927ca1d4c42
4
- data.tar.gz: 24e68ff93bf5d381c3bc96d133894a14cce2052d
3
+ metadata.gz: 31bc4cb6af9e7e18b7e2c8d3a30595fdc4895e25
4
+ data.tar.gz: b940d81a3321cdecd05711648edd6b29848f1966
5
5
  SHA512:
6
- metadata.gz: 3a219636463b3d5684880ffba2a9ce08ad2459a6646324ed153a28b8ea8348a9b8dd7f909b3943cf99edceb4ee8a4d9a6413c71d32e69339b387d8dfe893818c
7
- data.tar.gz: 8b24f33964a3860442851cf3e9aea69c0508740a8c77b97273a733a32c6fca6d352b55729b196b9bf8062587dd18ca9473f5c6f091e9cd83e125e22ea3102ea9
6
+ metadata.gz: 4baeafafa7813e8d6f57ea66bb8262889d3d2e5c9fb0ab1a0e680b466199b068e01ff20fde55e551dc905be5acb1dd32f218d132154386cc60e016aae6794311
7
+ data.tar.gz: 33291e1c2af0b7e58ed8779ab43e647147dd66676c4487da96c72fa3249ddc29730db60011223b2b230396aa8bc763aef0554dad7957ca781e336d68815b2f96
@@ -101,13 +101,8 @@ module RedisCacheable
101
101
  when Proc
102
102
  __redis_cache_attrs__.call(self)
103
103
  when Array
104
- if respond_to?(:as_json)
105
- options = __redis_cache_attrs__.present? ? {only: __redis_cache_attrs__} : {}
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
@@ -1,3 +1,3 @@
1
1
  module RedisCacheable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-cacheable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007