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 +4 -4
- data/lib/faraday/cache.rb +5 -1
- data/lib/reviewed/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd30ef279c05f3f026964de3ac26daa0acdcada
|
4
|
+
data.tar.gz: bb53799075c3ab77d965b01bdfbd9d6c01153cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/reviewed/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|