From: Karen Etheridge Date: Sat, 28 Mar 2015 01:38:59 +0000 (-0700) Subject: keep $VERSION in repo version of module X-Git-Tag: v0.13~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dfd7ef2599a66095e5bfcf0d01557374adc4686d;p=p5sagit%2FSub-Name.git keep $VERSION in repo version of module --- diff --git a/Makefile.PL b/Makefile.PL index 96fc740..56a6201 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,7 @@ use lib 'inc'; use ExtUtils::MakeMaker::Dist::Zilla::Develop; WriteMakefile( NAME => 'Sub::Name', + VERSION_FROM => 'lib/Sub/Name.pm', INSTALLMAN1DIR => 'none', INSTALLMAN3DIR => 'none', ); diff --git a/dist.ini b/dist.ini index 6c1a3a8..c4b9652 100644 --- a/dist.ini +++ b/dist.ini @@ -5,7 +5,7 @@ copyright_holder = Matthijs van Duin and cPanel Inc. copyright_year = 2004 [@Author::ETHER] -:version = 0.068 +:version = 0.086 installer = MakeMaker Authority.authority = cpan:FLORA Test::MinimumVersion.max_target_perl = 5.006 diff --git a/lib/Sub/Name.pm b/lib/Sub/Name.pm index 344e4f8..53f1859 100644 --- a/lib/Sub/Name.pm +++ b/lib/Sub/Name.pm @@ -53,6 +53,8 @@ use 5.006; use strict; use warnings; +our $VERSION = '0.13'; + use Exporter 5.57 'import'; our @EXPORT = qw(subname); @@ -61,9 +63,7 @@ our @EXPORT_OK = @EXPORT; use XSLoader; XSLoader::load( __PACKAGE__, - exists $Sub::Name::{VERSION} - ? ${ $Sub::Name::{VERSION} } - : (), + $VERSION, ); 1;