d4b3ba4baa
* [#139] Delayed emails for conversations * Added the setex and get methods to Redis wrapper * Set the priorities for the sidekiq queues * Was not able to use mailhog for testing email in local, switched back to letter opener and added comments on using the SMTP settings * Added after create hood in messages to queue the sending of mail after 2 minutes using sidekiq worker and also set the redis key for the conversation to avoid the email sending for every message * Added the sidekiq worker to send the email and delete the conversation redis key * Added the mailer and mail template * mailer sends the last 10 messages along with the new messages from the time it was queued * Send email only in development or if smtp config is set * Send email only in development or if smtp config is set * Set the SMTP_PORT in production variable * Adding redis to circle CI * Specs for the conversation email changes * Added specs for conversation email sidekiq worker * Added specs for conversation mailer * Added specs in message model for the after create hook for notify email * Send emails only when there is a reply from agent * set development to use mailhog * Adding comments for using letter opener
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
require:
|
|
- rubocop-performance
|
|
- rubocop-rails
|
|
- rubocop-rspec
|
|
inherit_from: .rubocop_todo.yml
|
|
|
|
Layout/LineLength:
|
|
Max: 150
|
|
Metrics/ClassLength:
|
|
Max: 125
|
|
RSpec/ExampleLength:
|
|
Max: 15
|
|
Style/Documentation:
|
|
Enabled: false
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: false
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
Style/GlobalVars:
|
|
Exclude:
|
|
- 'config/initializers/redis.rb'
|
|
- 'lib/redis/alfred.rb'
|
|
Metrics/BlockLength:
|
|
Exclude:
|
|
- spec/**/*
|
|
- '**/routes.rb'
|
|
- 'config/environments/*'
|
|
Rails/ApplicationController:
|
|
Exclude:
|
|
- 'app/controllers/api/v1/widget/messages_controller.rb'
|
|
- 'app/controllers/dashboard_controller.rb'
|
|
- 'app/controllers/widget_tests_controller.rb'
|
|
- 'app/controllers/widgets_controller.rb'
|
|
Style/ClassAndModuleChildren:
|
|
EnforcedStyle: compact
|
|
Exclude:
|
|
- 'config/application.rb'
|
|
RSpec/NestedGroups:
|
|
Enabled: true
|
|
Max: 4
|
|
AllCops:
|
|
Exclude:
|
|
- db/*
|
|
- bin/**/*
|
|
- db/**/*
|
|
- config/**/*
|
|
- public/**/*
|
|
- vendor/**/*
|
|
- node_modules/**/*
|
|
- lib/tasks/auto_annotate_models.rake
|
|
- config/environments/**/*
|