mail_spy 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mail_spy/manager.rb +4 -1
- data/lib/mail_spy/version.rb +1 -1
- metadata +2 -2
data/lib/mail_spy/manager.rb
CHANGED
@@ -68,7 +68,9 @@ module MailSpy
|
|
68
68
|
header = MailSpy::Sendgrid::SmtpApiHeader.new
|
69
69
|
header.setUniqueArgs({:eid => email.id.to_s})
|
70
70
|
email.headers = {'X-SMTPAPI' => header.asJSON}.merge(email.headers)
|
71
|
+
email.save!
|
71
72
|
end
|
73
|
+
|
72
74
|
email
|
73
75
|
end
|
74
76
|
|
@@ -102,7 +104,8 @@ module MailSpy
|
|
102
104
|
while true
|
103
105
|
emails = MailSpy::Email.
|
104
106
|
limit(step).offset(offset).asc(:_id).
|
105
|
-
where(:schedule_at.lte => current_time, :sent => false, :failed => false).
|
107
|
+
where(:schedule_at.lte => current_time, :sent => false, :failed => false).
|
108
|
+
collect
|
106
109
|
break if emails.count <= 0 #returns enumerator which is never blank
|
107
110
|
emails.each do |email|
|
108
111
|
wq.enqueue_b do
|
data/lib/mail_spy/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mail_spy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.18
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Timothy Cardenas
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-08 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|