projects
/
gitmo/MooseX-Getopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
04dc085
)
make ::Strict work with the trait stuff
Jesse Luehrs [Fri, 4 Jun 2010 19:31:03 +0000 (14:31 -0500)]
lib/MooseX/Getopt/Strict.pm
patch
|
blob
|
blame
|
history
t/005_strict.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Getopt/Strict.pm
b/lib/MooseX/Getopt/Strict.pm
index
f845d69
..
9b3efac
100644
(file)
--- a/
lib/MooseX/Getopt/Strict.pm
+++ b/
lib/MooseX/Getopt/Strict.pm
@@
-7,8
+7,8
@@
with 'MooseX::Getopt';
around '_compute_getopt_attrs' => sub {
my $next = shift;
my ( $class, @args ) = @_;
- grep {
- $_->isa("MooseX::Getopt::Meta::Attribute")
+ grep {
+ $_->does("MooseX::Getopt::Meta::Attribute::Trait")
} $class->$next(@args);
};
diff --git
a/t/005_strict.t
b/t/005_strict.t
index
206cb64
..
dd4c6c3
100644
(file)
--- a/
t/005_strict.t
+++ b/
t/005_strict.t
@@
-34,7
+34,7
@@
BEGIN {
);
has 'horse' => (
- metaclass => 'Getopt',
+ traits => ['Getopt'],
is => 'ro',
isa => 'Str',
default => 'bray',