From 8be09345f76a4b689e61c5bfc7b880119817d46f Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Sat, 26 Nov 2016 00:10:06 -0700 Subject: [PATCH] Version 0.003 --- Changes | 5 +++++ META.json | 7 ++++--- META.yml | 7 ++++--- Makefile.PL | 4 +++- README | 6 +++++- cpanfile | 1 + lib/Dist/Zilla/PluginBundle/Author/CCM.pm | 21 ++++++++++++++++++--- lib/Pod/Weaver/PluginBundle/Author/CCM.pm | 4 ++-- t/00-report-prereqs.dd | 1 + 9 files changed, 43 insertions(+), 13 deletions(-) diff --git a/Changes b/Changes index 82b35ad..310549d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ Revision history for Dist-Zilla-PluginBundle-Author-CCM. +0.003 2016-11-26 00:09:53-07:00 MST7MDT + + * Set default authority to cpan:CCM + * Add Test::CPAN::Meta to prereqs + 0.002 2016-11-25 22:12:27-07:00 MST7MDT * Add DZIL_NO_UPLOAD to enable no_upload mode diff --git a/META.json b/META.json index ea2a3e6..bb30942 100644 --- a/META.json +++ b/META.json @@ -131,6 +131,7 @@ "Pod::Weaver::Section::Name" : "0", "Pod::Weaver::Section::Region" : "0", "Pod::Weaver::Section::Version" : "0", + "Test::CPAN::Meta" : "0", "namespace::autoclean" : "0", "strict" : "0", "warnings" : "0" @@ -154,11 +155,11 @@ "provides" : { "Dist::Zilla::PluginBundle::Author::CCM" : { "file" : "lib/Dist/Zilla/PluginBundle/Author/CCM.pm", - "version" : "0.002" + "version" : "0.003" }, "Pod::Weaver::PluginBundle::Author::CCM" : { "file" : "lib/Pod/Weaver/PluginBundle/Author/CCM.pm", - "version" : "0.002" + "version" : "0.003" } }, "release_status" : "stable", @@ -173,7 +174,7 @@ "web" : "https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM" } }, - "version" : "0.002", + "version" : "0.003", "x_authority" : "cpan:CCM", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0224" } diff --git a/META.yml b/META.yml index 00f55f3..7737f1e 100644 --- a/META.yml +++ b/META.yml @@ -35,10 +35,10 @@ no_index: provides: Dist::Zilla::PluginBundle::Author::CCM: file: lib/Dist/Zilla/PluginBundle/Author/CCM.pm - version: '0.002' + version: '0.003' Pod::Weaver::PluginBundle::Author::CCM: file: lib/Pod/Weaver/PluginBundle/Author/CCM.pm - version: '0.002' + version: '0.003' requires: Dist::Zilla: '5.038' Dist::Zilla::Plugin::Authority: '0' @@ -114,6 +114,7 @@ requires: Pod::Weaver::Section::Name: '0' Pod::Weaver::Section::Region: '0' Pod::Weaver::Section::Version: '0' + Test::CPAN::Meta: '0' namespace::autoclean: '0' strict: '0' warnings: '0' @@ -121,6 +122,6 @@ 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.002' +version: '0.003' x_authority: cpan:CCM x_serialization_backend: 'YAML::Tiny version 1.69' diff --git a/Makefile.PL b/Makefile.PL index 4e001c5..be7dcd2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -91,6 +91,7 @@ my %WriteMakefileArgs = ( "Pod::Weaver::Section::Name" => 0, "Pod::Weaver::Section::Region" => 0, "Pod::Weaver::Section::Version" => 0, + "Test::CPAN::Meta" => 0, "namespace::autoclean" => 0, "strict" => 0, "warnings" => 0 @@ -103,7 +104,7 @@ my %WriteMakefileArgs = ( "Test::More" => 0, "blib" => "1.01" }, - "VERSION" => "0.002", + "VERSION" => "0.003", "test" => { "TESTS" => "t/*.t" } @@ -189,6 +190,7 @@ my %FallbackPrereqs = ( "Pod::Weaver::Section::Name" => 0, "Pod::Weaver::Section::Region" => 0, "Pod::Weaver::Section::Version" => 0, + "Test::CPAN::Meta" => 0, "Test::More" => 0, "blib" => "1.01", "namespace::autoclean" => 0, diff --git a/README b/README index 5c5a8ce..4a358ad 100644 --- a/README +++ b/README @@ -5,7 +5,7 @@ NAME VERSION - version 0.002 + version 0.003 SYNOPSIS @@ -114,6 +114,10 @@ DESCRIPTION ATTRIBUTES + authority + + Specify the release authority. Defaults to cpan:CCM. + installer Specify which installer to use, such as: diff --git a/cpanfile b/cpanfile index ba07b62..07d5866 100644 --- a/cpanfile +++ b/cpanfile @@ -70,3 +70,4 @@ requires 'Pod::Weaver::Section::Legal'; requires 'Pod::Weaver::Section::Name'; requires 'Pod::Weaver::Section::Region'; requires 'Pod::Weaver::Section::Version'; +requires 'Test::CPAN::Meta'; diff --git a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm index 411f4ac..206eb83 100644 --- a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm +++ b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm @@ -6,13 +6,24 @@ package Dist::Zilla::PluginBundle::Author::CCM; use warnings; use strict; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION use Dist::Zilla::Util; use Moose; use namespace::autoclean; +has authority => ( + is => 'ro', + isa => 'Str', + lazy => 1, + default => sub { + my $self = shift; + $self->payload->{'Authority.authority'} // $self->payload->{authority} // 'cpan:CCM'; + }, +); + + has installer => ( is => 'ro', isa => 'Str', @@ -88,7 +99,7 @@ sub configure { ['Test::ReportPrereqs'], # METADATA - ['Authority' => {do_munging => 0}], + ['Authority' => {authority => $self->authority, do_munging => 0}], ['MetaJSON'], ['MetaYAML'], ['MetaNoIndex' => {directory => [@no_index]}], @@ -156,7 +167,7 @@ Dist::Zilla::PluginBundle::Author::CCM - A plugin bundle for distributions built =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS @@ -265,6 +276,10 @@ You probably don't want to use this. =head1 ATTRIBUTES +=head2 authority + +Specify the release authority. Defaults to C. + =head2 installer Specify which installer to use, such as: diff --git a/lib/Pod/Weaver/PluginBundle/Author/CCM.pm b/lib/Pod/Weaver/PluginBundle/Author/CCM.pm index 0b8d002..dd4c2c5 100644 --- a/lib/Pod/Weaver/PluginBundle/Author/CCM.pm +++ b/lib/Pod/Weaver/PluginBundle/Author/CCM.pm @@ -5,7 +5,7 @@ package Pod::Weaver::PluginBundle::Author::CCM; use warnings; use strict; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION use Pod::Weaver::Config::Assembler; use namespace::autoclean; @@ -104,7 +104,7 @@ Pod::Weaver::PluginBundle::Author::CCM - A plugin bundle for pod woven by CCM =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd index 887ad61..ce85a67 100644 --- a/t/00-report-prereqs.dd +++ b/t/00-report-prereqs.dd @@ -100,6 +100,7 @@ do { my $x = { 'Pod::Weaver::Section::Name' => '0', 'Pod::Weaver::Section::Region' => '0', 'Pod::Weaver::Section::Version' => '0', + 'Test::CPAN::Meta' => '0', 'namespace::autoclean' => '0', 'strict' => '0', 'warnings' => '0' -- 2.44.0