jashmenn-httparty-icebox 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/httparty-icebox.rb +1 -1
- data/lib/httparty-icebox/version.rb +1 -1
- metadata +4 -4
data/lib/httparty-icebox.rb
CHANGED
@@ -212,7 +212,7 @@ module HTTParty #:nodoc:
|
|
212
212
|
true
|
213
213
|
end
|
214
214
|
def get(key)
|
215
|
-
data = Marshal.load(File.read( @path.join(key)))
|
215
|
+
data = Marshal.load(File.read( @path.join(key))) rescue nil
|
216
216
|
Cache.logger.info("Cache: #{data.nil? ? "miss" : "hit"} (#{key})")
|
217
217
|
data
|
218
218
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jashmenn-httparty-icebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-11 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156155760 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156155760
|
26
26
|
description: Cache responses in HTTParty models
|
27
27
|
email:
|
28
28
|
- kristoffer@sachse.nu
|