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