1894a27f1a0d937af813dd2670cb3c27634820e6
[gitmo/Moose.git] / lib / Moose / Deprecated.pm
1 package Moose::Deprecated;
2
3 use strict;
4 use warnings;
5
6 our $VERSION = '1.11';
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 use Package::DeprecationManager -deprecations => {
11     'coerce without coercion' => '1.08',
12     'pre-0.94 MetaRole API'   => '0.94',
13     'alias or excludes'       => '0.89',
14     'Role type'               => '0.84',
15     'subtype without sugar'   => '0.72',
16     'type without sugar'      => '0.72',
17     'Moose::init_meta'        => '0.56',
18     },
19     -ignore => [
20     qw( Moose
21         Moose::Exporter
22         Moose::Meta::Attribute
23         Moose::Meta::Class
24         Moose::Util::MetaRole
25         )
26     ],
27     ;
28
29 1;
30
31 __END__
32
33 =pod
34
35 =head1 NAME 
36
37 Moose::Deprecated - Manages deprecation warnings for Moose
38
39 =head1 DESCRIPTION
40
41     use Moose::Deprecated -api_version => $version;
42
43 =head1 FUNCTIONS
44
45 This module manages deprecation warnings for features that have been
46 deprecated in Moose.
47
48 If you specify C<< -api_version => $version >>, you can use deprecated features
49 without warnings. Note that this special treatment is limited to the package
50 that loads C<Moose::Deprecated>.
51
52 =head1 AUTHORS
53
54 Dave Rolsky E<lt>autarch@urth.orgE<gt>
55
56 =head1 COPYRIGHT AND LICENSE
57
58 Copyright 2006-2010 by Infinity Interactive, Inc.
59
60 L<http://www.iinteractive.com>
61
62 This library is free software; you can redistribute it and/or modify
63 it under the same terms as Perl itself.
64
65 =cut