We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597585c commit 4b3b2d0Copy full SHA for 4b3b2d0
1 file changed
Vladimir_Kovalev/2/checker.rb
@@ -125,7 +125,7 @@ class << self
125
def fetch(url)
126
f = self::filename(url)
127
puts "#{Time.now.to_i - File.atime(f).to_i} < #{60 * 60}" if Options.verbose
128
- if self::exist?(f) && (Time.now.to_i - File.atime(f).to_i) < 60 * 60
+ if self.exist?(f) && (Time.now.to_i - File.atime(f).to_i) < 60 * 60
129
YAML.load(IO.read(f))
130
else
131
false
@@ -141,8 +141,8 @@ def filename(url)
141
end
142
143
def push(url, data)
144
- FileUtils.rm self::filename(url) if self::exist?(self::filename(url))
145
- IO.write(self::filename(url), data.to_yaml)
+ FileUtils.rm self.filename(url) if self.exist?(self.filename(url))
+ IO.write(self.filename(url), data.to_yaml)
146
147
148
def exist?(file)
0 commit comments