rumbster 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - jruby-18mode # JRuby in 1.8 mode
5
+ - jruby-19mode # JRuby in 1.9 mode
6
+ - 1.8.7
data/Rakefile CHANGED
@@ -29,14 +29,14 @@ Jeweler::RubygemsDotOrgTasks.new
29
29
  require 'rake/testtask'
30
30
  Rake::TestTask.new(:test) do |test|
31
31
  test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
32
+ test.test_files = FileList['test/**/test_*.rb']
33
33
  test.verbose = true
34
34
  end
35
35
 
36
36
  require 'rcov/rcovtask'
37
37
  Rcov::RcovTask.new do |test|
38
38
  test.libs << 'test'
39
- test.pattern = 'test/**/test_*.rb'
39
+ test.test_files = FileList['test/**/test_*.rb']
40
40
  test.verbose = true
41
41
  test.rcov_opts << '--exclude "gems/*"'
42
42
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0
@@ -14,8 +14,8 @@ class FileMessageObserver
14
14
 
15
15
  def update(message_string)
16
16
  mail = Mail.read_from_string(message_string)
17
-
18
- file_name = File.join(@message_directory, "#{@system_time.current_time_in_seconds}_#{mail.to}.txt")
17
+
18
+ file_name = File.join(@message_directory, "#{@system_time.current_time_in_seconds}_#{mail.to.first}.txt")
19
19
  File.open(file_name, 'w') {|file| file << message_string }
20
20
  end
21
21
  end
@@ -4,20 +4,21 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{rumbster}
8
- s.version = "1.0.2"
7
+ s.name = "rumbster"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam Esterline"]
12
- s.date = %q{2012-03-01}
13
- s.description = %q{Rumbster is a simple SMTP server that receives email sent from a SMTP client. Received emails are published to observers that have registered with Rumbster. There are currently two observers; FileMailObserver and MailMessageObserver.}
14
- s.email = %q{adam@esterlines.com}
12
+ s.date = "2012-12-22"
13
+ s.description = "Rumbster is a simple SMTP server that receives email sent from a SMTP client. Received emails are published to observers that have registered with Rumbster. There are currently two observers; FileMailObserver and MailMessageObserver."
14
+ s.email = "adam@esterlines.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".autotest",
21
+ ".travis.yml",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE.txt",
@@ -34,11 +35,11 @@ Gem::Specification.new do |s|
34
35
  "test/test_smtp_protocol.rb",
35
36
  "test/test_smtp_states.rb"
36
37
  ]
37
- s.homepage = %q{http://github.com/aesterline/rumbster}
38
+ s.homepage = "http://github.com/aesterline/rumbster"
38
39
  s.licenses = ["Apache 2.0"]
39
40
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.6.2}
41
- s.summary = %q{Rumbster is a testing SMTP server.}
41
+ s.rubygems_version = "1.8.24"
42
+ s.summary = "Rumbster is a testing SMTP server."
42
43
 
43
44
  if s.respond_to? :specification_version then
44
45
  s.specification_version = 3
@@ -18,6 +18,7 @@ class TestRumbster < Test::Unit::TestCase
18
18
 
19
19
  def teardown
20
20
  @server.stop
21
+ @server.join
21
22
  end
22
23
 
23
24
  def test_single_receiver_message_sent_by_client_is_received_by_listener
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 1.0.2
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Esterline
@@ -15,12 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-01 00:00:00 -07:00
19
- default_executable:
18
+ date: 2012-12-22 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
26
24
  - - ">="
@@ -29,12 +27,12 @@ dependencies:
29
27
  segments:
30
28
  - 0
31
29
  version: "0"
30
+ prerelease: false
32
31
  type: :runtime
33
32
  name: mail
34
- version_requirements: *id001
33
+ requirement: *id001
35
34
  - !ruby/object:Gem::Dependency
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
36
  none: false
39
37
  requirements:
40
38
  - - ~>
@@ -45,12 +43,12 @@ dependencies:
45
43
  - 0
46
44
  - 0
47
45
  version: 1.0.0
46
+ prerelease: false
48
47
  type: :development
49
48
  name: bundler
50
- version_requirements: *id002
49
+ requirement: *id002
51
50
  - !ruby/object:Gem::Dependency
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
52
  none: false
55
53
  requirements:
56
54
  - - ~>
@@ -61,12 +59,12 @@ dependencies:
61
59
  - 6
62
60
  - 2
63
61
  version: 1.6.2
62
+ prerelease: false
64
63
  type: :development
65
64
  name: jeweler
66
- version_requirements: *id003
65
+ requirement: *id003
67
66
  - !ruby/object:Gem::Dependency
68
- prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
68
  none: false
71
69
  requirements:
72
70
  - - ">="
@@ -75,12 +73,12 @@ dependencies:
75
73
  segments:
76
74
  - 0
77
75
  version: "0"
76
+ prerelease: false
78
77
  type: :development
79
78
  name: rcov
80
- version_requirements: *id004
79
+ requirement: *id004
81
80
  - !ruby/object:Gem::Dependency
82
- prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
81
+ version_requirements: &id005 !ruby/object:Gem::Requirement
84
82
  none: false
85
83
  requirements:
86
84
  - - ">="
@@ -89,9 +87,10 @@ dependencies:
89
87
  segments:
90
88
  - 0
91
89
  version: "0"
90
+ prerelease: false
92
91
  type: :development
93
92
  name: rdoc
94
- version_requirements: *id005
93
+ requirement: *id005
95
94
  description: Rumbster is a simple SMTP server that receives email sent from a SMTP client. Received emails are published to observers that have registered with Rumbster. There are currently two observers; FileMailObserver and MailMessageObserver.
96
95
  email: adam@esterlines.com
97
96
  executables: []
@@ -103,6 +102,7 @@ extra_rdoc_files:
103
102
  - README.rdoc
104
103
  files:
105
104
  - .autotest
105
+ - .travis.yml
106
106
  - Gemfile
107
107
  - Gemfile.lock
108
108
  - LICENSE.txt
@@ -118,7 +118,6 @@ files:
118
118
  - test/test_rumbster.rb
119
119
  - test/test_smtp_protocol.rb
120
120
  - test/test_smtp_states.rb
121
- has_rdoc: true
122
121
  homepage: http://github.com/aesterline/rumbster
123
122
  licenses:
124
123
  - Apache 2.0
@@ -148,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
147
  requirements: []
149
148
 
150
149
  rubyforge_project:
151
- rubygems_version: 1.6.2
150
+ rubygems_version: 1.8.24
152
151
  signing_key:
153
152
  specification_version: 3
154
153
  summary: Rumbster is a testing SMTP server.