deprecate non-arrayref enum and duck_type
[gitmo/Moose.git] / lib / Moose / Deprecated.pm
index c7b09af..b371496 100644 (file)
@@ -3,19 +3,36 @@ 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 => {
+    'non-arrayref form of enum'         => '2.0700',
+    'non-arrayref form of duck_type'    => '2.0700',
+    '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;
+
+# ABSTRACT: Manages deprecation warnings for Moose
+
+__END__
+
+=pod
+
+=head1 DESCRIPTION
+
+    use Moose::Deprecated -api_version => $version;
+
+=head1 FUNCTIONS
+
+This module manages deprecation warnings for features that have been
+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<Moose::Deprecated>.
+
+=cut