itrigga-file_cache 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -57,7 +57,7 @@ module Itrigga
57
57
 
58
58
  def expired?( opts={} )
59
59
  opts[:timeout_seconds] ||= self.timeout_seconds
60
- Time.now - File.mtime(file_path(opts)) > opts[:timeout_seconds]
60
+ Time.now - File.mtime(file_path(opts)) > opts[:timeout_seconds].to_i
61
61
  end
62
62
 
63
63
  def file_path( opts )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-file_cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Davidson