-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
37 lines (31 loc) · 1001 Bytes
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
defmodule EctoHomoiconicEnum.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.trim
@description """
Adds support for enumerated types to Ecto. Unlike ecto_enum, these enums assume the database will take and return the enum's values by their string representations.
"""
def project, do: [
app: :ecto_homoiconic_enum,
version: @version,
elixir: "~> 1.5",
description: @description,
consolidate_protocols: not Mix.env in [:dev, :test],
deps: deps(),
package: package()
]
def application, do: [
extra_applications: [:logger]
]
defp package, do: [
maintainers: ["Levi Aul"],
contributors: ["Levi Aul", "Michael Williams", "Gabriel Jaldon"],
licenses: ["MIT"],
links: %{github: "https://github.com/tsutsu/ecto_homoiconic_enum"},
files: ~w(mix.exs lib README.md VERSION)
]
defp deps do [
{:ecto, "~> 2.2"},
{:postgrex, "~> 0.13", optional: true},
{:ex_doc, ">= 0.0.0", only: :dev}
] end
end