X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole%2FApplication.pm;h=49775b00c2772f97b7df4441c58b3d5747b9bf73;hb=55d05fb16429c2150b5337b1a0130ae334e129d0;hp=f261e0d294b7c0db58f0c58f36fbed97301c49fc;hpb=45160c4b37efc1dce63d008c7a734d8250fb714c;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role/Application.pm b/lib/Moose/Meta/Role/Application.pm index f261e0d..49775b0 100644 --- a/lib/Moose/Meta/Role/Application.pm +++ b/lib/Moose/Meta/Role/Application.pm @@ -4,7 +4,7 @@ use strict; use warnings; use metaclass; -our $VERSION = '0.99'; +our $VERSION = '1.12'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -23,6 +23,14 @@ __PACKAGE__->meta->add_attribute('method_aliases' => ( sub new { my ($class, %params) = @_; + if ( exists $params{excludes} || exists $params{alias} ) { + # Moose::Deprecated::deprecated( + # feature => 'alias or excludes', + # message => + # "The alias and excludes options for role application have been renamed -alias and -excludes" + # ); + } + if ( exists $params{excludes} && !exists $params{'-excludes'} ) { $params{'-excludes'} = delete $params{excludes}; }