paulnicholson-ar_mailer 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,7 @@ class ActionMailer::ARSendmail
|
|
42
42
|
##
|
43
43
|
# The version of ActionMailer::ARSendmail you are running.
|
44
44
|
|
45
|
-
VERSION = '2.1.
|
45
|
+
VERSION = '2.1.6'
|
46
46
|
|
47
47
|
##
|
48
48
|
# Maximum number of times authentication will be consecutively retried
|
@@ -98,7 +98,7 @@ class ActionMailer::ARSendmail
|
|
98
98
|
# to learn how to enable ActiveRecord::Timestamp.
|
99
99
|
|
100
100
|
def self.mailq
|
101
|
-
emails = ActionMailer::Base.email_class.find(:all, :order
|
101
|
+
emails = ActionMailer::Base.email_class.find(:all, :order=> 'priority, id')
|
102
102
|
|
103
103
|
if emails.empty? then
|
104
104
|
puts "Mail queue is empty"
|
@@ -425,7 +425,7 @@ class ActionMailer::ARSendmail
|
|
425
425
|
# last 300 seconds.
|
426
426
|
|
427
427
|
def find_emails
|
428
|
-
options = { :conditions => ['last_send_attempt < ?', Time.now.to_i - 300], :order
|
428
|
+
options = { :conditions => ['last_send_attempt < ?', Time.now.to_i - 300], :order=> 'priority, id'}
|
429
429
|
options[:limit] = batch_size unless batch_size.nil?
|
430
430
|
mail = ActionMailer::Base.email_class.find :all, options
|
431
431
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paulnicholson-ar_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- test/test_helper.rb
|
46
46
|
has_rdoc: false
|
47
47
|
homepage: http://github.com/adzap/ar_mailer
|
48
|
+
licenses:
|
48
49
|
post_install_message:
|
49
50
|
rdoc_options:
|
50
51
|
- --main
|
@@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
67
|
requirements: []
|
67
68
|
|
68
69
|
rubyforge_project: seattlerb
|
69
|
-
rubygems_version: 1.
|
70
|
+
rubygems_version: 1.3.5
|
70
71
|
signing_key:
|
71
72
|
specification_version: 3
|
72
73
|
summary: A two-phase delivery agent for ActionMailer
|