wco_email 0.1.1.5 → 0.1.1.7

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: 68de2aa2f69836c97bd54dd9fd7b7f5f8968933a8baa343351fb37d141a4ef64
4
- data.tar.gz: 21d17f9d825d3cf51d3da1081149a2e17eded52b992150dca08fc91a330c2dcb
3
+ metadata.gz: aefcf5045641d214959f3cb2895410b7037f6df8ea914c604a8ff79216864251
4
+ data.tar.gz: 03ae9281b8bae48810e84fb994ee28ec451b4700fba179e50b93bc4b12aeca03
5
5
  SHA512:
6
- metadata.gz: 128535731037f157e3f2d717b3f4b3b1d3778d946ac0e067afbc4d924ab188723ed2ce2cf377e5f459940ab3e99658384d014bb033e023a27f8053737ca4a9bd
7
- data.tar.gz: 618e690c06f6fb09e3b025cee7bfe63714235f946cb10ebab48b28fec6489f4c6d5bc4e754e9db9578e9ad93cca95b1ad8c34b3d90cfb340cc01d30e84017257
6
+ metadata.gz: 76000396421a16c11b77ddb5d0d9c234c9a5635b3caee0881e39b1978531e73750a41d671121955f09964d161af9de3eef70f6172a25f1eb870714e1def6ad1f
7
+ data.tar.gz: 47db6a4513a6043e99bbc672c5425b66161ec4d308b5f309d300e262d538bacda0d5a946e28cdea11a53e2acb1b0adc0fdb6fde32ead49dc1e78c4b78f795812
@@ -5,7 +5,7 @@ class WcoEmail::ApiController < ActionController::Base
5
5
  skip_before_action :verify_authenticity_token
6
6
 
7
7
  def create_email_message
8
- puts! params, 'params'
8
+ # puts! params, 'params'
9
9
 
10
10
  stub = WcoEmail::MessageStub.create!({
11
11
  bucket: params[:bucket],
@@ -9,8 +9,8 @@ class WcoEmail::ApplicationController < Wco::ApplicationController
9
9
  ##
10
10
  private
11
11
 
12
- def set_lists
13
- @tags = Wco::Tag.all
14
- end
12
+ # def set_lists
13
+ # @tags = Wco::Tag.all
14
+ # end
15
15
 
16
16
  end
@@ -119,7 +119,7 @@ class WcoEmail::ConversationsController < WcoEmail::ApplicationController
119
119
  private
120
120
 
121
121
  def set_lists
122
- super
122
+ @tags = Wco::Tag.all
123
123
  @email_templates_list = [ [nil, nil] ] + WcoEmail::EmailTemplate.all.map { |tmpl| [ tmpl.slug, tmpl.id ] }
124
124
  @leads_list = Wco::Lead.list
125
125
  @tags_list = Wco::Tag.list
@@ -33,8 +33,8 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
33
33
 
34
34
  def index
35
35
  authorize! :index, WcoEmail::EmailFilter.new
36
- @email_filter = WcoEmail::EmailFilter.new
37
- @email_filters = WcoEmail::EmailFilter.active
36
+ @email_filter = WcoEmail::EmailFilter.new
37
+ @email_filters = WcoEmail::EmailFilter.all
38
38
  end
39
39
 
40
40
  def new
@@ -60,7 +60,7 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
60
60
  private
61
61
 
62
62
  def set_lists
63
- super
63
+ # super
64
64
  @email_templates_list = WcoEmail::EmailTemplate.list
65
65
  @email_actions_list = WcoEmail::EmailAction.list
66
66
  @email_action_templates_list = WcoEmail::EmailActionTemplate.list
@@ -24,4 +24,4 @@
24
24
  = render '/wco_email/messages/meta', message: msg
25
25
  %iframe.message-iframe{ src: message_iframe_path(msg) }
26
26
 
27
- = render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to.downcase, subject: msg.subject })
27
+ = render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject })
@@ -23,13 +23,15 @@
23
23
  %th Subject Exact
24
24
  %th Body Exact
25
25
  %th Kind
26
- %th Email Action
27
- %th Email Template
28
- %th Email Tag
29
- - @email_filters.each do |ef|
26
+ -# %th Email Action
27
+ %th Email Action Template
28
+ -# %th Email Tag
29
+ - @email_filters.each_with_index do |ef, idx|
30
30
 
31
31
  %tr
32
- %td= check_box_tag 'checked'
32
+ %td
33
+ .gray= idx+1
34
+ = check_box_tag 'checked'
33
35
  %td
34
36
  = link_to '[~]', edit_email_filter_path(ef)
35
37
  .inline-block= button_to '[x]', email_filter_path(ef), method: :delete, data: { confirm: 'Are you sure?' }
@@ -41,8 +43,8 @@
41
43
  %td= ef.subject_exact
42
44
  %td= ef.body_exact
43
45
  %td= ef.kind
44
- %td= ef.email_action&.slug
45
- %td= ef.email_template&.slug
46
- %td= ef.category&.name
46
+ -# %td= ef.email_action&.id
47
+ %td= ef.email_action_template&.slug
48
+ -# %td= ef.category&.name
47
49
 
48
50
 
@@ -0,0 +1,22 @@
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
@@ -1,4 +1,26 @@
1
1
 
2
+ =begin
3
+
4
+
5
+ ## clean
6
+ WcoEmail::EmailAction.each do |act|
7
+ if !act.lead
8
+ act.delete
9
+ end
10
+ end
11
+
12
+
13
+
14
+ ## clean
15
+ WcoEmail::Context.each do |ttt|
16
+ if !ttt.lead
17
+ ttt.delete
18
+ end
19
+ end
20
+
21
+
22
+ =end
23
+
2
24
  namespace :db do
3
25
 
4
26
  desc "seed"
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.5
4
+ version: 0.1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -450,6 +450,7 @@ files:
450
450
  - app/views/wco_email/unsubscribes/_table.haml
451
451
  - config/initializers/assets.rb
452
452
  - config/routes.rb
453
+ - lib/systemd/system/wco_email_sidekiq.service
453
454
  - lib/tasks/bjjcollective/sitemap.rb
454
455
  - lib/tasks/db_tasks.rake
455
456
  - lib/tasks/direct_mail_tasks.rake
@@ -462,8 +463,6 @@ files:
462
463
  - lib/tasks/wasya_co/sitemap.rb
463
464
  - lib/tasks/wco_email_tasks.rake
464
465
  - lib/wco_email.rb
465
- - lib/wco_email/README_email_actions.rb
466
- - lib/wco_email/README_email_contexts.rb
467
466
  - lib/wco_email/engine.rb
468
467
  homepage: https://wasya.co
469
468
  licenses:
@@ -1,7 +0,0 @@
1
-
2
- ## clean
3
- WcoEmail::EmailAction.each do |act|
4
- if !act.lead
5
- act.delete
6
- end
7
- end
@@ -1,7 +0,0 @@
1
-
2
- ## clean
3
- WcoEmail::Context.each do |ttt|
4
- if !ttt.lead
5
- ttt.delete
6
- end
7
- end