sized_list 0.2.3 → 0.2.4

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.3
1
+ 0.2.4
@@ -72,7 +72,7 @@ module ActiveSupport
72
72
  end
73
73
 
74
74
  def delete(name, options=nil)
75
- raise 'not implemented'
75
+ @sized_list.delete name
76
76
  end
77
77
 
78
78
  def read_multi(*names)
data/lib/sized_list.rb CHANGED
@@ -54,6 +54,13 @@ class SizedList
54
54
  end
55
55
  alias []= set
56
56
 
57
+ def delete(key)
58
+ if self.exist?(key)
59
+ @used.reject! { |k| k == key }
60
+ @items.delete key
61
+ end
62
+ end
63
+
57
64
  def each
58
65
  @items.each do |k, v|
59
66
  yield v
data/sized_list.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sized_list}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Doug Youch