mail_spy 0.0.15 → 0.0.16

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.
@@ -88,8 +88,8 @@ module MailSpy
88
88
  while true
89
89
  emails = MailSpy::Email.
90
90
  limit(step).offset(offset).
91
- where(:schedule_at.lte => current_time, :sent => false, :failed => false).all
92
- break if emails.blank?
91
+ where(:schedule_at.lte => current_time, :sent => false, :failed => false).collect
92
+ break if emails.count <= 0 #returns enumerator which is never blank
93
93
  emails.each do |email|
94
94
  wq.enqueue_b do
95
95
  begin
@@ -1,3 +1,3 @@
1
1
  module MailSpy
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
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.15
5
+ version: 0.0.16
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timothy Cardenas