Permalink
Browse files

Manage the version from a VERSION file, addressing #23

  • Loading branch information...
1 parent b256f3e commit 3e922c0e82eb40f7e9e86f5eb821230c700e8c92 @devinus committed Apr 4, 2013
Showing with 7 additions and 4 deletions.
  1. +1 −0 VERSION
  2. +5 −3 package.exs
  3. +1 −1 src/poolboy.app.src
View
1 VERSION
@@ -0,0 +1 @@
+0.10.0
View
8 package.exs
@@ -1,10 +1,12 @@
+version = String.strip(File.read!("VERSION"))
+
Expm.Package.new(
name: "poolboy",
description: "A hunky Erlang worker pool factory",
- homepage: "http://devinus.github.com/poolboy/",
- version: "0.9.1",
+ homepage: "http://devintorr.es/poolboy",
+ version: version,
keywords: ["Erlang", "library", "pool", "pools", "pooler"],
maintainers: [[name: "Devin Torres", email: "devin@devintorr.es"],
[name: "Andrew Thompson", email: "andrew@hijacked.us"]],
- repositories: [[github: "devinus/poolboy", tag: "0.9.1"]]
+ repositories: [[github: "devinus/poolboy", tag: version]]
)
View
2 src/poolboy.app.src
@@ -1,6 +1,6 @@
{application, poolboy, [
{description, "A hunky Erlang worker pool factory"},
- {vsn, "0.9.1"},
+ {vsn, {cmd, "echo `cat VERSION`"}},
{applications, [kernel, stdlib]},
{registered, [poolboy]}
]}.

0 comments on commit 3e922c0

Please sign in to comment.