diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-12-30 22:54:46 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-12-30 22:54:46 +0100 |
commit | 9e578edf7b00ea0c45aef8fce08387ba65ff2803 (patch) | |
tree | dc8243017b7d417109503a5c83f503f39e5781cf | |
parent | c203abb37e9c2f8f2c34f994471dcb5d2bd24c44 (diff) | |
download | manatools-9e578edf7b00ea0c45aef8fce08387ba65ff2803.tar manatools-9e578edf7b00ea0c45aef8fce08387ba65ff2803.tar.gz manatools-9e578edf7b00ea0c45aef8fce08387ba65ff2803.tar.bz2 manatools-9e578edf7b00ea0c45aef8fce08387ba65ff2803.tar.xz manatools-9e578edf7b00ea0c45aef8fce08387ba65ff2803.zip |
Module implements the Version Role, modules now has the version from
manatools, overriding it if they need
-rw-r--r-- | extras/module_templete/ManaTools/Module/ModuleTemplate.pm | 8 | ||||
-rw-r--r-- | lib/ManaTools/Module.pm | 10 |
2 files changed, 7 insertions, 11 deletions
diff --git a/extras/module_templete/ManaTools/Module/ModuleTemplate.pm b/extras/module_templete/ManaTools/Module/ModuleTemplate.pm index b723893e..1be9d9b0 100644 --- a/extras/module_templete/ManaTools/Module/ModuleTemplate.pm +++ b/extras/module_templete/ManaTools/Module/ModuleTemplate.pm @@ -51,12 +51,14 @@ sub _nameInitializer { =head1 VERSION -Version 0.0.1 + Module implements Version Role so if you want to have your own versioning + override Version attributes e.g. using + has '+Version' => ( + default => "X.Y.Z" + ); =cut -our $VERSION = '0.0.1'; - # sh_gui to use Shared/GUI object has 'sh_gui' => ( is => 'rw', diff --git a/lib/ManaTools/Module.pm b/lib/ManaTools/Module.pm index 8fbbb759..c655cc85 100644 --- a/lib/ManaTools/Module.pm +++ b/lib/ManaTools/Module.pm @@ -23,19 +23,13 @@ package ManaTools::Module; use Moose; +with 'ManaTools::Version'; + use ManaTools::Shared; use ManaTools::Shared::Locales; use ManaTools::Shared::Logging; use ManaTools::Shared::GUI::CommandLine; -=head1 VERSION - -Version 1.0.1 - -=cut - -our $VERSION = '1.0.1'; - use yui; #============================================================= |