Permalink
Browse files

Don't require the package attribute when a pre-built context is passe…

…d in.
  • Loading branch information...
1 parent 16e77c2 commit 61d4f793ea2832a2b7a07c39bb4bfecb08a7c454 @rafl committed Aug 13, 2009
Showing with 5 additions and 3 deletions.
  1. +1 −0 Makefile.PL
  2. +4 −3 lib/MooseX/Method/Signatures.pm
View
@@ -12,6 +12,7 @@ requires 'Parse::Method::Signatures' => '1.003004';
requires 'Devel::Declare' => '0.005009';
requires 'Moose::Util::TypeConstraints';
requires 'Moose' => '0.63';
+requires 'MooseX::LazyRequire';
requires 'MooseX::Meta::TypeConstraint::ForceCoercion';
requires 'MooseX::Types' => '0.09';
requires 'MooseX::Types::Moose';
@@ -7,6 +7,7 @@ use Moose;
use Devel::Declare ();
use B::Hooks::EndOfScope;
use Moose::Meta::Class;
+use MooseX::LazyRequire;
use MooseX::Types::Moose qw/Str Bool CodeRef/;
use Text::Balanced qw/extract_quotelike/;
use MooseX::Method::Signatures::Meta::Method;
@@ -21,9 +22,9 @@ use namespace::autoclean;
our $VERSION = '0.16';
has package => (
- is => 'ro',
- isa => Str,
- required => 1,
+ is => 'ro',
+ isa => Str,
+ lazy_require => 1,
);
has context => (

0 comments on commit 61d4f79

Please sign in to comment.