Store the role which first defines an attribute, and pass that along when cloning.
[gitmo/Moose.git] / inc / GatherDir.pm
CommitLineData
a83cf79c 1package inc::GatherDir;
2
3use Moose;
4
5extends 'Dist::Zilla::Plugin::GatherDir';
6
7around _file_from_filename => sub {
8 my $orig = shift;
9 my $self = shift;
10 my $file = $self->$orig(@_);
5d9b3480 11 return $file if $file->name =~ m+^t/recipes/basics_recipe10\.t+;
12 return () if $file->name =~ m+^t/recipes+;
a83cf79c 13 return $file;
14};
15
161;