X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FDeprecated.pm;h=1df1f05f1e096190505a6511c6b815b86b8a27db;hb=7ec88c1526c32dd5c4045132b745687a1bd2d311;hp=485f2d934e901a3425bd40df8f3bcf79fbcf9b16;hpb=7ebd38dbcc0501178b04e9d62653cc28828c0810;p=gitmo%2FMoose.git diff --git a/lib/Moose/Deprecated.pm b/lib/Moose/Deprecated.pm index 485f2d9..1df1f05 100644 --- a/lib/Moose/Deprecated.pm +++ b/lib/Moose/Deprecated.pm @@ -3,19 +3,13 @@ package Moose::Deprecated; use strict; use warnings; -our $VERSION = '1.08'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - -use Package::DeprecationManager -deprecations => { - 'pre-0.94 MetaRole API' => '0.93', - 'Moose::Exporter with_caller' => '0.89', - 'Role type' => '0.84', - 'subtype without sugar' => '0.72', - 'type without sugar' => '0.72', - 'Moose::init_meta' => '0.56', +use Package::DeprecationManager 0.07 -deprecations => { + 'optimized type constraint sub ref' => '2.0000', + 'default is for Native Trait' => '1.14', + 'default default for Native Trait' => '1.14', + 'coerce without coercion' => '1.08', }, - -ignore => [qw( Moose Moose::Exporter Moose::Util::MetaRole )], + -ignore => [qr/^(?:Class::MOP|Moose)(?:::)?/], ; 1; @@ -39,19 +33,6 @@ deprecated in Moose. If you specify C<< -api_version => $version >>, you can use deprecated features without warnings. Note that this special treatment is limited to the package -that loads C. - -=head1 AUTHORS - -Dave Rolsky Eautarch@urth.orgE - -=head1 COPYRIGHT AND LICENSE - -Copyright 2006-2010 by Infinity Interactive, Inc. - -L - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. +that loads C. =cut