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 +4 -4
- data/lib/tasks/wco_email_tasks.rake +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35252cf2e1f40bddca28aee1d91db68f7323f2f0285b316d0eb0a1c39f96eafd
|
4
|
+
data.tar.gz: 74864a8f2de923fa0bd533011e3e56cdf91fae8e6778dbce04f99e3e76996093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
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.
|
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-
|
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
|