Revision history for Perl extension Moose-Policy
+0.02 Sun. Nov. 5, 2006
+ - We removed UNIVERSAL::require in Moose recently, and
+ this module was breaking beacuse of that. It is now
+ fixed.
+
0.01 Wed. Aug. 9, 2006
- module created by Stevan Little and Eric Willhelm,
with input form Matt Trout and the #moose crew.
\ No newline at end of file
-Moose::Policy version 0.01
+Moose::Policy version 0.02
===========================
See the individual module documentation for more information
use strict;
use warnings;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use Moose ();
use Carp 'confess';
my $policy = shift || return;
unless (Moose::_is_class_already_loaded($policy)) {
- ($policy->require) or confess "Could not load policy module " .
- "'$policy' because : $UNIVERSAL::require::ERROR";
+ # otherwise require it ...
+ my $file = $policy . '.pm';
+ $file =~ s{::}{/}g;
+ eval { CORE::require($file) };
+ confess "Could not load policy module " .
+ "'$policy' because : $UNIVERSAL::require::ERROR"
+ if $@;
}
my $package = caller();
Stevan Little E<lt>stevan@iinteractive.comE<gt>
-Eric Wilhelm E<lt>...E<gt>
+Eric Wilhelm
=head1 COPYRIGHT AND LICENSE