ar_mailer 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ $VERBOSE = nil
8
8
 
9
9
  spec = Gem::Specification.new do |s|
10
10
  s.name = 'ar_mailer'
11
- s.version = '1.0.0'
11
+ s.version = '1.0.1'
12
12
  s.summary = 'A two-phase deliver agent for ActionMailer'
13
13
  s.description = 'Queues emails from ActionMailer in the database and uses a separate process to send them. Reduces sending overhead when sending hundreds of emails.'
14
14
  s.author = 'Eric Hodel'
@@ -250,7 +250,7 @@ end
250
250
  elsif options.include? :Model then
251
251
  create_model options[:TableName]
252
252
  exit
253
- elsif options.include? :Mailq then
253
+ elsif options.include? :MailQ then
254
254
  mailq
255
255
  exit
256
256
  end
@@ -294,7 +294,7 @@ end
294
294
  server_settings[:authentication] do |smtp|
295
295
  emails.each do |email|
296
296
  begin
297
- res = smtp.send_message email.mail, email.to, email.from
297
+ res = smtp.send_message email.mail, email.from, email.to
298
298
  email.destroy
299
299
  log "sent email from %s to %s: %p" % [email.from, email.to, res]
300
300
  rescue Net::SMTPServerBusy, Net::SMTPFatalError,
@@ -298,7 +298,7 @@ Last send attempt: Thu Aug 10 11:40:05 -0700 2006
298
298
  @sm.deliver [email]
299
299
 
300
300
  assert_equal 1, Net::SMTP.deliveries.length
301
- assert_equal ['body', 'to', 'from'], Net::SMTP.deliveries.first
301
+ assert_equal ['body', 'from', 'to'], Net::SMTP.deliveries.first
302
302
  assert_equal 0, Email.records.length
303
303
  end
304
304
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.99
3
3
  specification_version: 1
4
4
  name: ar_mailer
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2006-08-10 00:00:00 -07:00
6
+ version: 1.0.1
7
+ date: 2006-08-15 00:00:00 -07:00
8
8
  summary: A two-phase deliver agent for ActionMailer
9
9
  require_paths:
10
10
  - lib