From: Graham Knop Date: Thu, 18 Jul 2013 11:25:40 +0000 (-0400) Subject: add version number to all public modules X-Git-Tag: v1.003001~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=013a2be36d4dd647a41fa4de28be9079dca713b0;p=gitmo%2FMoo.git add version number to all public modules --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 675998b..cafeed7 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -5,7 +5,7 @@ use Moo::_Utils; use B 'perlstring'; use Sub::Defer (); -our $VERSION = '1.003000'; # 1.3.0 +our $VERSION = '1.003000'; $VERSION = eval $VERSION; require Moo::sification; diff --git a/lib/Moo/Role.pm b/lib/Moo/Role.pm index 596f19b..c25e937 100644 --- a/lib/Moo/Role.pm +++ b/lib/Moo/Role.pm @@ -5,6 +5,9 @@ use Moo::_Utils; use Role::Tiny (); use base qw(Role::Tiny); +our $VERSION = '1.003000'; +$VERSION = eval $VERSION; + require Moo::sification; BEGIN { *INFO = \%Role::Tiny::INFO } diff --git a/lib/Sub/Defer.pm b/lib/Sub/Defer.pm index 95509de..0ec2c06 100644 --- a/lib/Sub/Defer.pm +++ b/lib/Sub/Defer.pm @@ -4,6 +4,9 @@ use strictures 1; use base qw(Exporter); use Moo::_Utils; +our $VERSION = '1.003000'; +$VERSION = eval $VERSION; + our @EXPORT = qw(defer_sub undefer_sub); our %DEFERRED; diff --git a/lib/Sub/Quote.pm b/lib/Sub/Quote.pm index 3551aeb..52aae7e 100644 --- a/lib/Sub/Quote.pm +++ b/lib/Sub/Quote.pm @@ -9,6 +9,9 @@ use B 'perlstring'; use Scalar::Util qw(weaken); use base qw(Exporter); +our $VERSION = '1.003000'; +$VERSION = eval $VERSION; + our @EXPORT = qw(quote_sub unquote_sub quoted_from_sub); our %QUOTED; diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index c093651..45effa7 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -1,6 +1,6 @@ BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") } use lib 'Distar/lib'; -use Distar; +use Distar 0.001; use ExtUtils::MakeMaker 6.57_10 (); diff --git a/maint/bump-version b/maint/bump-version index c479450..dc99d67 100755 --- a/maint/bump-version +++ b/maint/bump-version @@ -28,7 +28,12 @@ my $NEW_DECIMAL = sprintf('%i.%03i%03i', @new_parts); warn "Bumping $OLD_DECIMAL -> $NEW_DECIMAL\n"; -for my $PM_FILE ('lib/Moo.pm') { +for my $PM_FILE (qw( + lib/Moo.pm + lib/Moo/Role.pm + lib/Sub/Defer.pm + lib/Sub/Quote.pm +)) { my $file = do { local (@ARGV, $/) = ($PM_FILE); <> }; $file =~ s/(?<=\$VERSION = ')${\quotemeta $OLD_DECIMAL}/${NEW_DECIMAL}/