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

Removing env parameter from deps to allow for arbitrary mix environments #77

Merged
merged 1 commit into from
Aug 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Stripe.Mixfile do
"vcr.check": :test,
"vcr.show": :test
],
deps: deps(Mix.env) ]
deps: deps]
end

# Configuration for the OTP application
Expand All @@ -28,15 +28,7 @@ defmodule Stripe.Mixfile do
]
end

defp deps(:dev) do
deps(:prod)
end

defp deps(:test) do
deps(:dev)
end

defp deps(:prod) do
defp deps do
[
{:httpoison, ">= 0.0.0" },
{:poison, ">= 0.0.0", optional: true},
Expand Down