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.
@@ -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).collect
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
@@ -1,3 +1,3 @@
1
1
  module MailSpy
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
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.17
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-07 00:00:00 Z
13
+ date: 2012-02-08 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails