Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
pat - change instance var to local var in rumbster.rb; add rumbster.g…
Browse files Browse the repository at this point in the history
…emspec
  • Loading branch information
Pat Courtney committed Oct 23, 2007
1 parent 6b528d1 commit 6b12776
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rumbster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ def initialize(port=25, *args)
end

def serve(io)
@protocol = SmtpProtocol.create
protocol = SmtpProtocol.create
@observers.each do |observer|
@protocol.add_observer(observer)
protocol.add_observer(observer)
end
@protocol.serve(io)
protocol.serve(io)
end

def add_observer(observer)
@observers.push(observer)
end

end
end
16 changes: 16 additions & 0 deletions rumbster.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Gem::Specification.new do |s|
s.name = %q{rumbster}
s.version = "1.0.0"
s.date = %q{2007-10-22}
s.summary = %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.}
s.email = %q{adam@esterlines.com}
s.homepage = %q{http://rumbster.rubyforge.org/}
s.rubyforge_project = %q{rumbster}
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.}
s.has_rdoc = true
s.authors = ["Adam Esterline"]
s.files = ["lib/message_observers.rb", "lib/rumbster.rb", "lib/smtp_protocol.rb", "lib/smtp_states.rb", "test/message_observers_test.rb", "test/rumbster_test.rb", "test/smtp_protocol_test.rb", "test/smtp_states_test.rb", "vendor/tmail/address.rb", "vendor/tmail/base64.rb", "vendor/tmail/compat.rb", "vendor/tmail/config.rb", "vendor/tmail/encode.rb", "vendor/tmail/header.rb", "vendor/tmail/info.rb", "vendor/tmail/loader.rb", "vendor/tmail/mail.rb", "vendor/tmail/mailbox.rb", "vendor/tmail/Makefile", "vendor/tmail/mbox.rb", "vendor/tmail/net.rb", "vendor/tmail/obsolete.rb", "vendor/tmail/parser.rb", "vendor/tmail/parser.y", "vendor/tmail/port.rb", "vendor/tmail/scanner.rb", "vendor/tmail/scanner_r.rb", "vendor/tmail/stringio.rb", "vendor/tmail/textutils.rb", "vendor/tmail/tmail.rb", "vendor/tmail/utils.rb", "vendor/tmail/.cvsignore", "vendor/tmail.rb", "COPYING", "Rakefile", "README"]
s.test_files = ["test/message_observers_test.rb", "test/rumbster_test.rb", "test/smtp_protocol_test.rb", "test/smtp_states_test.rb"]
s.rdoc_options = ["--title", "rumbster Documentation", "--main", "README", "-q"]
s.extra_rdoc_files = ["README"]
end

0 comments on commit 6b12776

Please sign in to comment.