Skip to content

Commit afe5532

Browse files
committed
Hex package
1 parent 626aeb1 commit afe5532

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

mix.exs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1+
Code.ensure_loaded?(Hex) and Hex.start
2+
13
defmodule Decimal.Mixfile do
24
use Mix.Project
35

46
def project do
57
[ app: :decimal,
68
version: "0.1.1-dev",
7-
elixir: "~> 0.12.4 or ~> 0.13.0-dev",
9+
elixir: "~> 0.13.0",
810
deps: deps(Mix.env),
911
build_per_environment: false,
1012
name: "Decimal",
1113
source_url: "https://github.com/ericmj/decimal",
14+
description: description,
1215
docs: fn -> [
1316
source_ref: System.cmd("git rev-parse --verify --quiet HEAD"),
1417
readme: true ]
15-
end ]
18+
end,
19+
package: package ]
1620
end
1721

18-
# Configuration for the OTP application
1922
def application do
2023
[]
2124
end
2225

23-
# Returns the list of dependencies in the format:
24-
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
25-
#
26-
# To specify particular versions, regardless of the tag, do:
27-
# { :barbat, "~> 0.1", github: "elixir-lang/barbat.git" }
2826
defp deps(:dev) do
2927
[ { :ex_doc, github: "elixir-lang/ex_doc" } ]
3028
end
3129

3230
defp deps(_), do: []
31+
32+
defp description do
33+
"""
34+
Arbitrary precision decimal arithmetic for Elixir.
35+
"""
36+
end
37+
38+
defp package do
39+
[ contributors: ["Eric Meadows-Jönsson"],
40+
licenses: ["Apache 2.0"],
41+
links: [ { "Github", "https://github.com/ericmj/decimal" },
42+
{ "Documentation", "http://ericmj.github.io/decimal" } ] ]
43+
end
3344
end

0 commit comments

Comments
 (0)