hashcache 0.2.3 → 0.2.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 +5 -1
  2. metadata +2 -2
data/lib/hashcache.rb CHANGED
@@ -34,7 +34,7 @@ class HashCache
34
34
  end
35
35
 
36
36
  def refresh(item)
37
- val = @h[item]
37
+ val = @h[item]
38
38
  @h.delete item
39
39
  @h[item] = val
40
40
  val
@@ -44,6 +44,10 @@ class HashCache
44
44
  @h = {}
45
45
  end
46
46
 
47
+ def delete(item)
48
+ @h.delete item
49
+ end
50
+
47
51
  private
48
52
 
49
53
  def read_file(item)
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-28 00:00:00 +01:00
12
+ date: 2010-09-03 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15