jsl-feedzirra 0.0.12.2 → 0.0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedzirra/backend/filesystem.rb +2 -2
- metadata +1 -1
@@ -6,7 +6,7 @@ module Feedzirra
|
|
6
6
|
class Filesystem
|
7
7
|
|
8
8
|
DEFAULTS = {
|
9
|
-
:path => File.join(%w[ ~ / .feedzirra ])
|
9
|
+
:path => File.expand_path(File.join(%w[ ~ / .feedzirra ]))
|
10
10
|
}
|
11
11
|
|
12
12
|
def initialize(options = { })
|
@@ -15,7 +15,7 @@ module Feedzirra
|
|
15
15
|
|
16
16
|
def get(url)
|
17
17
|
f = filename_for(url)
|
18
|
-
Marshal.load(File.read(
|
18
|
+
Marshal.load(File.read(f)) if File.exist?(f)
|
19
19
|
end
|
20
20
|
|
21
21
|
def set(url, result)
|