-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update regex to match multiline config.action_mailer. #2055
Conversation
Man oh man we need tests for this. Then we would know straight away if it solves the problem. |
Dummy::Application.configure do | ||
if config.respond_to?(:action_mailer) | ||
config.action_mailer.test = true | ||
config.action_mailer.check = { |
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.
Not sure how to make generator indent this and subsequent lines.
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.
What do you mean?
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.
Oh, I get it.
@parndt ^ |
@@ -9,6 +9,37 @@ module Refinery | |||
|
|||
before do | |||
prepare_destination | |||
|
|||
dir = "#{destination_root}/config/environments" |
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 had to create env files myself because generator spec will only create Refinery's files.
@parndt is this good to merge? I'll squash commits if it is. |
I'm having a play. Feel free to squash the commits though and I'll update my copy :) I'll merge soon if I can't fix the indentation! |
Updated regex can now properly match config.action_mailer settings like: config.action_mailer.raise_delivery_errors = false and multiline: config.action_mailer.raise_delivery_errors = false config.action_mailer.smtp_settings = { address: "test.com", port: 123, domain: "example.com" }
Done. |
#1979
Updated regex can now properly match config.action_mailer settings like:
and multiline: