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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97c202bd2824d215580b7b8f1f49f874fa2b1f96e0279823a0fd24932f707a59
4
- data.tar.gz: ac52cc83daf424d26bd3596c4419a8bd495f62605714b0e1b605b6bbda7d3e64
3
+ metadata.gz: 78b44678a7b9826c689be4c8c7b5c04febc6350010ceb41c6d62478f2cbc716f
4
+ data.tar.gz: aa33fb220ec3b40420c29c91eb015355070df13252bf2fda7a1cb4457c751baa
5
5
  SHA512:
6
- metadata.gz: 4181db820862752a40fd6c69ab5868f156f4c3b419e1317316feead4bbb18a0817c323b6d6998c7c945959b546576d0e7d34d212f8813e5aa8bce6e916508723
7
- data.tar.gz: 72a3a5e00e4b7a3c762bca79b579b6341355b604df1bba99faf911ddce0727960efc20e85a3ab648cba8cf2b615f81f9badd8b5436760b5c2110b4ddaa32a9b9
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 "run_email_actions[#{schs.length}]"
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.20
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