diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-15 15:46:54 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-01-15 15:46:54 +0000 |
commit | 5d278aa81dcacf5b9cf54dae67103ced19d45606 (patch) | |
tree | a881a736871e5ad48c800e3b03cab1d76c493733 /lib/gitano.lua | |
parent | af860441720400898a7daa482abe8129742f2301 (diff) | |
download | gitano-5d278aa81dcacf5b9cf54dae67103ced19d45606.tar.gz |
Add a version number system to Gitano
Diffstat (limited to 'lib/gitano.lua')
-rw-r--r-- | lib/gitano.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gitano.lua b/lib/gitano.lua index 766c2eb..c8f6bc4 100644 --- a/lib/gitano.lua +++ b/lib/gitano.lua @@ -42,7 +42,21 @@ local auth = require 'gitano.auth' local plugins = require 'gitano.plugins' local i18n = require 'gitano.i18n' +local _VERSION = {1, 0, 0} +_VERSION.major = _VERSION[1] +_VERSION.minor = _VERSION[2] +_VERSION.patch = _VERSION[3] + +local _VERSION_STRING = ("Gitano %d.%d.%d"):format(_VERSION.major, + _VERSION.minor, + _VERSION.patch) + +local _COPYRIGHT = "Copyright 2012-2017 Daniel Silverstone <dsilvers@digital-scurf.org>" + return { + VERSION = _VERSION, + VERSION_STRING = _VERSION_STRING, + COPYRIGHT = _COPYRIGHT, util = util, config = config, repository = repository, |