resque-reports 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Resque
|
|
3
3
|
module Reports
|
4
4
|
class CacheFile
|
5
5
|
|
6
|
-
DEFAULT_EXPIRE_TIME =
|
6
|
+
DEFAULT_EXPIRE_TIME = 86400
|
7
7
|
DEFAULT_CODING = 'utf-8'
|
8
8
|
|
9
9
|
# TODO: Description!
|
@@ -19,7 +19,7 @@ module Resque
|
|
19
19
|
def exists?
|
20
20
|
File.exists?(@filename)
|
21
21
|
end
|
22
|
-
alias_method :
|
22
|
+
alias_method :ready?, :exists?
|
23
23
|
|
24
24
|
def filename
|
25
25
|
raise "File doesn't exists, check for its existance before" unless exists?
|