reviewed 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/faraday/cache.rb +2 -1
- data/lib/reviewed/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: b1762a7ff061a439b273236b71942175c54e1128
|
4
|
+
data.tar.gz: 55efb7f2e40abb882057e7ab60db6c33acf8693d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e225a57655c95cd7d261c0ed266d7fee28bc5c473f5163fa73d998ab663b538faa8b8eec4688f7f14ba4276b6fca9fd9a1eacf62d2fd29d339a8beb4d849c5a
|
7
|
+
data.tar.gz: ebc9ed2155e2d18c08f365ae66710e0e04eaf8db7ee3f73cf789e2396d1247ee0b473b444746ea1536d925b993f2cebea72562c0185157e68c91e322db083a61
|
data/lib/faraday/cache.rb
CHANGED
@@ -26,7 +26,8 @@ module Faraday
|
|
26
26
|
@app.call(env).on_complete do |response|
|
27
27
|
if store_response?(response)
|
28
28
|
store.delete(cache_key)
|
29
|
-
|
29
|
+
storeable_response = MultiJson.dump(response.slice(:status, :body, :response_headers))
|
30
|
+
store.write(cache_key, storeable_response, write_options)
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
data/lib/reviewed/version.rb
CHANGED