evanmiller/ChicagoBoss — Issue #53: Include a version number
Author: kotedo
Created: 2012-01-06 15:18:09+00:00
State: open

Hi Evan,

I wonder if it would be feasible to have a version number in ChicagoBoss that could be either queried via Makefile
such as:
make version
-> This is ChicagoBoss X.Y.Z

I see that I can get to the information by using in erl ...

(wildbill@rackbookpro)5> boss:module_info().
[{exports,[{start,0},
{stop,0},
{module_info,0},
{module_info,1}]},
{imports,[]},
{attributes,[{vsn,[291108095575550242669938456382961141132]},
{author,['Evan Miller ']}]},
{compile,[{options,[{outdir,"ebin"},
debug_info,debug_info,
{i,"include"}]},
{version,"4.7.5"},
{time,{2012,1,4,1,57,0}},
{source,"/private/var/www/ChicagoBoss-0.6.10_latest/src/boss/boss.erl"}]}]

The last line "source" has some versioning information in it that I am looking for (ChicagoBoss-0.6.10) but it would be nice
to have something like

boss:version() -> string()

Where string would be something like: {"ChicagoBoss",{0,6,10}.

—Kai