wco_email 0.1.1.25 → 0.1.1.27

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: 35252cf2e1f40bddca28aee1d91db68f7323f2f0285b316d0eb0a1c39f96eafd
4
+ data.tar.gz: 74864a8f2de923fa0bd533011e3e56cdf91fae8e6778dbce04f99e3e76996093
5
5
  SHA512:
6
- metadata.gz: eb4f68b6944c8ca0ea04ad58289642ce71430a2a4cd30df0189fa5d8eb6b8d5921af6e8561ab1b40a7905e2baab280cd4d1592b9915317395b48f39d85c7da26
7
- data.tar.gz: 49bd4e32ec20d07cbe9cbe242c3849eac1d3df316a194a197cb49c9cdb2595b8774a3682956f2412209fe43d0bb62d89c303d06fb4010d39c2c0436ed987e1a0
6
+ metadata.gz: 618f52745f4b92250b95bba5065ba945966db6a718a8fb09022b12b9c3def9213854c162805d35ed5efeb4b6eabf08dc88edecefb9b1a68b5124fa512ec7036d
7
+ data.tar.gz: 776427c271c8631acddaa491dee932a738b3344633a417cea00d2567774f534b472519c48a4b570b4d9660af122eaca64fa60ed805c452a0ecd9b3cd8539d2e9
@@ -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:send_contexts..."
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,14 +1,14 @@
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.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-14 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3