-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ActionMailer support #3
Conversation
mailtrap.gemspec
Outdated
@@ -19,6 +19,9 @@ Gem::Specification.new do |spec| | |||
spec.metadata['changelog_uri'] = 'https://github.com/railsware/mailtrap-ruby/blob/main/CHANGELOG.md' | |||
spec.metadata['rubygems_mfa_required'] = 'true' | |||
|
|||
spec.add_dependency 'mail' | |||
spec.add_dependency 'net-smtp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gem is needed as Ruby 3.1 doesn't have 'net/smtp' package included.
mikel/mail#1472
Or should we move this to regular Gemfile
since we not require ActionMailer (thus are not using mail
in runtime)?
module Sending | ||
module Convert | ||
class << self | ||
def from_message(message) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we commit code with rubocop:disasble
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a good idea to liberate rubocop settings for the entire repo having in mind we are talking about a single method with disables.
Any ideas to simplify the code?
0e9e628
to
02512d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, i have a couple cleanup suggestions, that's all
No description provided.