X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FDist%2FZilla%2FPluginBundle%2FAuthor%2FCCM.pm;h=8e2598e6d1d305b62bdc55b01e751edf4a72f84e;hb=ab0ff3003d7e068161496b3fff36f39c182abd0b;hp=9fab751464ad47bb74ef5688b1ad530a03c578db;hpb=3d2c8852527c184ec5f65468e4c732e81bdaff90;p=chaz%2Fp5-Dist-Zilla-PluginBundle-Author-CCM diff --git a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm index 9fab751..8e2598e 100644 --- a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm +++ b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm @@ -7,7 +7,7 @@ use 5.014; use warnings; use strict; -our $VERSION = '0.009'; # VERSION +our $VERSION = '0.010'; # VERSION use Dist::Zilla::Util; use Moose; @@ -21,7 +21,22 @@ has max_target_perl => ( lazy => 1, default => sub { my $self = shift; - $self->payload->{'Test::MinimumVersion.max_target_perl'} // $self->payload->{max_target_perl} // '5.10.1'; + $self->payload->{'Test::MinimumVersion.max_target_perl'} + // $self->payload->{max_target_perl} + // '5.10.1'; + }, +); + + +has no_index => ( + is => 'ro', + isa => 'ArrayRef', + lazy => 1, + default => sub { + my $self = shift; + [split(/\s+/, $self->payload->{'MetaNoIndex.directories'} + // $self->payload->{no_index} + // 'eg share shares t xt')]; }, ); @@ -68,7 +83,7 @@ sub configure { my @network_plugins = qw(Git::Push Test::Pod::No404s UploadToCPAN); my @gather_exclude = (@copy_from_build, qw(README.md)); my @gather_prune = qw(dist.ini); - my @no_index = qw(eg share shares t xt); + my @no_index = @{$self->no_index}; my @allow_dirty = (@copy_from_build, qw(Changes LICENSE README.md)); my @git_remotes = qw(github origin); my @check_files = qw(:InstallModules :ExecFiles :TestFiles :ExtraTestFiles); @@ -180,7 +195,7 @@ Dist::Zilla::PluginBundle::Author::CCM - A plugin bundle for distributions built =head1 VERSION -version 0.009 +version 0.010 =head1 SYNOPSIS @@ -292,6 +307,12 @@ You probably don't want to use this. Specify the minimum perl version. Defaults to C<5.10.1>. +=head2 no_index + +Set directories to not index. + +Default: + =head2 authority Specify the release authority. Defaults to C. @@ -351,7 +372,7 @@ feature. =head1 AUTHOR -Charles McGarvey +Charles McGarvey =head1 COPYRIGHT AND LICENSE