dvdplm-ar_mailer 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -182,7 +182,7 @@ end
182
182
  create_timestamp.strftime '%a %b %d %H:%M:%S'
183
183
  end
184
184
 
185
- puts "%10d %8d %s %s %10d %s -> %s" % [email.id, size, created, Time.at(email.last_send_attempt) || ' '*19, email.attempts, email.from, email.to]
185
+ puts "%10d %8d %s %s %7d %s -> %s" % [email.id, size, created, Time.at(email.last_send_attempt) || ' '*19, email.attempts, email.from, email.to]
186
186
  end
187
187
 
188
188
  puts "-- #{total_size/1024} Kbytes in #{emails.length} Requests."
@@ -467,7 +467,7 @@ end
467
467
  res = session.send_message email.mail, email.from, email.to
468
468
  email.failed = false
469
469
  email.sent_at = Time.now
470
- email.success_status = res.string
470
+ email.success_status = res.string rescue res.inspect # NOTE: some rubies return an Net::HTTP::Response here, others just a stupid String (dvd, 11-05-2009)
471
471
 
472
472
  log "#{self.class}#deliver sent email %011d from %s to %s: %p" %
473
473
  [email.id, email.from, email.to, res]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dvdplm-ar_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel