-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Configures action mailer asset host #853
Configures action mailer asset host #853
Conversation
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
expect(production_config).to match( | |||
/config\.action_mailer\.asset_host = { host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }/ |
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.
Put a comma after the last parameter of a multiline method call.
Line is too long. [114/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [102/80]
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
expect(production_config).to match( | |||
/config\.action_mailer\.asset_host = { host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }/ |
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.
Put a comma after the last parameter of a multiline method call.
Line is too long. [114/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [102/80]
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
expect(production_config).to match( | |||
/config\.action_mailer\.asset_host = { host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }/ |
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.
Put a comma after the last parameter of a multiline method call.
Line is too long. [114/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [102/80]
Looks good! Let's tidy up those long lines and then I'll merge. |
I'll try to do it before vacation! |
c07a2ca
to
4149592
Compare
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
config_key = 'config\.action_mailer\.asset_host' | |||
config_value = '{ host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }' |
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.
Line is too long. [91/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
config_key = 'config\.action_mailer\.asset_host' | |||
config_value = '{ host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }' |
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.
Line is too long. [91/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
config_key = 'config\.action_mailer\.asset_host' | |||
config_value = '{ host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }' |
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.
Line is too long. [91/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
spec/features/new_project_spec.rb
Outdated
@@ -155,6 +155,12 @@ | |||
to match(/^ +config.action_mailer.delivery_method = :file$/) | |||
end | |||
|
|||
it "sets action mailer default host and asset host" do | |||
config_key = 'config\.action_mailer\.asset_host' | |||
config_value = '{ host: ENV\.fetch\("ASSET_HOST", ENV\.fetch\("APPLICATION_HOST"\)\) }' |
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.
Line is too long. [91/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host "production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Line is too long. [88/80]
4149592
to
37e0d43
Compare
lib/suspenders/app_builder.rb
Outdated
action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")} | ||
action_mailer_asset_host( | ||
"production", | ||
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))} |
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.
Put a comma after the last parameter of a multiline method call.
37e0d43
to
d1e2c49
Compare
Fixed hound warnings. Woof! |
Looks good! Going to merge. |
No description provided.