wco_email 0.1.1.24 → 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: cb76de69e88aa1a90692007adc400ffdc54c353f915fbe7dc8c40a9d61b07616
4
- data.tar.gz: cfca63058c5d2ca2da25a9dd9cc7986d386169403f0f28793db8016ba01dff6c
3
+ metadata.gz: 10d682e880850ef7136b49cea54bb6ec459103320b16a6d3754c4b11f038e6c1
4
+ data.tar.gz: c1555643d033e6eae3e67a69ef8c2256680edbc3673cbc117d746c2e89fcfa8f
5
5
  SHA512:
6
- metadata.gz: 31547b9fcd45e6e0cf170253d36f7066a52c934a481258820169eef7db18ab9bb943c0329333b88c58caf4d87d14c0fb36ce8add743b42880f59630f5e2c2408
7
- data.tar.gz: ade9bb105342a7c9086b221c356504aa867d35a3010dbd822ef9d13e797b2b6dd855067608ea7af736c901e17d8de8cf3f7575a616c3ec47c6da95124aa8f72e
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.24
4
+ version: 0.1.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev