Skip to content

Commit ca018ef

Browse files
committed
Preparing for an 0.5.0 hex release
1 parent ed48e37 commit ca018ef

File tree

4 files changed

+46
-12
lines changed

4 files changed

+46
-12
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## 0.5.0
4+
5+
- Initial release

RELEASING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Releasing a new version
2+
3+
## Checklist
4+
5+
* Ensure `CHANGELOG.md` is up-to-date
6+
* Ensure working dir is clean
7+
* Update version in `mix.exs`
8+
* Create a commit:
9+
10+
git commit -a -m "Bump version to 0.X.Y"
11+
git tag v0.X.Y
12+
mix test && mix hex.publish
13+
git push origin master --tags
14+
15+
* Enjoy!

mix.exs

+24-12
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ defmodule OnMaintenance.Mixfile do
33

44
def project do
55
[app: :on_maintenance,
6-
version: "0.1.0",
6+
version: "0.5.0",
77
elixir: "~> 1.4",
88
build_embedded: Mix.env == :prod,
99
start_permanent: Mix.env == :prod,
10-
deps: deps()]
10+
deps: deps(),
11+
description: description(),
12+
package: package(),]
1113
end
1214

1315
# Configuration for the OTP application
@@ -18,15 +20,6 @@ defmodule OnMaintenance.Mixfile do
1820
[extra_applications: [:logger, :cowboy, :plug]]
1921
end
2022

21-
# Dependencies can be Hex packages:
22-
#
23-
# {:my_dep, "~> 0.3.0"}
24-
#
25-
# Or git/path repositories:
26-
#
27-
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
28-
#
29-
# Type "mix help deps" for more examples and options
3023
defp deps do
3124
[
3225
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false},
@@ -36,7 +29,26 @@ defmodule OnMaintenance.Mixfile do
3629
{:poison, "~> 1.0"},
3730
{:sqlitex, "~> 1.3"},
3831
{:mock, "~> 0.2.0", only: :test},
39-
{:inch_ex, only: :docs}
32+
{:inch_ex, only: :docs},
33+
{:ex_doc, ">= 0.0.0", only: :dev}
34+
]
35+
end
36+
37+
defp description do
38+
"""
39+
Plug.OnMaintenance, an Elixir Plug, is used to disable access to your application for some length of time.
40+
"""
41+
end
42+
43+
defp package do
44+
[
45+
files: ["lib", "mix.exs", "README.md"],
46+
maintainers: ["Wilfrido T. Nuqui Jr."],
47+
licenses: ["MIT"],
48+
links: %{
49+
"GitHub" => "https://github.com/wnuqui/on_maintenance",
50+
"Docs" => "http://hexdocs.pm/on_maintenance"
51+
}
4052
]
4153
end
4254
end

mix.lock

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
%{"cowboy": {:hex, :cowboy, "1.0.4", "a324a8df9f2316c833a470d918aaf73ae894278b8aa6226ce7a9bf699388f878", [:make, :rebar], [{:cowlib, "~> 1.0.0", [hex: :cowlib, optional: false]}, {:ranch, "~> 1.0", [hex: :ranch, optional: false]}]},
22
"cowlib": {:hex, :cowlib, "1.0.2", "9d769a1d062c9c3ac753096f868ca121e2730b9a377de23dec0f7e08b1df84ee", [:make], []},
33
"decimal": {:hex, :decimal, "1.3.1", "157b3cedb2bfcb5359372a7766dd7a41091ad34578296e951f58a946fcab49c6", [:mix], []},
4+
"earmark": {:hex, :earmark, "1.2.0", "bf1ce17aea43ab62f6943b97bd6e3dc032ce45d4f787504e3adf738e54b42f3a", [:mix], []},
45
"esqlite": {:hex, :esqlite, "0.2.3", "1a8b60877fdd3d50a8a84b342db04032c0231cc27ecff4ddd0d934485d4c0cd5", [:rebar3], []},
6+
"ex_doc": {:hex, :ex_doc, "0.15.0", "e73333785eef3488cf9144a6e847d3d647e67d02bd6fdac500687854dd5c599f", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, optional: false]}]},
57
"ex_unit_notifier": {:hex, :ex_unit_notifier, "0.1.3", "050d1a88acfb3f97d3a4d0abefdc822a64807282a90aa09866fe3d88bcac87f7", [:mix], []},
68
"fs": {:hex, :fs, "2.12.0", "ad631efacc9a5683c8eaa1b274e24fa64a1b8eb30747e9595b93bec7e492e25e", [:rebar3], []},
79
"inch_ex": {:hex, :inch_ex, "0.5.6", "418357418a553baa6d04eccd1b44171936817db61f4c0840112b420b8e378e67", [:mix], [{:poison, "~> 1.5 or ~> 2.0 or ~> 3.0", [hex: :poison, optional: false]}]},

0 commit comments

Comments
 (0)