From ab0ff3003d7e068161496b3fff36f39c182abd0b Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Tue, 29 Mar 2022 20:09:11 -0600 Subject: [PATCH] Version 0.010 --- Changes | 4 +++ LICENSE | 12 ++++----- MANIFEST | 6 ++--- META.json | 15 ++++++----- META.yml | 13 +++++----- Makefile.PL | 6 ++--- README | 10 ++++++-- lib/Dist/Zilla/PluginBundle/Author/CCM.pm | 31 +++++++++++++++++++---- lib/Pod/Weaver/PluginBundle/Author/CCM.pm | 6 ++--- t/00-report-prereqs.t | 4 +-- t/{01-basic.t => basic.t} | 0 xt/{release => author}/distmeta.t | 0 xt/author/eol.t | 6 ++--- xt/author/minimum-version.t | 4 +-- xt/author/no-tabs.t | 6 ++--- 15 files changed, 78 insertions(+), 45 deletions(-) rename t/{01-basic.t => basic.t} (100%) rename xt/{release => author}/distmeta.t (100%) diff --git a/Changes b/Changes index 892750b..49e2f03 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Dist-Zilla-PluginBundle-Author-CCM. +0.010 2022-03-29 20:09:03-06:00 America/Denver + + * Add no_index option so MetaNoIndex is easily configurable + 0.009 2018-11-22 22:46:42-07:00 MST7MDT * Remove use of DZP::TravisYML and DZP::ReversionOnRelease diff --git a/LICENSE b/LICENSE index 1935df6..99e5ee2 100644 --- a/LICENSE +++ b/LICENSE @@ -292,21 +292,21 @@ Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through - textual modification. + textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright - Holder. + Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for - the package. + the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the - computing community at large as a market that must bear the fee.) + computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they - received it. + received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you @@ -373,7 +373,7 @@ products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End diff --git a/MANIFEST b/MANIFEST index 1c61b11..ad13e25 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.024. Changes LICENSE MANIFEST @@ -11,9 +11,10 @@ lib/Pod/Weaver/PluginBundle/Author/CCM.pm t/00-compile.t t/00-report-prereqs.dd t/00-report-prereqs.t -t/01-basic.t +t/basic.t xt/author/clean-namespaces.t xt/author/critic.t +xt/author/distmeta.t xt/author/eol.t xt/author/minimum-version.t xt/author/no-tabs.t @@ -22,4 +23,3 @@ xt/author/pod-no404s.t xt/author/pod-syntax.t xt/author/portability.t xt/release/cpan-changes.t -xt/release/distmeta.t diff --git a/META.json b/META.json index d0371a1..be91f42 100644 --- a/META.json +++ b/META.json @@ -1,10 +1,10 @@ { "abstract" : "A plugin bundle for distributions built by CCM", "author" : [ - "Charles McGarvey " + "Charles McGarvey " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010", "keywords" : [ "dzil", "author", @@ -158,11 +158,11 @@ "provides" : { "Dist::Zilla::PluginBundle::Author::CCM" : { "file" : "lib/Dist/Zilla/PluginBundle/Author/CCM.pm", - "version" : "0.009" + "version" : "0.010" }, "Pod::Weaver::PluginBundle::Author::CCM" : { "file" : "lib/Pod/Weaver/PluginBundle/Author/CCM.pm", - "version" : "0.009" + "version" : "0.010" } }, "release_status" : "stable", @@ -177,9 +177,10 @@ "web" : "https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM" } }, - "version" : "0.009", + "version" : "0.010", "x_authority" : "cpan:CCM", - "x_generated_by_perl" : "v5.28.0", - "x_serialization_backend" : "Cpanel::JSON::XS version 4.07" + "x_generated_by_perl" : "v5.34.1", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.27", + "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } diff --git a/META.yml b/META.yml index 9a1faf3..1dd1bb5 100644 --- a/META.yml +++ b/META.yml @@ -1,7 +1,7 @@ --- abstract: 'A plugin bundle for distributions built by CCM' author: - - 'Charles McGarvey ' + - 'Charles McGarvey ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' @@ -11,7 +11,7 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010' keywords: - dzil - author @@ -33,10 +33,10 @@ no_index: provides: Dist::Zilla::PluginBundle::Author::CCM: file: lib/Dist/Zilla/PluginBundle/Author/CCM.pm - version: '0.009' + version: '0.010' Pod::Weaver::PluginBundle::Author::CCM: file: lib/Pod/Weaver/PluginBundle/Author/CCM.pm - version: '0.009' + version: '0.010' recommends: Dist::Zilla::Plugin::FakeRelease: '0' Dist::Zilla::Plugin::Prereqs::FromCPANfile: '0' @@ -122,7 +122,8 @@ resources: bugtracker: https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM/issues homepage: https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM repository: https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM.git -version: '0.009' +version: '0.010' x_authority: cpan:CCM -x_generated_by_perl: v5.28.0 +x_generated_by_perl: v5.34.1 x_serialization_backend: 'YAML::Tiny version 1.73' +x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' diff --git a/Makefile.PL b/Makefile.PL index e188eac..e103914 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.024. use strict; use warnings; @@ -8,7 +8,7 @@ use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "A plugin bundle for distributions built by CCM", - "AUTHOR" => "Charles McGarvey ", + "AUTHOR" => "Charles McGarvey ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, @@ -101,7 +101,7 @@ my %WriteMakefileArgs = ( "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "0.009", + "VERSION" => "0.010", "test" => { "TESTS" => "t/*.t" } diff --git a/README b/README index a79958f..4078921 100644 --- a/README +++ b/README @@ -5,7 +5,7 @@ NAME VERSION - version 0.009 + version 0.010 SYNOPSIS @@ -117,6 +117,12 @@ ATTRIBUTES Specify the minimum perl version. Defaults to 5.10.1. + no_index + + Set directories to not index. + + Default: + authority Specify the release authority. Defaults to cpan:CCM. @@ -159,7 +165,7 @@ BUGS AUTHOR - Charles McGarvey + Charles McGarvey COPYRIGHT AND LICENSE 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 diff --git a/lib/Pod/Weaver/PluginBundle/Author/CCM.pm b/lib/Pod/Weaver/PluginBundle/Author/CCM.pm index e355c61..ec44cf2 100644 --- a/lib/Pod/Weaver/PluginBundle/Author/CCM.pm +++ b/lib/Pod/Weaver/PluginBundle/Author/CCM.pm @@ -6,7 +6,7 @@ use 5.008; use warnings; use strict; -our $VERSION = '0.009'; # VERSION +our $VERSION = '0.010'; # VERSION use Pod::Weaver::Config::Assembler; use namespace::autoclean; @@ -105,7 +105,7 @@ Pod::Weaver::PluginBundle::Author::CCM - A plugin bundle for pod woven by CCM =head1 VERSION -version 0.009 +version 0.010 =head1 SYNOPSIS @@ -160,7 +160,7 @@ feature. =head1 AUTHOR -Charles McGarvey +Charles McGarvey =head1 COPYRIGHT AND LICENSE diff --git a/t/00-report-prereqs.t b/t/00-report-prereqs.t index c72183a..c3a94ca 100644 --- a/t/00-report-prereqs.t +++ b/t/00-report-prereqs.t @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 use Test::More tests => 1; @@ -188,6 +188,6 @@ if ( @dep_errors ) { ); } -pass; +pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: diff --git a/t/01-basic.t b/t/basic.t similarity index 100% rename from t/01-basic.t rename to t/basic.t diff --git a/xt/release/distmeta.t b/xt/author/distmeta.t similarity index 100% rename from xt/release/distmeta.t rename to xt/author/distmeta.t diff --git a/xt/author/eol.t b/xt/author/eol.t index e0960ee..15dbb41 100644 --- a/xt/author/eol.t +++ b/xt/author/eol.t @@ -12,9 +12,10 @@ my @files = ( 't/00-compile.t', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', - 't/01-basic.t', + 't/basic.t', 'xt/author/clean-namespaces.t', 'xt/author/critic.t', + 'xt/author/distmeta.t', 'xt/author/eol.t', 'xt/author/minimum-version.t', 'xt/author/no-tabs.t', @@ -22,8 +23,7 @@ my @files = ( 'xt/author/pod-no404s.t', 'xt/author/pod-syntax.t', 'xt/author/portability.t', - 'xt/release/cpan-changes.t', - 'xt/release/distmeta.t' + 'xt/release/cpan-changes.t' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; diff --git a/xt/author/minimum-version.t b/xt/author/minimum-version.t index 2b484b2..1e5e5b4 100644 --- a/xt/author/minimum-version.t +++ b/xt/author/minimum-version.t @@ -1,6 +1,6 @@ -#!perl +use strict; +use warnings; use Test::More; - use Test::MinimumVersion; all_minimum_version_ok( qq{5.14.0} ); diff --git a/xt/author/no-tabs.t b/xt/author/no-tabs.t index 41ea6ff..e211ec5 100644 --- a/xt/author/no-tabs.t +++ b/xt/author/no-tabs.t @@ -12,9 +12,10 @@ my @files = ( 't/00-compile.t', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', - 't/01-basic.t', + 't/basic.t', 'xt/author/clean-namespaces.t', 'xt/author/critic.t', + 'xt/author/distmeta.t', 'xt/author/eol.t', 'xt/author/minimum-version.t', 'xt/author/no-tabs.t', @@ -22,8 +23,7 @@ my @files = ( 'xt/author/pod-no404s.t', 'xt/author/pod-syntax.t', 'xt/author/portability.t', - 'xt/release/cpan-changes.t', - 'xt/release/distmeta.t' + 'xt/release/cpan-changes.t' ); notabs_ok($_) foreach @files; -- 2.44.0