Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 42792f1

Browse files
committed
Add better docs configuration and ISC license
1 parent fe4b504 commit 42792f1

File tree

3 files changed

+50
-17
lines changed

3 files changed

+50
-17
lines changed

LICENSE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ISC License
2+
3+
Copyright 2017 Jonathan Clem
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15+
PERFORMANCE OF THIS SOFTWARE.

lib/ot/type.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule OT.Type do
22
@moduledoc """
3-
A behaviour for implementing an operational transformationt type.
3+
A behaviour for implementing an operational transformation type.
44
55
An operational transformation (OT) type is a module that is able to apply
66
operations on a piece of data in any order and guarantee convergence of the

mix.exs

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
defmodule Ot.Mixfile do
22
use Mix.Project
33

4+
@version "0.1.0"
5+
@github_url "https://github.com/jclem/ot"
6+
47
def project do
58
[app: :ot,
6-
version: "0.1.0",
9+
version: @version,
10+
description: description(),
11+
package: package(),
712
elixir: "~> 1.4",
813
build_embedded: Mix.env == :prod,
914
start_permanent: Mix.env == :prod,
@@ -12,33 +17,46 @@ defmodule Ot.Mixfile do
1217
dialyzer: [flags: ~w(-Werror_handling
1318
-Wrace_conditions
1419
-Wunderspecs
15-
-Wunmatched_returns)]]
20+
-Wunmatched_returns)],
21+
22+
# Docs
23+
name: "OT",
24+
homepage_url: @github_url,
25+
source_url: @github_url,
26+
docs: docs()]
27+
end
28+
29+
defp aliases do
30+
[lint: ["credo", "dialyzer --halt-exit-status"]]
1631
end
1732

18-
# Configuration for the OTP application
19-
#
20-
# Type "mix help compile.app" for more information
2133
def application do
2234
# Specify extra applications you'll use from Erlang/Elixir
2335
[]
2436
end
2537

26-
# Dependencies can be Hex packages:
27-
#
28-
# {:my_dep, "~> 0.3.0"}
29-
#
30-
# Or git/path repositories:
31-
#
32-
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
33-
#
34-
# Type "mix help deps" for more examples and options
3538
defp deps do
3639
[{:ex_doc, "~> 0.14", only: [:dev]},
3740
{:dialyxir, "~> 0.4", only: [:dev], runtime: false},
3841
{:credo, "~> 0.5", only: [:dev, :test]}]
3942
end
4043

41-
defp aliases do
42-
[lint: ["credo", "dialyzer --halt-exit-status"]]
44+
defp description do
45+
"""
46+
OT provides libraries for operational transformation, which is a method of
47+
achieving consistency in a collaborative software system.
48+
"""
49+
end
50+
51+
defp docs do
52+
[source_ref: "v#{@version}",
53+
extras: ["README.md": [filename: "README.md", title: "Readme"],
54+
"LICENSE.md": [filename: "LICENSE.md", title: "License"]]]
55+
end
56+
57+
defp package do
58+
[maintainers: ["Jonathan Clem <[email protected]>"],
59+
licenses: ["ISC"],
60+
links: %{"GitHub" => @github_url}]
4361
end
4462
end

0 commit comments

Comments
 (0)