Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix function calls ambiguities in mix config #27

Merged
merged 1 commit into from
Jan 21, 2017
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: 6 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ defmodule EctoStateMachine.Mixfile do
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
deps: deps(),
source_url: @project_url,
homepage_url: @project_url,
description: "State machine pattern for Ecto. I tried to make it similar as possible to ruby's gem 'aasm'",
package: package
package: package()
]
end

defp elixirc_paths(:test), do: elixirc_paths ++ ["test/support", "test/dummy"]
defp elixirc_paths(_), do: elixirc_paths
defp elixirc_paths(:test), do: elixirc_paths() ++ ["test/support", "test/dummy"]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ["lib"]

def application do
Expand All @@ -30,8 +30,8 @@ defmodule EctoStateMachine.Mixfile do
]
end

def app_list(:test), do: app_list ++ [:ecto, :postgrex, :ex_machina]
def app_list(_), do: app_list
def app_list(:test), do: app_list() ++ [:ecto, :postgrex, :ex_machina]
def app_list(_), do: app_list()
def app_list, do: [:logger]

defp deps do
Expand Down