email_list 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,10 @@ class EmailList
40
40
  @emails.each(&block)
41
41
  end
42
42
 
43
+ def size
44
+ @emails.size
45
+ end
46
+
43
47
  def to_s
44
48
  @string.to_s
45
49
  end
@@ -1,3 +1,3 @@
1
1
  class EmailList
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -101,4 +101,10 @@ describe EmailList do
101
101
 
102
102
  email_list.emails.should == []
103
103
  end
104
+
105
+ it 'knows the size of the list' do
106
+ email_list = EmailList.new('foo@example.org, bar@example.org')
107
+
108
+ email_list.size.should == 2
109
+ end
104
110
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_list
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Guterl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-01 00:00:00 Z
18
+ date: 2012-05-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements: []
79
79
 
80
80
  rubyforge_project: email_list
81
- rubygems_version: 1.8.15
81
+ rubygems_version: 1.8.17
82
82
  signing_key:
83
83
  specification_version: 3
84
84
  summary: A gem for managing a list of email addresses stored in a string.