Revision history for Dist-Zilla-PluginBundle-Author-CCM.
+0.002 2016-11-25 22:12:27-07:00 MST7MDT
+
+ * Add DZIL_NO_UPLOAD to enable no_upload mode
+ * Only rewrite repo README on release
+ * Use RunExtraTests instead of ExtraTests
+ * Use Bootstrap::lib
+ * Require Dist::Zilla 5.038 (for :ExtraTestFiles)
+
0.001 2016-11-25 18:28:13-07:00 MST7MDT
* Initial version
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/01-basic.t
-t/author-clean-namespaces.t
-t/author-critic.t
-t/author-eol.t
-t/author-no-tabs.t
-t/author-pod-coverage.t
-t/author-pod-no404s.t
-t/author-pod-syntax.t
-t/author-portability.t
-t/release-cpan-changes.t
-t/release-distmeta.t
+xt/author/clean-namespaces.t
+xt/author/critic.t
+xt/author/eol.t
+xt/author/no-tabs.t
+xt/author/pod-coverage.t
+xt/author/pod-no404s.t
+xt/author/pod-syntax.t
+xt/author/portability.t
+xt/release/cpan-changes.t
+xt/release/distmeta.t
"develop" : {
"requires" : {
"Dist::Zilla" : "5",
+ "Dist::Zilla::Plugin::Bootstrap::lib" : "0",
"Dist::Zilla::PluginBundle::Author::CCM" : "0",
+ "English" : "0",
"Pod::Coverage::TrustPod" : "0",
"Software::License::Perl_5" : "0",
"Test::CPAN::Changes" : "0.19",
"Test::CPAN::Meta" : "0",
"Test::CleanNamespaces" : "0.15",
"Test::EOL" : "0",
- "Test::More" : "0.88",
+ "Test::More" : "0.96",
"Test::NoTabs" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
},
"runtime" : {
"requires" : {
+ "Dist::Zilla" : "5.038",
"Dist::Zilla::Plugin::Authority" : "0",
"Dist::Zilla::Plugin::AutoPrereqs" : "0",
"Dist::Zilla::Plugin::BlockRelease" : "0",
"Dist::Zilla::Plugin::CopyFilesFromBuild" : "0",
"Dist::Zilla::Plugin::Encoding" : "0",
"Dist::Zilla::Plugin::ExecDir" : "0",
- "Dist::Zilla::Plugin::ExtraTests" : "0",
"Dist::Zilla::Plugin::FakeRelease" : "0",
"Dist::Zilla::Plugin::Git::Check" : "0",
"Dist::Zilla::Plugin::Git::Commit" : "0",
"Dist::Zilla::Plugin::PruneFiles" : "0",
"Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0",
"Dist::Zilla::Plugin::ReversionOnRelease" : "0",
+ "Dist::Zilla::Plugin::RunExtraTests" : "0",
"Dist::Zilla::Plugin::Test::CPAN::Changes" : "0",
"Dist::Zilla::Plugin::Test::CleanNamespaces" : "0",
"Dist::Zilla::Plugin::Test::Compile" : "0",
"provides" : {
"Dist::Zilla::PluginBundle::Author::CCM" : {
"file" : "lib/Dist/Zilla/PluginBundle/Author/CCM.pm",
- "version" : "0.001"
+ "version" : "0.002"
},
"Pod::Weaver::PluginBundle::Author::CCM" : {
"file" : "lib/Pod/Weaver/PluginBundle/Author/CCM.pm",
- "version" : "0.001"
+ "version" : "0.002"
}
},
"release_status" : "stable",
"web" : "https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM"
}
},
- "version" : "0.001",
+ "version" : "0.002",
"x_authority" : "cpan:CCM",
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0224"
}
provides:
Dist::Zilla::PluginBundle::Author::CCM:
file: lib/Dist/Zilla/PluginBundle/Author/CCM.pm
- version: '0.001'
+ version: '0.002'
Pod::Weaver::PluginBundle::Author::CCM:
file: lib/Pod/Weaver/PluginBundle/Author/CCM.pm
- version: '0.001'
+ version: '0.002'
requires:
+ Dist::Zilla: '5.038'
Dist::Zilla::Plugin::Authority: '0'
Dist::Zilla::Plugin::AutoPrereqs: '0'
Dist::Zilla::Plugin::BlockRelease: '0'
Dist::Zilla::Plugin::CopyFilesFromBuild: '0'
Dist::Zilla::Plugin::Encoding: '0'
Dist::Zilla::Plugin::ExecDir: '0'
- Dist::Zilla::Plugin::ExtraTests: '0'
Dist::Zilla::Plugin::FakeRelease: '0'
Dist::Zilla::Plugin::Git::Check: '0'
Dist::Zilla::Plugin::Git::Commit: '0'
Dist::Zilla::Plugin::PruneFiles: '0'
Dist::Zilla::Plugin::ReadmeAnyFromPod: '0'
Dist::Zilla::Plugin::ReversionOnRelease: '0'
+ Dist::Zilla::Plugin::RunExtraTests: '0'
Dist::Zilla::Plugin::Test::CPAN::Changes: '0'
Dist::Zilla::Plugin::Test::CleanNamespaces: '0'
Dist::Zilla::Plugin::Test::Compile: '0'
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.001'
+version: '0.002'
x_authority: cpan:CCM
x_serialization_backend: 'YAML::Tiny version 1.69'
"MIN_PERL_VERSION" => "5.006",
"NAME" => "Dist::Zilla::PluginBundle::Author::CCM",
"PREREQ_PM" => {
+ "Dist::Zilla" => "5.038",
"Dist::Zilla::Plugin::Authority" => 0,
"Dist::Zilla::Plugin::AutoPrereqs" => 0,
"Dist::Zilla::Plugin::BlockRelease" => 0,
"Dist::Zilla::Plugin::CopyFilesFromBuild" => 0,
"Dist::Zilla::Plugin::Encoding" => 0,
"Dist::Zilla::Plugin::ExecDir" => 0,
- "Dist::Zilla::Plugin::ExtraTests" => 0,
"Dist::Zilla::Plugin::FakeRelease" => 0,
"Dist::Zilla::Plugin::Git::Check" => 0,
"Dist::Zilla::Plugin::Git::Commit" => 0,
"Dist::Zilla::Plugin::PruneFiles" => 0,
"Dist::Zilla::Plugin::ReadmeAnyFromPod" => 0,
"Dist::Zilla::Plugin::ReversionOnRelease" => 0,
+ "Dist::Zilla::Plugin::RunExtraTests" => 0,
"Dist::Zilla::Plugin::Test::CPAN::Changes" => 0,
"Dist::Zilla::Plugin::Test::CleanNamespaces" => 0,
"Dist::Zilla::Plugin::Test::Compile" => 0,
"Test::More" => 0,
"blib" => "1.01"
},
- "VERSION" => "0.001",
+ "VERSION" => "0.002",
"test" => {
"TESTS" => "t/*.t"
}
my %FallbackPrereqs = (
+ "Dist::Zilla" => "5.038",
"Dist::Zilla::Plugin::Authority" => 0,
"Dist::Zilla::Plugin::AutoPrereqs" => 0,
"Dist::Zilla::Plugin::BlockRelease" => 0,
"Dist::Zilla::Plugin::CopyFilesFromBuild" => 0,
"Dist::Zilla::Plugin::Encoding" => 0,
"Dist::Zilla::Plugin::ExecDir" => 0,
- "Dist::Zilla::Plugin::ExtraTests" => 0,
"Dist::Zilla::Plugin::FakeRelease" => 0,
"Dist::Zilla::Plugin::Git::Check" => 0,
"Dist::Zilla::Plugin::Git::Commit" => 0,
"Dist::Zilla::Plugin::PruneFiles" => 0,
"Dist::Zilla::Plugin::ReadmeAnyFromPod" => 0,
"Dist::Zilla::Plugin::ReversionOnRelease" => 0,
+ "Dist::Zilla::Plugin::RunExtraTests" => 0,
"Dist::Zilla::Plugin::Test::CPAN::Changes" => 0,
"Dist::Zilla::Plugin::Test::CleanNamespaces" => 0,
"Dist::Zilla::Plugin::Test::Compile" => 0,
VERSION
- version 0.001
+ version 0.002
SYNOPSIS
[ReversionOnRelease]
prompt = 1
- [ExecDir]
- [ExtraTests]
-
; GATHER
[Git::GatherDir]
exclude_filename = LICENSE
[CopyFilesFromBuild]
copy = LICENSE
+ [ExecDir]
; PREREQS
[AutoPrereqs]
filename = README.md
locaton = root
type = markdown
+ phase = release
[ReadmeAnyFromPod]
filename = README
location = build
; RELEASE
[CheckChangesHasContent]
[Git::Check]
+ [RunExtraTests]
[TestRelease]
[ConfirmRelease]
[UploadToCPAN] ; disable with the "no_upload" attribute
no_upload
- Do not upload to CPAN.
+ Do not upload to CPAN or git push.
METHODS
# requires 'Badge::Depot::Plugin::Perl';
# requires 'Badge::Depot::Plugin::Travis';
# requires 'Pod::Weaver::Section::Badges';
+requires 'Dist::Zilla', '5.038';
requires 'Dist::Zilla::Plugin::Authority';
requires 'Dist::Zilla::Plugin::AutoPrereqs';
requires 'Dist::Zilla::Plugin::BlockRelease';
requires 'Dist::Zilla::Plugin::CopyFilesFromBuild';
requires 'Dist::Zilla::Plugin::Encoding';
requires 'Dist::Zilla::Plugin::ExecDir';
-requires 'Dist::Zilla::Plugin::ExtraTests';
requires 'Dist::Zilla::Plugin::FakeRelease';
requires 'Dist::Zilla::Plugin::Git::Check';
requires 'Dist::Zilla::Plugin::Git::Commit';
requires 'Dist::Zilla::Plugin::PruneFiles';
requires 'Dist::Zilla::Plugin::ReadmeAnyFromPod';
requires 'Dist::Zilla::Plugin::ReversionOnRelease';
+requires 'Dist::Zilla::Plugin::RunExtraTests';
requires 'Dist::Zilla::Plugin::Test::CPAN::Changes';
requires 'Dist::Zilla::Plugin::Test::CleanNamespaces';
requires 'Dist::Zilla::Plugin::Test::Compile';
use warnings;
use strict;
-our $VERSION = '0.001'; # VERSION
+our $VERSION = '0.002'; # VERSION
use Dist::Zilla::Util;
use Moose;
is => 'ro',
isa => 'Bool',
lazy => 1,
- default => 0,
+ default => sub { $ENV{DZIL_NO_UPLOAD} // shift->payload->{no_upload} // 0 },
);
sub configure {
my $self = shift;
+ if ($self->no_upload) {
+ print '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***', "\n";
+ }
+
my @copy_from_build = qw(LICENSE);
my @network_plugins = qw(Git::Push Test::Pod::No404s UploadToCPAN);
my @gather_exclude = (@copy_from_build, qw(README.md));
['NextRelease'],
['ReversionOnRelease' => {prompt => 1}],
- ['ExecDir'],
- ['ExtraTests'],
-
# GATHER
['Git::GatherDir' => {exclude_filename => [@gather_exclude]}],
['PruneCruft'],
['PruneFiles' => {filename => [@gather_prune]}],
['CopyFilesFromBuild' => {copy => [@copy_from_build]}],
+ ['ExecDir'],
# PREREQS
['AutoPrereqs'],
# GENERATE FILES
['License'],
- ['ReadmeAnyFromPod' => 'repo readme' => {filename => 'README.md', location => 'root', type => 'markdown'}],
+ ['ReadmeAnyFromPod' => 'repo readme' => {filename => 'README.md', location => 'root', type => 'markdown', phase => 'release'}],
['ReadmeAnyFromPod' => 'dist readme' => {filename => 'README', location => 'build', type => 'text'}],
['TravisYML'],
['Manifest'],
# RELEASE
['CheckChangesHasContent'],
['Git::Check' => {allow_dirty => [@allow_dirty], untracked_files => 'ignore'}],
+ ['RunExtraTests'],
['TestRelease'],
# ['ConfirmRelease'],
$self->no_upload ? ['FakeRelease'] : ['UploadToCPAN'],
['Git::Commit' => {allow_dirty => [@allow_dirty], commit_msg => 'Release %N %v%t%n%n%c'}],
['Git::CommitBuild' => {branch => '', release_branch => 'dist', release_message => 'Version %v%t'}],
['Git::Tag' => {tag_message => 'Version %v%t%n%n%c'}],
- ['Git::Push' => {push_to => 'origin master +master:refs/heads/release +dist', remotes_must_exist => 0}],
+ $self->no_upload ? () : ['Git::Push' => {push_to => 'origin master +master:refs/heads/release +dist', remotes_must_exist => 0}],
);
=head1 VERSION
-version 0.001
+version 0.002
=head1 SYNOPSIS
[ReversionOnRelease]
prompt = 1
- [ExecDir]
- [ExtraTests]
-
; GATHER
[Git::GatherDir]
exclude_filename = LICENSE
[CopyFilesFromBuild]
copy = LICENSE
+ [ExecDir]
; PREREQS
[AutoPrereqs]
filename = README.md
locaton = root
type = markdown
+ phase = release
[ReadmeAnyFromPod]
filename = README
location = build
; RELEASE
[CheckChangesHasContent]
[Git::Check]
+ [RunExtraTests]
[TestRelease]
[ConfirmRelease]
[UploadToCPAN] ; disable with the "no_upload" attribute
=head2 no_upload
-Do not upload to CPAN.
+Do not upload to CPAN or git push.
=head1 METHODS
use warnings;
use strict;
-our $VERSION = '0.001'; # VERSION
+our $VERSION = '0.002'; # VERSION
use Pod::Weaver::Config::Assembler;
use namespace::autoclean;
=head1 VERSION
-version 0.001
+version 0.002
=head1 SYNOPSIS
'develop' => {
'requires' => {
'Dist::Zilla' => '5',
+ 'Dist::Zilla::Plugin::Bootstrap::lib' => '0',
'Dist::Zilla::PluginBundle::Author::CCM' => '0',
+ 'English' => '0',
'Pod::Coverage::TrustPod' => '0',
'Software::License::Perl_5' => '0',
'Test::CPAN::Changes' => '0.19',
'Test::CPAN::Meta' => '0',
'Test::CleanNamespaces' => '0.15',
'Test::EOL' => '0',
- 'Test::More' => '0.88',
+ 'Test::More' => '0.96',
'Test::NoTabs' => '0',
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.08',
},
'runtime' => {
'requires' => {
+ 'Dist::Zilla' => '5.038',
'Dist::Zilla::Plugin::Authority' => '0',
'Dist::Zilla::Plugin::AutoPrereqs' => '0',
'Dist::Zilla::Plugin::BlockRelease' => '0',
'Dist::Zilla::Plugin::CopyFilesFromBuild' => '0',
'Dist::Zilla::Plugin::Encoding' => '0',
'Dist::Zilla::Plugin::ExecDir' => '0',
- 'Dist::Zilla::Plugin::ExtraTests' => '0',
'Dist::Zilla::Plugin::FakeRelease' => '0',
'Dist::Zilla::Plugin::Git::Check' => '0',
'Dist::Zilla::Plugin::Git::Commit' => '0',
'Dist::Zilla::Plugin::PruneFiles' => '0',
'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0',
'Dist::Zilla::Plugin::ReversionOnRelease' => '0',
+ 'Dist::Zilla::Plugin::RunExtraTests' => '0',
'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0',
'Dist::Zilla::Plugin::Test::CleanNamespaces' => '0',
'Dist::Zilla::Plugin::Test::Compile' => '0',
+++ /dev/null
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
-use strict;
-use warnings;
-
-# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15
-
-use Test::More 0.88;
-use Test::NoTabs;
-
-my @files = (
- 'lib/Dist/Zilla/PluginBundle/Author/CCM.pm',
- '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/author-clean-namespaces.t',
- 't/author-critic.t',
- 't/author-eol.t',
- 't/author-no-tabs.t',
- 't/author-pod-coverage.t',
- 't/author-pod-no404s.t',
- 't/author-pod-syntax.t',
- 't/author-portability.t',
- 't/release-cpan-changes.t',
- 't/release-distmeta.t'
-);
-
-notabs_ok($_) foreach @files;
-done_testing;
+++ /dev/null
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- print qq{1..0 # SKIP these tests are for release candidate testing\n};
- exit
- }
-}
-
-# This file was automatically generated by Dist::Zilla::Plugin::MetaTests.
-
-use Test::CPAN::Meta;
-
-meta_yaml_ok();
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
use strict;
use warnings;
#!perl
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
-
use strict;
use warnings;
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
use strict;
use warnings;
't/00-report-prereqs.dd',
't/00-report-prereqs.t',
't/01-basic.t',
- 't/author-clean-namespaces.t',
- 't/author-critic.t',
- 't/author-eol.t',
- 't/author-no-tabs.t',
- 't/author-pod-coverage.t',
- 't/author-pod-no404s.t',
- 't/author-pod-syntax.t',
- 't/author-portability.t',
- 't/release-cpan-changes.t',
- 't/release-distmeta.t'
+ 'xt/author/clean-namespaces.t',
+ 'xt/author/critic.t',
+ 'xt/author/eol.t',
+ 'xt/author/no-tabs.t',
+ 'xt/author/pod-coverage.t',
+ 'xt/author/pod-no404s.t',
+ 'xt/author/pod-syntax.t',
+ 'xt/author/portability.t',
+ 'xt/release/cpan-changes.t',
+ 'xt/release/distmeta.t'
);
eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files;
--- /dev/null
+use strict;
+use warnings;
+
+# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15
+
+use Test::More 0.88;
+use Test::NoTabs;
+
+my @files = (
+ 'lib/Dist/Zilla/PluginBundle/Author/CCM.pm',
+ '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',
+ 'xt/author/clean-namespaces.t',
+ 'xt/author/critic.t',
+ 'xt/author/eol.t',
+ 'xt/author/no-tabs.t',
+ 'xt/author/pod-coverage.t',
+ 'xt/author/pod-no404s.t',
+ 'xt/author/pod-syntax.t',
+ 'xt/author/portability.t',
+ 'xt/release/cpan-changes.t',
+ 'xt/release/distmeta.t'
+);
+
+notabs_ok($_) foreach @files;
+done_testing;
#!perl
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
use Test::Pod::Coverage 1.08;
#!perl
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
-
use strict;
use warnings;
use Test::More;
#!perl
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use strict; use warnings;
use Test::More;
-
-BEGIN {
- unless ($ENV{AUTHOR_TESTING}) {
- print qq{1..0 # SKIP these tests are for testing by the author\n};
- exit
- }
-}
-
use strict;
use warnings;
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- print qq{1..0 # SKIP these tests are for release candidate testing\n};
- exit
- }
-}
-
use strict;
use warnings;
--- /dev/null
+#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::MetaTests.
+
+use Test::CPAN::Meta;
+
+meta_yaml_ok();