forked from navinpeiris/geoip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
48 lines (44 loc) · 1.14 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
defmodule GeoIP.Mixfile do
use Mix.Project
def project do
[
app: :geoip,
version: "0.2.5",
name: "GeoIP",
description:
"Lookup the geo location for a given IP address, hostname or Plug.Conn instance",
package: package(),
source_url: "https://github.com/navinpeiris/geoip",
homepage_url: "https://github.com/navinpeiris/geoip",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [extras: ["README.md"]]
]
end
def application do
[
applications: [:logger, :httpoison, :cachex],
mod: {GeoIP, []},
env: [use_https: true, cache: true, cache_ttl_secs: 3600]
]
end
defp deps do
[
{:httpoison, "~> 1.0"},
{:jason, "~> 1.1"},
{:cachex, "~> 3.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:mock, "~> 0.3.3", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Navin Peiris"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/navinpeiris/geoip"}
]
end
end