wco_email 0.1.1.21 → 0.1.1.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5be35429095b256873225d290fb6dcd167ffd2c2f67a1cfe711ff9781bd5e84
|
4
|
+
data.tar.gz: f2d0fd6149f75671882c03dd6f0fbb41a560241dff281f92d6070cab0ba8b850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b4278e9ca0e5a4d8b25694c6d023e89084546added8c5d69e1ab90644865f960059872a16cea42d2780d14af27d1864275ee1b412970cf47708d57c9dc61c4
|
7
|
+
data.tar.gz: 807d3a5fb555564a30e72e31105087fc692880459714a8f2d84079bacc7a9853447e95d027f4bfd27c5125ba1eb7076e2a990adcbe5009cb0f1bf186209724fd
|
@@ -39,7 +39,7 @@ namespace :wco_email do
|
|
39
39
|
WcoEmail::MessageIntakeJob.perform_sync( stub.id.to_s )
|
40
40
|
|
41
41
|
sleep 1 # second
|
42
|
-
|
42
|
+
puts '.'
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -66,7 +66,7 @@ namespace :wco_email do
|
|
66
66
|
object_key = line.split.last
|
67
67
|
stub = WcoEmail::MessageStub.create( object_key: object_key, bucket: bucket )
|
68
68
|
if stub.persisted?
|
69
|
-
|
69
|
+
puts "#{idx+1}."
|
70
70
|
else
|
71
71
|
puts! stub.errors.full_messages.join(", ")
|
72
72
|
end
|
@@ -120,7 +120,7 @@ namespace :wco_email do
|
|
120
120
|
outs = outs.to_a
|
121
121
|
outs.each do |out|
|
122
122
|
WcoEmail::Message.where( message_id: out['message_id'] )[1].destroy!
|
123
|
-
|
123
|
+
puts '.'
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -134,25 +134,25 @@ namespace :wco_email do
|
|
134
134
|
outs = outs.to_a
|
135
135
|
outs.each do |out|
|
136
136
|
WcoEmail::MessageStub.where( object_key: out['object_key'] )[1].destroy!
|
137
|
-
|
137
|
+
puts '.'
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
141
|
desc 'email actions, send and roll'
|
142
142
|
task run_email_actions: :environment do
|
143
|
+
puts! "Starting wco_email:run_email_actions..."
|
143
144
|
while true do
|
144
145
|
|
145
146
|
schs = WcoEmail::EmailAction.active.where({ :perform_at.lte => Time.now })
|
146
|
-
|
147
|
+
puts "[#{schs.length}]" if schs.length != 0
|
147
148
|
schs.each do |sch|
|
148
149
|
sch.send_and_roll
|
149
|
-
|
150
|
+
puts '^'
|
150
151
|
sleep 1
|
151
152
|
end
|
152
153
|
|
154
|
+
puts '.'
|
153
155
|
sleep 15
|
154
|
-
print '.'
|
155
|
-
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
@@ -161,7 +161,7 @@ namespace :wco_email do
|
|
161
161
|
while true do
|
162
162
|
|
163
163
|
ctxs = WcoEmail::Context.scheduled.notsent
|
164
|
-
|
164
|
+
puts "sending[#{ctxs.length}]"
|
165
165
|
ctxs.map do |ctx|
|
166
166
|
|
167
167
|
unsub = WcoEmail::Unsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.email_template_id }).first
|
@@ -182,12 +182,12 @@ namespace :wco_email do
|
|
182
182
|
Rails.env.production? ? out.deliver_later : out.deliver_now
|
183
183
|
end
|
184
184
|
|
185
|
-
|
185
|
+
puts '^'
|
186
186
|
sleep 1
|
187
187
|
end
|
188
188
|
|
189
189
|
sleep 15
|
190
|
-
|
190
|
+
puts '.'
|
191
191
|
|
192
192
|
end
|
193
193
|
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.
|
4
|
+
version: 0.1.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
@@ -457,8 +457,8 @@ files:
|
|
457
457
|
- lib/tasks/infinite_shelter/sitemap.rb
|
458
458
|
- lib/tasks/piousbox/sitemap.rb
|
459
459
|
- lib/tasks/publish2_wordpress_tasks.rake
|
460
|
-
- lib/tasks/scrape_reddit_tasks.rake-bk
|
461
460
|
- lib/tasks/trash/email_tasks.rake-trash
|
461
|
+
- lib/tasks/trash/scrape_reddit_tasks.rake-bk
|
462
462
|
- lib/tasks/trash/sitemap_tasks.rake-trash
|
463
463
|
- lib/tasks/wasya_co/sitemap.rb
|
464
464
|
- lib/tasks/wco_email_tasks.rake
|
File without changes
|