hashcache 0.1.7 → 0.1.8

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 +3 -1
  2. metadata +1 -1
data/lib/hashcache.rb CHANGED
@@ -43,7 +43,9 @@ class HashCache
43
43
  private
44
44
 
45
45
  def read_file(item)
46
- File.open(@file_path + '/' + item) {|f| Marshal.load(f) }
46
+ obj = nil
47
+ File.open(@file_path + '/' + item) {|f| obj = Marshal.load(f) }
48
+ obj
47
49
  end
48
50
 
49
51
  def write_file(item, obj)
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors: []
7
7