reviewed 0.6.3 → 0.6.4

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: fa11a3952897f5b9ce559f830e1bfecc7e36f50d
4
- data.tar.gz: 3eb8766f1d332ea87cf3d51432e1e990a96f0d39
3
+ metadata.gz: 3cd30ef279c05f3f026964de3ac26daa0acdcada
4
+ data.tar.gz: bb53799075c3ab77d965b01bdfbd9d6c01153cc8
5
5
  SHA512:
6
- metadata.gz: fa76c100e1ff5f150e03cc8a966828e7f5c13a3b675fed43aa2c71d65ef27d9baaea162c743c93b6a8186e02d889f23f7f838e193f643ecacd83bacdf9cc015b
7
- data.tar.gz: 73ebf5077ebc656a42df42aaea07206473ce9560662514edd99dfcac291374c7e1aa9e96aa907fe7fca3b3f923b8fc0ac369a59f1368884c1f3780ab441ade9e
6
+ metadata.gz: f21d93faaa5d6b4215d05b4f58638ea123866c8e6ec2d910a57fd11561404bde791d8f39857276ca489009bf013af56d578e701e21b47f9dc878d686ed966838
7
+ data.tar.gz: 1042ec623a5d69487eed6ff7094c56d74938d6394f74d43f831d3894c47c96c10282feeadd9efc0e4c7bc8567801106c446e7a0634034afab5ca5f3da0b66ea0
data/lib/faraday/cache.rb CHANGED
@@ -17,7 +17,11 @@ module Faraday
17
17
  @website_id = env[:request_headers]['x-reviewed-website']
18
18
 
19
19
  if serve_from_cache? && store.exist?(cache_key)
20
- Hashie::Mash.new(Marshal.load( store.read(cache_key) ))
20
+ begin
21
+ Hashie::Mash.new(Marshal.load( store.read(cache_key) ))
22
+ rescue => e
23
+ raise e.message + ": #{cache_key}"
24
+ end
21
25
  else
22
26
  @app.call(env).on_complete do |response|
23
27
  if store_response?(response)
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Plante
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-09 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  version: '0'
313
313
  requirements: []
314
314
  rubyforge_project:
315
- rubygems_version: 2.0.6
315
+ rubygems_version: 2.0.2
316
316
  signing_key:
317
317
  specification_version: 4
318
318
  summary: A Ruby Gem for Accessing the Reviewed.com API