Permalink
Browse files

Switch to minitest

Upgrade to modern Hoe

[git-p4: depot-paths = "//src/ar_mailer/dev/": change = 4897]
  • Loading branch information...
1 parent c8daefc commit 6753cb5485a6216b81e420b6aef45b4ee06160bc @drbrain drbrain committed Apr 28, 2009
Showing with 72 additions and 84 deletions.
  1. +2 −0 History.txt
  2. +14 −25 README.txt
  3. +5 −8 Rakefile
  4. +3 −2 test/test_armailer.rb
  5. +48 −49 test/test_arsendmail.rb
View
@@ -2,6 +2,8 @@
* Terminate SMTP connection on TimeoutError since Net::SMTP may be in a bogus
state. Issue by Eric O'Connell.
+* Switched to minitest
+* Upgraded to modern Hoe
= 1.3.1
View
@@ -1,39 +1,28 @@
= ar_mailer
-A two-phase delivery agent for ActionMailer
+* http://seattlerb.rubyforge.org/ar_mailer
+* http://rubyforge.org/projects/seattlerb
+* http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5921
-Rubyforge Project:
+== DESCRIPTION:
-http://rubyforge.org/projects/seattlerb
+ar_mailer is a two-phase delivery agent for ActionMailer. Even delivering
+email to the local machine may take too long when you have to send hundreds of
+messages. ar_mailer allows you to store messages into the database for later
+delivery by a separate process, ar_sendmail.
-Documentation:
+== SYNOPSIS:
-http://seattlerb.org/ar_mailer
+See ActionMailer::ARMailer for instructions on using ar_mailer.
-Bugs:
-
-http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5921
-
-== About
-
-Even delivering email to the local machine may take too long when you have to
-send hundreds of messages. ar_mailer allows you to store messages into the
-database for later delivery by a separate process, ar_sendmail.
-
-== Installing ar_mailer
-
-Just install the gem:
+See ar_sendmail -h for options to ar_sendmail.
- $ sudo gem install ar_mailer
+An rc.d script is included in share/ar_sendmail for *BSD operating systems.
-See ActionMailer::ARMailer for instructions on converting to ARMailer.
+== INSTALL:
-See ar_sendmail -h for options to ar_sendmail.
+* gem install ar_mailer
NOTE: You may need to delete an smtp_tls.rb file if you have one lying
around. ar_mailer supplies it own.
-=== ar_sendmail on FreeBSD or NetBSD
-
-An rc.d script is included in share/ar_sendmail.
-
View
@@ -3,13 +3,10 @@ require 'hoe'
$:.unshift 'lib'
require 'action_mailer/ar_sendmail'
-Hoe.new 'ar_mailer', ActionMailer::ARSendmail::VERSION do |s|
- s.rubyforge_name = 'seattlerb'
- s.summary = s.paragraphs_of('README.txt', 1).join(' ')
- s.description = s.paragraphs_of('README.txt', 9).join(' ')
- s.url = s.paragraphs_of('README.txt', 5).join(' ')
- s.author = 'Eric Hodel'
- s.email = 'drbrain@segment7.net'
- s.changes = s.paragraphs_of('History.txt', 0..1).join("\n\n")
+Hoe.new 'ar_mailer', ActionMailer::ARSendmail::VERSION do |ar_mailer|
+ ar_mailer.rubyforge_name = 'seattlerb'
+ ar_mailer.developer 'Eric Hodel', 'drbrain@segment7.net'
+ ar_mailer.testlib = :minitest
+ ar_mailer.extra_dev_deps << ['minitest', '~> 1.3']
end
View
@@ -1,6 +1,7 @@
-require 'test/unit'
require 'action_mailer'
require 'action_mailer/ar_mailer'
+require 'rubygems'
+require 'minitest/autorun'
##
# Pretend mailer
@@ -16,7 +17,7 @@ def @mail.destinations() %w[user1@example.com user2@example.com] end
end
-class TestARMailer < Test::Unit::TestCase
+class TestARMailer < MiniTest::Unit::TestCase
def setup
Mailer.email_class = Email
Oops, something went wrong.

0 comments on commit 6753cb5

Please sign in to comment.