X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FPolicy.pm;h=7340f44bd5e79f7ce088f648005d961ce0d0a4d1;hb=61b270e45616813d5dbca23f559f296b16b9a634;hp=1ca2179d3d37fc0c8bedac69907587003e5e332a;hpb=bae6d4c347ee9329ba96744f33fc1784eb85fcc2;p=gitmo%2FMoose-Policy.git diff --git a/lib/Moose/Policy.pm b/lib/Moose/Policy.pm index 1ca2179..7340f44 100644 --- a/lib/Moose/Policy.pm +++ b/lib/Moose/Policy.pm @@ -1,7 +1,7 @@ package Moose::Policy; use Moose 'confess', 'blessed'; -our $VERSION = '0.03'; +our $VERSION = '0.05'; our $AUTHORITY = 'cpan:STEVAN'; sub import { @@ -13,7 +13,7 @@ sub import { # otherwise require it ... eval { Class::MOP::load_class($policy) }; confess "Could not load policy module '$policy' because : $@" - if $@; + if $@; } my $package = caller(); @@ -66,6 +66,17 @@ Moose::Policy - Moose-mounted police # Foo now has (get, set)_bar methods as well as get_baz +=head1 DEPRECATION NOTICE + +B. + +L replaces the L module. The +other policies included in this distribution do not yet have standalone MooseX +modules, as of November, 2010. + +This module has not passed its tests since Moose 1.05, and will probably not +be fixed. + =head1 DESCRIPTION This module allows you to specify your project-wide or even company-wide @@ -120,7 +131,7 @@ itself to allow Moose policies to be inherited. =head1 THE POLICY -A Policy is set by passing C a package name. This +A Policy is set by passing C a package name. This package is then queried for what metaclasses it should use. The possible metaclass values are: