Skip to content
This repository was archived by the owner on Oct 10, 2018. It is now read-only.

Commit 0521b43

Browse files
author
Rob Phoenix
committed
final prep for publishing to hex
1 parent 9e09115 commit 0521b43

File tree

3 files changed

+42
-41
lines changed

3 files changed

+42
-41
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Rob Phoenix, [email protected]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If [available in Hex](https://hex.pm/docs/publish), the package can be installed
1212
1. Add ipa to your list of dependencies in `mix.exs`:
1313

1414
def deps do
15-
[{:ipa, "~> 0.0.1"}]
15+
[{:ipa, "~> 0.0.2"}]
1616
end
1717

1818
2. Ensure ipa is started before your application:
@@ -224,10 +224,6 @@ iex> IPA.block("8.8.8.8")
224224
:public
225225
```
226226

227-
## Docs
228-
229-
Docs are available via `ExDoc`, run `mix docs` and open up `doc/index.html`.
230-
231227
## Tests
232228

233229
Run `mix test`. DocTests included.
@@ -238,35 +234,3 @@ Honestly, I don't know how much time I'm actually going to be able to dedicate
238234
to this project, so maybe think carefully before using it in production code
239235
(ha, high hopes!), but perhaps it can at least provide a starting point for
240236
something better?
241-
242-
## Contributing
243-
244-
Please fork and send pull requests (preferably from non-master
245-
branches), including tests (`ExUnit.Case`).
246-
247-
Report bugs and request features via Issues; PRs are even better!
248-
249-
## License
250-
251-
The MIT License (MIT)
252-
253-
Copyright (c) 2014 CargoSense, Inc.
254-
255-
Permission is hereby granted, free of charge, to any person obtaining a copy
256-
of this software and associated documentation files (the "Software"), to deal
257-
in the Software without restriction, including without limitation the rights
258-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
259-
copies of the Software, and to permit persons to whom the Software is
260-
furnished to do so, subject to the following conditions:
261-
262-
The above copyright notice and this permission notice shall be included in
263-
all copies or substantial portions of the Software.
264-
265-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
266-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
267-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
268-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
269-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
270-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
271-
THE SOFTWARE.
272-

mix.exs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ defmodule Ipa.Mixfile do
77
elixir: "~> 1.1",
88
build_embedded: Mix.env == :prod,
99
start_permanent: Mix.env == :prod,
10+
source_url: "https://github.com/bordeltabernacle/IPA"
11+
description: description,
12+
package: package,
1013
deps: deps]
1114
end
1215

1316
# Configuration for the OTP application
1417
#
1518
# Type "mix help compile.app" for more information
1619
def application do
17-
[applications: [:logger]]
20+
[]
1821
end
1922

2023
# Dependencies can be Hex packages:
@@ -27,8 +30,21 @@ defmodule Ipa.Mixfile do
2730
#
2831
# Type "mix help deps" for more examples and options
2932
defp deps do
30-
[{:earmark, "~> 0.1", only: :dev},
31-
{:ex_doc, "~> 0.11", only: :dev},
32-
]
33+
[]
34+
end
35+
36+
defp description do
37+
"""
38+
A pale, hoppy library for working with Internet Protocol Addresses.
39+
Validate and transform IPv4 addresses and subnet masks.
40+
"""
41+
end
42+
43+
defp package do
44+
[name: :ipa,
45+
files: ["lib", "priv", "mix.exs", "README.md", "LICENSE", "test"],
46+
maintainers: ["Rob Phoenix"],
47+
licenses: ["MIT"],
48+
links: %{"GitHub" => "https://github.com/bordeltabernacle/IPA"}]
3349
end
3450
end

0 commit comments

Comments
 (0)