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

Drop dependency on httpoison, use hackney directly #201

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

michalmuskala
Copy link
Contributor

This removes one dependency from the project, and I don't think it complicates it in any significant way.

@paulcsmith
Copy link
Contributor

I looked at this quickly on my phone and it seems good to me! I'll have to take a closer look on Friday when I have a bit more time but I think it'll be good to merge as-is. Thanks!

@@ -123,7 +130,7 @@ defmodule Bamboo.MailgunAdapter do
defp put_text_body(body, %Email{text_body: text_body}), do: Map.put(body, :text, text_body)

defp full_uri(config) do
(Application.get_env(:bamboo, :mailgun_base_uri) || @base_uri)
<> config.domain <> "/messages"
[Application.get_env(:bamboo, :mailgun_base_uri) || @base_uri,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems strange that this return a list and not a string. Is that just a Hackney thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hackney acceps iolists as url, I can revert it to append.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer that if it's cool with you :)

@paulcsmith
Copy link
Contributor

Just one question about using a list as the URI. Other than that, this looks great!

@michalmuskala
Copy link
Contributor Author

@paulcsmith updated

@paulcsmith paulcsmith merged commit d6ff3e7 into beam-community:master Jul 29, 2016
@paulcsmith
Copy link
Contributor

Thank you! :D Yay for one less dependency

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.

2 participants