wco_email 0.1.1.20 → 0.1.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wco_email/email_filters_controller.rb +1 -1
- data/app/views/wco_email/email_filters/index.haml +2 -1
- data/lib/tasks/wco_email_tasks.rake +3 -3
- metadata +2 -3
- data/lib/systemd/system/wco_email_sidekiq.service +0 -22
- /data/lib/tasks/{scrape_reddit_tasks.rake-bk → trash/scrape_reddit_tasks.rake-bk} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78b44678a7b9826c689be4c8c7b5c04febc6350010ceb41c6d62478f2cbc716f
|
4
|
+
data.tar.gz: aa33fb220ec3b40420c29c91eb015355070df13252bf2fda7a1cb4457c751baa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b1adeeae0a18172fa4b7164ee5ada2ebce61508fae22719b2785d3a88e7fb8f0c7831d78917fa146e44e9bc8da4470357957a8305fd957a96d533dfe8c0cd8
|
7
|
+
data.tar.gz: 577600153fe4f804e0c26b0a462e775c1adbe8f102d1da6609a3a21ac85a8e0bbaff65adff4de8c24a69f5d3a827388c6f1730995e69ca564eab0443cc6330d4
|
@@ -34,7 +34,7 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
|
|
34
34
|
def index
|
35
35
|
authorize! :index, WcoEmail::EmailFilter.new
|
36
36
|
@email_filter = WcoEmail::EmailFilter.new
|
37
|
-
@email_filters = WcoEmail::EmailFilter.all.page( params[WcoEmail::EmailFilter::PAGE_PARAM_NAME] ).per( current_profile.per_page )
|
37
|
+
@email_filters = WcoEmail::EmailFilter.all # .page( params[WcoEmail::EmailFilter::PAGE_PARAM_NAME] ).per( current_profile.per_page )
|
38
38
|
end
|
39
39
|
|
40
40
|
def new
|
@@ -12,7 +12,7 @@
|
|
12
12
|
= render 'form', email_filter: @email_filter
|
13
13
|
%hr
|
14
14
|
|
15
|
-
= paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
15
|
+
-# = paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
16
16
|
%table.bordered.data-table
|
17
17
|
%thead
|
18
18
|
%tr
|
@@ -47,5 +47,6 @@
|
|
47
47
|
%td= ef.email_template&.slug
|
48
48
|
%td= ef.email_action_template&.slug
|
49
49
|
%td= ef.tag&.slug
|
50
|
+
-# = paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
50
51
|
|
51
52
|
|
@@ -140,19 +140,19 @@ namespace :wco_email do
|
|
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
|
-
print "
|
147
|
+
print "[#{schs.length}]" if schs.length != 0
|
147
148
|
schs.each do |sch|
|
148
149
|
sch.send_and_roll
|
149
150
|
print '^'
|
150
151
|
sleep 1
|
151
152
|
end
|
152
153
|
|
153
|
-
sleep 15
|
154
154
|
print '.'
|
155
|
-
|
155
|
+
sleep 15
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
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.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
@@ -451,15 +451,14 @@ files:
|
|
451
451
|
- config/initializers/assets.rb
|
452
452
|
- config/routes.rb
|
453
453
|
- config/trash/credentials.yml.enc
|
454
|
-
- lib/systemd/system/wco_email_sidekiq.service
|
455
454
|
- lib/tasks/bjjcollective/sitemap.rb
|
456
455
|
- lib/tasks/db_tasks.rake
|
457
456
|
- lib/tasks/direct_mail_tasks.rake
|
458
457
|
- lib/tasks/infinite_shelter/sitemap.rb
|
459
458
|
- lib/tasks/piousbox/sitemap.rb
|
460
459
|
- lib/tasks/publish2_wordpress_tasks.rake
|
461
|
-
- lib/tasks/scrape_reddit_tasks.rake-bk
|
462
460
|
- lib/tasks/trash/email_tasks.rake-trash
|
461
|
+
- lib/tasks/trash/scrape_reddit_tasks.rake-bk
|
463
462
|
- lib/tasks/trash/sitemap_tasks.rake-trash
|
464
463
|
- lib/tasks/wasya_co/sitemap.rb
|
465
464
|
- lib/tasks/wco_email_tasks.rake
|
@@ -1,22 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=wco_email_rb_sidekiq
|
3
|
-
|
4
|
-
[Service]
|
5
|
-
Type=simple
|
6
|
-
User=root
|
7
|
-
WorkingDirectory=/opt/projects/micros_email/current
|
8
|
-
ExecStart=/root/.rbenv/shims/bundle exec sidekiq -q wco_email_rb -q wco_email_rb_mailers
|
9
|
-
ExecStop=/bin/echo nothing
|
10
|
-
Restart=on-failure
|
11
|
-
Environment=RAILS_ENV=production
|
12
|
-
Environment=RAILS_LOG_TO_STDOUT=true
|
13
|
-
|
14
|
-
StandardOutput=syslog
|
15
|
-
StandardError=syslog
|
16
|
-
SyslogIdentifier=wco_email_rb_sidekiq
|
17
|
-
|
18
|
-
# StandardOutput=append:/var/log/sidekiq/production.log
|
19
|
-
# StandardError=append:/var/log/sidekiq/production.log
|
20
|
-
|
21
|
-
[Install]
|
22
|
-
WantedBy=multi-user.target
|
File without changes
|