Skip to content
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

Merged
merged 1 commit into from
Jul 30, 2017

Conversation

delphaber
Copy link
Contributor

No description provided.

@@ -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"\)\) }/

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@@ -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"\)\) }/

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@@ -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"\)\) }/

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production", %{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@nickcharlton
Copy link
Member

Looks good! Let's tidy up those long lines and then I'll merge.

@delphaber
Copy link
Contributor Author

I'll try to do it before vacation!

@@ -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"\)\) }'

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@@ -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"\)\) }'

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@@ -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"\)\) }'

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

@@ -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"\)\) }'

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host "production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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]

action_mailer_host "production", %{ENV.fetch("APPLICATION_HOST")}
action_mailer_asset_host(
"production",
%{ENV.fetch("ASSET_HOST", ENV.fetch("APPLICATION_HOST"))}

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.

@delphaber
Copy link
Contributor Author

Fixed hound warnings. Woof!

@nickcharlton
Copy link
Member

Looks good! Going to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants