forked from navinpeiris/geoip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
41 lines (36 loc) · 1.07 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
defmodule GeoIP.Mixfile do
use Mix.Project
def project do
[app: :geoip,
version: "0.1.2",
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: [url: "https://freegeoip.net",
cache: true,
cache_ttl_secs: 3600]]
end
defp deps do
[{:httpoison, "~> 1.0"},
{:poison, "~> 2.0 or ~> 3.0"},
{:cachex, "~> 2.0"},
{:ex_doc, ">= 0.0.0", only: :dev}]
end
defp package do
[files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Navin Peiris"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/navinpeiris/geoip"}]
end
end