From: Dave Rolsky Date: Wed, 20 Aug 2008 18:49:21 +0000 (+0000) Subject: Implement the "eval $VERSION" trick from perlmodstyle so CPAN doesn't X-Git-Tag: 0_55_01~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=75b9541431131c67521bd1ec75df80c9707bd719;p=gitmo%2FMoose.git Implement the "eval $VERSION" trick from perlmodstyle so CPAN doesn't spit out many warnings on dev versions. --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 1437282..afffbf5 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -4,7 +4,8 @@ package Moose; use strict; use warnings; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use Scalar::Util 'blessed'; diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 7bc24ff..42e842d 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -9,7 +9,8 @@ use Class::MOP; use Carp 'confess'; use Scalar::Util 'weaken', 'blessed'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use Moose::Meta::Method::Overriden; diff --git a/lib/Moose/Meta/Instance.pm b/lib/Moose/Meta/Instance.pm index 60f1a03..eec7c21 100644 --- a/lib/Moose/Meta/Instance.pm +++ b/lib/Moose/Meta/Instance.pm @@ -4,7 +4,8 @@ package Moose::Meta::Instance; use strict; use warnings; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base "Class::MOP::Instance"; diff --git a/lib/Moose/Meta/Method.pm b/lib/Moose/Meta/Method.pm index 1ff403a..070e2d4 100644 --- a/lib/Moose/Meta/Method.pm +++ b/lib/Moose/Meta/Method.pm @@ -3,7 +3,8 @@ package Moose::Meta::Method; use strict; use warnings; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Class::MOP::Method'; diff --git a/lib/Moose/Meta/Method/Accessor.pm b/lib/Moose/Meta/Method/Accessor.pm index 5237632..e491b0f 100644 --- a/lib/Moose/Meta/Method/Accessor.pm +++ b/lib/Moose/Meta/Method/Accessor.pm @@ -6,7 +6,8 @@ use warnings; use Carp 'confess'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method', diff --git a/lib/Moose/Meta/Method/Augmented.pm b/lib/Moose/Meta/Method/Augmented.pm index 1f90da5..f075237 100644 --- a/lib/Moose/Meta/Method/Augmented.pm +++ b/lib/Moose/Meta/Method/Augmented.pm @@ -5,7 +5,8 @@ use warnings; use Carp 'confess'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method'; diff --git a/lib/Moose/Meta/Method/Destructor.pm b/lib/Moose/Meta/Method/Destructor.pm index 679db0e..b30db6a 100644 --- a/lib/Moose/Meta/Method/Destructor.pm +++ b/lib/Moose/Meta/Method/Destructor.pm @@ -7,7 +7,8 @@ use warnings; use Carp 'confess'; use Scalar::Util 'blessed', 'weaken'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method', diff --git a/lib/Moose/Meta/Method/Overriden.pm b/lib/Moose/Meta/Method/Overriden.pm index f527a5a..b638123 100644 --- a/lib/Moose/Meta/Method/Overriden.pm +++ b/lib/Moose/Meta/Method/Overriden.pm @@ -5,7 +5,8 @@ use warnings; use Carp 'confess'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method'; diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 4f19eb8..96b5d45 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -8,7 +8,8 @@ use metaclass; use Carp 'confess'; use Scalar::Util 'blessed'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use Moose::Meta::Class; diff --git a/lib/Moose/Meta/Role/Application.pm b/lib/Moose/Meta/Role/Application.pm index 0241bdb..41d8150 100644 --- a/lib/Moose/Meta/Role/Application.pm +++ b/lib/Moose/Meta/Role/Application.pm @@ -4,7 +4,8 @@ use strict; use warnings; use metaclass; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; __PACKAGE__->meta->add_attribute('method_exclusions' => ( diff --git a/lib/Moose/Meta/Role/Application/RoleSummation.pm b/lib/Moose/Meta/Role/Application/RoleSummation.pm index c935cdc..9031a61 100644 --- a/lib/Moose/Meta/Role/Application/RoleSummation.pm +++ b/lib/Moose/Meta/Role/Application/RoleSummation.pm @@ -10,7 +10,8 @@ use Data::Dumper; use Moose::Meta::Role::Composite; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Application'; diff --git a/lib/Moose/Meta/Role/Application/ToClass.pm b/lib/Moose/Meta/Role/Application/ToClass.pm index 6109955..b220af5 100644 --- a/lib/Moose/Meta/Role/Application/ToClass.pm +++ b/lib/Moose/Meta/Role/Application/ToClass.pm @@ -9,7 +9,8 @@ use Scalar::Util 'blessed'; use Data::Dumper; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Application'; diff --git a/lib/Moose/Meta/Role/Application/ToInstance.pm b/lib/Moose/Meta/Role/Application/ToInstance.pm index f15107e..571f73f 100644 --- a/lib/Moose/Meta/Role/Application/ToInstance.pm +++ b/lib/Moose/Meta/Role/Application/ToInstance.pm @@ -7,7 +7,8 @@ use metaclass; use Carp 'confess'; use Scalar::Util 'blessed'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Application::ToClass'; diff --git a/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm b/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm index a7f41b5..d8bfe39 100644 --- a/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm +++ b/lib/Moose/Meta/Role/Application/ToMetaclassInstance.pm @@ -6,7 +6,8 @@ use metaclass; use Scalar::Util 'blessed'; -our $VERSION = '0.55'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Application::ToClass'; diff --git a/lib/Moose/Meta/Role/Application/ToRole.pm b/lib/Moose/Meta/Role/Application/ToRole.pm index 559d301..8794faa 100644 --- a/lib/Moose/Meta/Role/Application/ToRole.pm +++ b/lib/Moose/Meta/Role/Application/ToRole.pm @@ -9,7 +9,8 @@ use Scalar::Util 'blessed'; use Data::Dumper; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Application'; diff --git a/lib/Moose/Meta/Role/Composite.pm b/lib/Moose/Meta/Role/Composite.pm index 8d4690a..1a21b49 100644 --- a/lib/Moose/Meta/Role/Composite.pm +++ b/lib/Moose/Meta/Role/Composite.pm @@ -7,7 +7,8 @@ use metaclass; use Carp 'confess'; use Scalar::Util 'blessed'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role'; diff --git a/lib/Moose/Meta/Role/Method.pm b/lib/Moose/Meta/Role/Method.pm index 13ec822..71aa56a 100644 --- a/lib/Moose/Meta/Role/Method.pm +++ b/lib/Moose/Meta/Role/Method.pm @@ -4,7 +4,8 @@ package Moose::Meta::Role::Method; use strict; use warnings; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Class::MOP::Method'; diff --git a/lib/Moose/Meta/Role/Method/Required.pm b/lib/Moose/Meta/Role/Method/Required.pm index 93d2df7..9d27cc7 100644 --- a/lib/Moose/Meta/Role/Method/Required.pm +++ b/lib/Moose/Meta/Role/Method/Required.pm @@ -4,7 +4,8 @@ package Moose::Meta::Role::Method::Required; use strict; use warnings; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Role::Method'; diff --git a/lib/Moose/Meta/TypeCoercion.pm b/lib/Moose/Meta/TypeCoercion.pm index 5fa1518..de7c466 100644 --- a/lib/Moose/Meta/TypeCoercion.pm +++ b/lib/Moose/Meta/TypeCoercion.pm @@ -10,7 +10,8 @@ use Carp 'confess'; use Moose::Meta::Attribute; use Moose::Util::TypeConstraints (); -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; __PACKAGE__->meta->add_attribute('type_coercion_map' => ( diff --git a/lib/Moose/Meta/TypeCoercion/Union.pm b/lib/Moose/Meta/TypeCoercion/Union.pm index 163000b..06353fa 100644 --- a/lib/Moose/Meta/TypeCoercion/Union.pm +++ b/lib/Moose/Meta/TypeCoercion/Union.pm @@ -8,7 +8,8 @@ use metaclass; use Carp 'confess'; use Scalar::Util 'blessed'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeCoercion'; diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index 11f8160..4d80e7a 100644 --- a/lib/Moose/Meta/TypeConstraint.pm +++ b/lib/Moose/Meta/TypeConstraint.pm @@ -13,7 +13,8 @@ use Scalar::Util qw(blessed refaddr); use base qw(Class::MOP::Object); -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; __PACKAGE__->meta->add_attribute('name' => (reader => 'name')); diff --git a/lib/Moose/Meta/TypeConstraint/Class.pm b/lib/Moose/Meta/TypeConstraint/Class.pm index 931ef32..b116bee 100644 --- a/lib/Moose/Meta/TypeConstraint/Class.pm +++ b/lib/Moose/Meta/TypeConstraint/Class.pm @@ -7,7 +7,8 @@ use metaclass; use Scalar::Util 'blessed'; use Moose::Util::TypeConstraints (); -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Meta/TypeConstraint/Enum.pm b/lib/Moose/Meta/TypeConstraint/Enum.pm index 65d8a56..ee5b5fd 100644 --- a/lib/Moose/Meta/TypeConstraint/Enum.pm +++ b/lib/Moose/Meta/TypeConstraint/Enum.pm @@ -6,7 +6,8 @@ use metaclass; use Moose::Util::TypeConstraints (); -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Meta/TypeConstraint/Parameterizable.pm b/lib/Moose/Meta/TypeConstraint/Parameterizable.pm index 4c806d3..19d7d65 100644 --- a/lib/Moose/Meta/TypeConstraint/Parameterizable.pm +++ b/lib/Moose/Meta/TypeConstraint/Parameterizable.pm @@ -4,7 +4,8 @@ use strict; use warnings; use metaclass; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Meta/TypeConstraint/Parameterized.pm b/lib/Moose/Meta/TypeConstraint/Parameterized.pm index fe0d83a..b679fd2 100644 --- a/lib/Moose/Meta/TypeConstraint/Parameterized.pm +++ b/lib/Moose/Meta/TypeConstraint/Parameterized.pm @@ -8,7 +8,8 @@ use Scalar::Util 'blessed'; use Carp 'confess'; use Moose::Util::TypeConstraints; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Meta/TypeConstraint/Registry.pm b/lib/Moose/Meta/TypeConstraint/Registry.pm index b4229c1..0607142 100644 --- a/lib/Moose/Meta/TypeConstraint/Registry.pm +++ b/lib/Moose/Meta/TypeConstraint/Registry.pm @@ -8,7 +8,8 @@ use metaclass; use Scalar::Util 'blessed'; use Carp 'confess'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Class::MOP::Object'; diff --git a/lib/Moose/Meta/TypeConstraint/Role.pm b/lib/Moose/Meta/TypeConstraint/Role.pm index f589217..140c545 100644 --- a/lib/Moose/Meta/TypeConstraint/Role.pm +++ b/lib/Moose/Meta/TypeConstraint/Role.pm @@ -7,7 +7,8 @@ use metaclass; use Scalar::Util 'blessed'; use Moose::Util::TypeConstraints (); -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Meta/TypeConstraint/Union.pm b/lib/Moose/Meta/TypeConstraint/Union.pm index 54c59f6..ee1ec91 100644 --- a/lib/Moose/Meta/TypeConstraint/Union.pm +++ b/lib/Moose/Meta/TypeConstraint/Union.pm @@ -7,7 +7,8 @@ use metaclass; use Moose::Meta::TypeCoercion::Union; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::TypeConstraint'; diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index e0f4e81..8dc841c 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -9,7 +9,8 @@ use if ( not our $__mx_is_compiled ), metaclass => 'Moose::Meta::Class'; use Carp 'confess'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; sub new { diff --git a/lib/Moose/Role.pm b/lib/Moose/Role.pm index c1ba222..318fade 100644 --- a/lib/Moose/Role.pm +++ b/lib/Moose/Role.pm @@ -10,7 +10,8 @@ use Carp 'confess', 'croak'; use Data::OptList; use Sub::Exporter; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use Moose (); diff --git a/lib/Moose/Util.pm b/lib/Moose/Util.pm index db59d2f..b5bed65 100644 --- a/lib/Moose/Util.pm +++ b/lib/Moose/Util.pm @@ -8,7 +8,8 @@ use Scalar::Util 'blessed'; use Carp 'confess'; use Class::MOP 0.56; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; my @exports = qw[ diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 26a3358..1543efc 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -8,7 +8,8 @@ use Carp 'confess'; use Scalar::Util 'blessed'; use Moose::Exporter; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; ## -------------------------------------------------------- diff --git a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm index b995792..00dfae7 100644 --- a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm +++ b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm @@ -5,7 +5,8 @@ use warnings; use Scalar::Util 'blessed', 'looks_like_number'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; sub Value { defined($_[0]) && !ref($_[0]) } diff --git a/lib/Test/Moose.pm b/lib/Test/Moose.pm index 1d86a95..244d3ad 100644 --- a/lib/Test/Moose.pm +++ b/lib/Test/Moose.pm @@ -8,7 +8,8 @@ use Test::Builder; use Moose::Util 'does_role', 'find_meta'; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; my @exports = qw[ diff --git a/lib/oose.pm b/lib/oose.pm index c490daa..4346764 100644 --- a/lib/oose.pm +++ b/lib/oose.pm @@ -5,7 +5,8 @@ use warnings; use Class::MOP; -our $VERSION = '0.56'; +our $VERSION = '0.55_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; BEGIN {