hashcache 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hashcache.rb +1 -1
  2. metadata +1 -1
data/lib/hashcache.rb CHANGED
@@ -23,7 +23,7 @@ class HashCache
23
23
  val = yield
24
24
  @h[item] = val
25
25
  @h.shift if @h.length > @size
26
- write_file(item, val)
26
+ write_file(item, val) if @file_cache == true
27
27
  val
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors: []
7
7