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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c792795b7c06ab995be841258051f4a3d69c028
4
- data.tar.gz: 5e48c94469b90851737451bcb09055588c85fe7c
3
+ metadata.gz: b1762a7ff061a439b273236b71942175c54e1128
4
+ data.tar.gz: 55efb7f2e40abb882057e7ab60db6c33acf8693d
5
5
  SHA512:
6
- metadata.gz: 4e8d6bc0c79d1f678b1d8fddc46209562de5b3e4f95d99cc508231db3edbaee9795c39e4f2ba29418c255b719cd10896d68c57130155073fb7a0f3fe01bc4652
7
- data.tar.gz: dad66fac14ece996338023c83369e14e25b3545118151b49a5d4ed4de5943f9c0c87b4f0d2b7466276be577a12d6fe6de35a1af5713545497f822a234ff19415
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
- store.write(cache_key, MultiJson.dump(response), write_options)
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
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.7"
2
+ VERSION = "0.7.1"
3
3
  API_VERSION = 'v1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante