hashcache 0.1.3 → 0.1.4

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.
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