Commit 1f4a6581 authored by xa's avatar xa

license

parent d9749c4d
Pipeline #1223 failed with stage
in 14 seconds
Copyright (c) 2019 Xavier Barbosa. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
......@@ -7,27 +7,13 @@ defmodule Duration.MixProject do
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
# Docs
name: "Duration",
source_url: "https://lab.errorist.xyz/elixir/duration",
homepage_url: "http://elixir.errorist.io/duration",
docs: [
main: "Duration", # The main page in the docs
# logo: "path/to/logo.png",
extras: [
"guides/advanced/timex.md",
],
groups_for_extras: [
# "Introduction": Path.wildcard("guides/introduction/*.md"),
"Advanced": Path.wildcard("guides/advanced/*.md")
]
],
# extras: [
# "guides/introduction/foo.md",
docs: docs()
]
end
......@@ -42,10 +28,33 @@ defmodule Duration.MixProject do
defp deps do
[
{:nimble_parsec, "~> 0.5.0", only: [:dev, :test]},
# {:credo, "~> 1.1", only: [:dev, :test], runtime: false},
# {:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false},
# {:timex, "~> 3.6", only: [:dev, :test], runtime: false}
{:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false}
]
end
defp description() do
"Duration is a tiny package which allows to manipulate ISO 8601:2004 durations."
end
defp package do
[
name: "duration",
licenses: ["BSD-3-Clause"],
# links: %{"GitHub" => "https://github.com/elixir-ecto/postgrex"}
]
end
defp docs do
docs: [
main: "Duration", # The main page in the docs
# logo: "path/to/logo.png",
extras: [
"guides/advanced/timex.md",
],
groups_for_extras: [
# "Introduction": Path.wildcard("guides/introduction/*.md"),
"Advanced": Path.wildcard("guides/advanced/*.md")
]
]
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment