resque-reports 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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?
|