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

    ]
  end

  defp package do
    [
      maintainers: ["Josh Steiner", "Paul Smith"],
      licenses: ["MIT"],

      elixirc_paths: elixirc_paths(Mix.env),
      build_embedded: Mix.env == :prod,
      start_permanent: Mix.env == :prod,
      package: package(),
      docs: [main: "readme", extras: ["README.md"]],
      deps: deps()
    ]
  end

  def application() do
    [
      applications: app_list(Mix.env),
      mod: {ExMachina, []}
    ]
  end

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

  defp deps() do
    [
      {:ex_doc, "~> 0.9", only: :dev},
      {:earmark, ">= 0.0.0", only: :dev},
