-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
42 lines (36 loc) · 999 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
38
39
40
41
42
defmodule RequestTimeout.Mixfile do
use Mix.Project
def project,
do: [
app: :request_timeout,
version: "1.2.0",
elixir: "~> 1.8",
deps: deps(),
aliases: aliases(),
package: package(),
description: description(),
source_url: package()[:links]["Github"]
]
def application, do: [extra_applications: [:logger, :runtime_tools]]
defp aliases,
do: [
compile: ["format", "compile"],
test: ["format", "test"]
]
defp deps,
do: [
{:plug, 1..10 |> Enum.map(&"~> 1.#{&1}") |> Enum.join(" or ")},
{:ex_doc, "~> 0.14", only: :dev, runtime: false}
]
defp description,
do: """
An elixir plug that kills long running Phoenix controllers before
they take your node down. A kind of circuit breaker.
"""
defp package,
do: [
maintainers: ["Pierre Fenoll"],
licenses: ["MIT"],
links: %{"Github" => "http://github.com/fenollp/elixir-phoenix-request_timeout"}
]
end