wco_email 0.1.1.25 → 0.1.1.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 161fd895db8e2ebbc794fef09f04b1fea75d5f77fe07024ff84bf600673a2d50
4
- data.tar.gz: 133c6d59f0539403191596036a1fde5207126f0ae8fd1c5928de226207ad16e5
3
+ metadata.gz: 10d682e880850ef7136b49cea54bb6ec459103320b16a6d3754c4b11f038e6c1
4
+ data.tar.gz: c1555643d033e6eae3e67a69ef8c2256680edbc3673cbc117d746c2e89fcfa8f
5
5
  SHA512:
6
- metadata.gz: eb4f68b6944c8ca0ea04ad58289642ce71430a2a4cd30df0189fa5d8eb6b8d5921af6e8561ab1b40a7905e2baab280cd4d1592b9915317395b48f39d85c7da26
7
- data.tar.gz: 49bd4e32ec20d07cbe9cbe242c3849eac1d3df316a194a197cb49c9cdb2595b8774a3682956f2412209fe43d0bb62d89c303d06fb4010d39c2c0436ed987e1a0
6
+ metadata.gz: ee4e9c8e6859c7279566b4aa1b475697e7ebf0414f70f3dd9f39d5df94b973ab17ede0560f1fc1c829a8050ee53ab926524671d2a342bb4af0e9c28700d46981
7
+ data.tar.gz: ec2793fdf59131a44e0bacfa0422ba1ae897d495abb57186e7af086340d72bd894081e725cc9a9c50489626daddda9d96022fedf09e797847a791217ac4ffeb3
@@ -146,7 +146,9 @@ namespace :wco_email do
146
146
  schs = WcoEmail::EmailAction.active.where({ :perform_at.lte => Time.now })
147
147
  print "[#{schs.length}]" if schs.length != 0
148
148
  schs.each do |sch|
149
+
149
150
  sch.send_and_roll
151
+
150
152
  print '^'
151
153
  sleep 1
152
154
  end
@@ -158,10 +160,11 @@ namespace :wco_email do
158
160
 
159
161
  desc 'send contexts'
160
162
  task send_contexts: :environment do
163
+ puts! "Starting wco_email:run_email_actions..."
161
164
  while true do
162
165
 
163
166
  ctxs = WcoEmail::Context.scheduled.notsent
164
- print "sending[#{ctxs.length}]"
167
+ print "[#{ctxs.length}]" if ctxs.length != 0
165
168
  ctxs.map do |ctx|
166
169
 
167
170
  unsub = WcoEmail::Unsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.email_template_id }).first
@@ -186,8 +189,8 @@ namespace :wco_email do
186
189
  sleep 1
187
190
  end
188
191
 
189
- sleep 15
190
192
  print '.'
193
+ sleep 15
191
194
 
192
195
  end
193
196
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.25
4
+ version: 0.1.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev