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