From 959a43cabdf9a7758e9c5a036ceb2f61444c5571 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Thu, 1 May 2014 10:35:29 +1200 Subject: [PATCH] Build results of 0b4b4e9 (on master) --- .gitignore | 2 + .travis.yml | 3 + Build.PL | 66 --- Changes | 49 +- Changes.deps | 41 +- Changes.deps.all | 65 ++- Changes.deps.dev | 27 +- LICENSE | 8 +- MANIFEST | 13 +- META.json | 519 ++++++++++------- META.yml | 537 ++++++++++-------- Makefile.PL | 84 +++ README | 10 +- dist.ini | 6 +- .../Zilla/Plugin/Prereqs/MatchInstalled.pm | 243 +++++++- maint-travis-ci/.gitrepo | 11 + maint-travis-ci/.perltidyrc | 2 + maint-travis-ci/create_github_repo.pl | 38 ++ maint-travis-ci/install_deps.pl | 2 + maint-travis-ci/install_deps_early.pl | 47 ++ maint-travis-ci/lib/tools.pm | 43 +- maint-travis-ci/report_fail_ctx.pl | 4 +- maint-travis-ci/script.pl | 12 +- maint-travis-ci/sync_tree.pl | 34 +- maint-travis-ci/travis_enable.pl | 88 +++ maint-travis-ci/yamls/sterile2.yaml | 3 + maint/perlcritic.rc.gen.pl | 49 ++ perlcritic.deps | 14 + perlcritic.rc | 444 ++++++++++++++- ...t_Zilla_Plugin_Prereqs_MatchInstalled_pm.t | 2 +- t/00-report-prereqs.t | 233 ++++++++ t/000-report-versions-tiny.t | 83 --- t/01-basic.t | 9 +- weaver.ini | 2 +- xt/release/distmeta.t | 5 +- xt/release/pod-coverage.t | 12 +- xt/release/pod-syntax.t | 5 +- 37 files changed, 2153 insertions(+), 662 deletions(-) create mode 100644 .gitignore delete mode 100644 Build.PL create mode 100644 Makefile.PL create mode 100644 maint-travis-ci/.gitrepo create mode 100644 maint-travis-ci/.perltidyrc create mode 100755 maint-travis-ci/create_github_repo.pl create mode 100644 maint-travis-ci/install_deps_early.pl create mode 100755 maint-travis-ci/travis_enable.pl create mode 100644 maint/perlcritic.rc.gen.pl create mode 100644 perlcritic.deps create mode 100644 t/00-report-prereqs.t delete mode 100644 t/000-report-versions-tiny.t diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..099c698 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.build +Dist-Zilla-Plugin-Prereqs-MatchInstalled-* diff --git a/.travis.yml b/.travis.yml index 717a5f7..ba8fec7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,8 @@ matrix: env: STERILIZE_ENV=1 - perl: "5.10" env: STERILIZE_ENV=1 + - perl: "5.18" + env: STERILIZE_ENV=1 - perl: "5.19" env: STERILIZE_ENV=1 - perl: "5.19" @@ -34,6 +36,7 @@ before_install: - time perl ./maint-travis-ci/branch_reset.pl - time perl ./maint-travis-ci/sterilize_env.pl install: + - time perl ./maint-travis-ci/install_deps_early.pl - time perl ./maint-travis-ci/install_deps.pl before_script: - time perl ./maint-travis-ci/before_script.pl diff --git a/Build.PL b/Build.PL deleted file mode 100644 index a39136f..0000000 --- a/Build.PL +++ /dev/null @@ -1,66 +0,0 @@ - -use strict; -use warnings; - -use Module::Build 0.3601; - - -my %module_build_args = ( - "build_requires" => { - "Module::Build" => "0.4203" - }, - "configure_requires" => { - "Module::Build" => "0.4203" - }, - "dist_abstract" => "Depend on versions of modules the same as you have installed", - "dist_author" => [ - "Kent Fredric " - ], - "dist_name" => "Dist-Zilla-Plugin-Prereqs-MatchInstalled", - "dist_version" => "0.1.6", - "license" => "perl", - "module_name" => "Dist::Zilla::Plugin::Prereqs::MatchInstalled", - "recommends" => {}, - "recursive_test_files" => 1, - "requires" => { - "Dist::Zilla::Role::PrereqSource" => 0, - "Module::Data" => 0, - "Moose" => 0, - "MooseX::Types::Moose" => 0, - "perl" => "v5.10.0", - "strict" => 0, - "warnings" => 0 - }, - "script_files" => [], - "test_requires" => { - "Cwd" => 0, - "File::Copy::Recursive" => 0, - "Path::FindDev" => 0, - "Path::Tiny" => 0, - "Test::DZil" => 0, - "Test::Fatal" => 0, - "Test::More" => "1.001002" - } -); - - -my %fallback_build_requires = ( - "Cwd" => 0, - "File::Copy::Recursive" => 0, - "Module::Build" => "0.4203", - "Path::FindDev" => 0, - "Path::Tiny" => 0, - "Test::DZil" => 0, - "Test::Fatal" => 0, - "Test::More" => "1.001002" -); - - -unless ( eval { Module::Build->VERSION(0.4004) } ) { - delete $module_build_args{test_requires}; - $module_build_args{build_requires} = \%fallback_build_requires; -} - -my $build = Module::Build->new(%module_build_args); - -$build->create_build_script; diff --git a/Changes b/Changes index 9d06533..60ec9e2 100644 --- a/Changes +++ b/Changes @@ -1,11 +1,40 @@ Release history for Dist-Zilla-Plugin-Prereqs-MatchInstalled +1.000000 2014-04-30T22:34:56Z + [00 Minor] + - No major code changes, but tooling changes are sufficient that + downstream vendors may want to pay attention. + + [01 Tooling Change] + - EUMM is now used instead of Module::Build + - "Latest" Toolchain deps are now only recommended instead of mandatory + + [02 Version Scheme change] + - Moving from 0.x.y to 1.xxxxxx + - This is the primary reason for the 1.x on the box. + + [Deoendencies::Aggregate] + - 5.008 : ? → 204 + - 5.010 : 180 → 183 + - 5.018 : ? → 170 + - 5.019 : 166 → 164 + + [Dependencies::Stats] + - Dependencies changed since 0.1.6, see Changes.deps{,.all,.dev} for + details + - build: -1 + - configure: +1 -1 (recommends: +1) + - develop: +7 ↑2 -9 + - runtime: +1 ↓1 + - test: +5 ↓1 -2 (recommends: +4) + 0.1.6 2013-11-29T14:52:26Z [Dependencies::Noteworthy] - use Module::Build 0.4203 [Dependencies::Stats] - - Dependencies changed, see Changes.deps{,.all,.dev} for details + - Dependencies changed since 0.1.5, see Changes.deps{,.all,.dev} for + details - build: ↑1 - configure: ↑1 - develop: ↑1 @@ -21,10 +50,11 @@ Release history for Dist-Zilla-Plugin-Prereqs-MatchInstalled - Upgrade Module::Build and Test::More [Dependencies::Stats] - - Dependencies changed, see Changes.deps{,.all,.dev} for details + - Dependencies changed since 0.1.4, see Changes.deps{,.all,.dev} for + details - build: ↑1 - configure: ↑1 - - develop: +44 ↑2 -3 + - develop: +43 ↑2 -1 (recommends: -1, suggests: +1 -1) - test: ↑1 -3 [Packaging] @@ -47,7 +77,8 @@ Release history for Dist-Zilla-Plugin-Prereqs-MatchInstalled - Whole bunch of new dependencies to support new test [Dependencies::Stats] - - Dependencies changed, see Changes.deps{,.all,.dev} for details + - Dependencies changed since 0.1.2, see Changes.deps{,.all,.dev} for + details - develop: ↑1 - test: +7 @@ -59,8 +90,9 @@ Release history for Dist-Zilla-Plugin-Prereqs-MatchInstalled - Bump to get newer Test::Compile test. [Dependencies::Stats] - - Dependencies changed, see Changes.deps{,.all,.dev} for details - - develop: +1 ↑3 + - Dependencies changed since 0.1.1, see Changes.deps{,.all,.dev} for + details + - develop: +1 ↑2 (suggests: ↑1) - test: +2 -2 0.1.1 2013-08-07T22:34:28Z @@ -69,10 +101,11 @@ Release history for Dist-Zilla-Plugin-Prereqs-MatchInstalled - Upgrade Module::Build [Dependencies::Stats] - - Dependencies changed, see Changes.deps{,.all,.dev} for details + - Dependencies changed since 0.1.0, see Changes.deps{,.all,.dev} for + details - build: ↑1 - configure: ↑1 - - develop: ↑2 + - develop: ↑1 (suggests: ↑1) - test: +2 -2 [Internals] diff --git a/Changes.deps b/Changes.deps index c718ed0..b1c08b6 100644 --- a/Changes.deps +++ b/Changes.deps @@ -1,4 +1,43 @@ -0.1.6 +1.000000 + [Added / configure recommends] + - ExtUtils::MakeMaker 6.96 + + [Added / configure requires] + - ExtUtils::MakeMaker 6.30 + + [Added / runtime requires] + - utf8 + + [Added / test recommends] + - CPAN::Meta + - CPAN::Meta::Requirements 2.120900 + - ExtUtils::MakeMaker 6.96 + - Test::More 1.001003 + + [Added / test requires] + - ExtUtils::MakeMaker + - File::Spec::Functions + - FindBin + - List::Util + - version 0.9908 + + [Changed / runtime requires] + - perl v5.10.0 → 5.008 + + [Changed / test requires] + - Test::More 1.001002 → 0.89 + + [Removed / build requires] + - Module::Build 0.4203 + + [Removed / configure requires] + - Module::Build 0.4203 + + [Removed / test requires] + - Cwd + - Path::FindDev + +0.1.6 2013-11-29T14:52:26Z [Changed / build requires] - Module::Build 0.4202 → 0.4203 diff --git a/Changes.deps.all b/Changes.deps.all index 2343aea..e6ba024 100644 --- a/Changes.deps.all +++ b/Changes.deps.all @@ -1,4 +1,67 @@ -0.1.6 +1.000000 + [Added / configure recommends] + - ExtUtils::MakeMaker 6.96 + + [Added / configure requires] + - ExtUtils::MakeMaker 6.30 + + [Added / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease + - Dist::Zilla::Plugin::Git::NextVersion::Sanitized + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::MinimumPerl + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + - Dist::Zilla::Plugin::RunExtraTests + - Dist::Zilla::Plugin::Test::ReportPrereqs + + [Added / runtime requires] + - utf8 + + [Added / test recommends] + - CPAN::Meta + - CPAN::Meta::Requirements 2.120900 + - ExtUtils::MakeMaker 6.96 + - Test::More 1.001003 + + [Added / test requires] + - ExtUtils::MakeMaker + - File::Spec::Functions + - FindBin + - List::Util + - version 0.9908 + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.004001 → 2.013003 + - Test::CPAN::Changes 0.26 → 0.27 + + [Changed / runtime requires] + - perl v5.10.0 → 5.008 + + [Changed / test requires] + - Test::More 1.001002 → 0.89 + + [Removed / build requires] + - Module::Build 0.4203 + + [Removed / configure requires] + - Module::Build 0.4203 + + [Removed / develop requires] + - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl + - Dist::Zilla::Plugin::CheckExtraTests + - Dist::Zilla::Plugin::Git::NextVersion + - Dist::Zilla::Plugin::ModuleBuild + - Dist::Zilla::Plugin::NextRelease + - Dist::Zilla::Plugin::Prereqs::MatchInstalled + - Dist::Zilla::Plugin::PruneCruft + - Dist::Zilla::Plugin::ReportVersions::Tiny + - version 0.9904 + + [Removed / test requires] + - Cwd + - Path::FindDev + +0.1.6 2013-11-29T14:52:26Z [Changed / build requires] - Module::Build 0.4202 → 0.4203 diff --git a/Changes.deps.dev b/Changes.deps.dev index 6f3dd5b..62657cc 100644 --- a/Changes.deps.dev +++ b/Changes.deps.dev @@ -1,4 +1,29 @@ -0.1.6 +1.000000 + [Added / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease + - Dist::Zilla::Plugin::Git::NextVersion::Sanitized + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::MinimumPerl + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + - Dist::Zilla::Plugin::RunExtraTests + - Dist::Zilla::Plugin::Test::ReportPrereqs + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.004001 → 2.013003 + - Test::CPAN::Changes 0.26 → 0.27 + + [Removed / develop requires] + - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl + - Dist::Zilla::Plugin::CheckExtraTests + - Dist::Zilla::Plugin::Git::NextVersion + - Dist::Zilla::Plugin::ModuleBuild + - Dist::Zilla::Plugin::NextRelease + - Dist::Zilla::Plugin::Prereqs::MatchInstalled + - Dist::Zilla::Plugin::PruneCruft + - Dist::Zilla::Plugin::ReportVersions::Tiny + - version 0.9904 + +0.1.6 2013-11-29T14:52:26Z [Changed / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL 2.004000 → 2.004001 diff --git a/LICENSE b/LICENSE index 648d54d..f54a236 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2013 by Kent Fredric . +This software is Copyright (c) 2014 by Kent Fredric . This is free software, licensed under: @@ -22,7 +22,7 @@ This is free software, licensed under: Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -272,7 +272,7 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2013 by Kent Fredric . +This software is Copyright (c) 2014 by Kent Fredric . This is free software, licensed under: diff --git a/MANIFEST b/MANIFEST index 8af36e7..43401c8 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,6 +1,7 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.015. +.gitignore .perltidyrc .travis.yml -Build.PL Changes Changes.deps Changes.deps.all @@ -9,6 +10,7 @@ LICENSE MANIFEST META.json META.yml +Makefile.PL README corpus/fake_dist_01/dist.ini corpus/fake_dist_01/lib/E.pm @@ -16,22 +18,29 @@ dist.ini layout/self_structure.dot layout/self_structure.png lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm +maint-travis-ci/.gitrepo +maint-travis-ci/.perltidyrc maint-travis-ci/README.mkdn maint-travis-ci/before_script.pl maint-travis-ci/branch_reset.pl +maint-travis-ci/create_github_repo.pl maint-travis-ci/install_deps.pl +maint-travis-ci/install_deps_early.pl maint-travis-ci/lib/tools.pm maint-travis-ci/merge_travis_yml.pl maint-travis-ci/report_fail_ctx.pl maint-travis-ci/script.pl maint-travis-ci/sterilize_env.pl maint-travis-ci/sync_tree.pl +maint-travis-ci/travis_enable.pl maint-travis-ci/yamls/sterile.mkdn maint-travis-ci/yamls/sterile.yaml maint-travis-ci/yamls/sterile2.yaml +maint/perlcritic.rc.gen.pl +perlcritic.deps perlcritic.rc t/00-compile/lib_Dist_Zilla_Plugin_Prereqs_MatchInstalled_pm.t -t/000-report-versions-tiny.t +t/00-report-prereqs.t t/01-basic.t weaver.ini xt/author/critic.t diff --git a/META.json b/META.json index 73d96ce..f636ab2 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "Kent Fredric " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.140640", "license" : [ "perl_5" ], @@ -14,32 +14,30 @@ }, "name" : "Dist-Zilla-Plugin-Prereqs-MatchInstalled", "prereqs" : { - "build" : { - "requires" : { - "Module::Build" : "0.4203" - } - }, "configure" : { + "recommends" : { + "ExtUtils::MakeMaker" : "6.96" + }, "requires" : { - "Module::Build" : "0.4203" + "ExtUtils::MakeMaker" : "6.30" } }, "develop" : { "requires" : { - "Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl" : "0", "Dist::Zilla::Plugin::Authority" : "1.006", "Dist::Zilla::Plugin::AutoPrereqs" : "0", - "Dist::Zilla::Plugin::CheckExtraTests" : "0", "Dist::Zilla::Plugin::ConfirmRelease" : "0", "Dist::Zilla::Plugin::EOLTests" : "0", "Dist::Zilla::Plugin::Git::Check" : "0", "Dist::Zilla::Plugin::Git::Commit" : "0", "Dist::Zilla::Plugin::Git::CommitBuild" : "0", "Dist::Zilla::Plugin::Git::GatherDir" : "0", - "Dist::Zilla::Plugin::Git::NextVersion" : "0", + "Dist::Zilla::Plugin::Git::NextRelease" : "0", + "Dist::Zilla::Plugin::Git::NextVersion::Sanitized" : "0", "Dist::Zilla::Plugin::Git::Tag" : "0", "Dist::Zilla::Plugin::GithubMeta" : "0", "Dist::Zilla::Plugin::License" : "0", + "Dist::Zilla::Plugin::MakeMaker" : "0", "Dist::Zilla::Plugin::Manifest" : "0", "Dist::Zilla::Plugin::ManifestSkip" : "0", "Dist::Zilla::Plugin::MetaConfig" : "0", @@ -48,34 +46,32 @@ "Dist::Zilla::Plugin::MetaProvides::Package" : "1.14000001", "Dist::Zilla::Plugin::MetaTests" : "0", "Dist::Zilla::Plugin::MetaYAML" : "0", - "Dist::Zilla::Plugin::ModuleBuild" : "0", - "Dist::Zilla::Plugin::NextRelease" : "0", + "Dist::Zilla::Plugin::MinimumPerl" : "0", "Dist::Zilla::Plugin::PkgVersion" : "0", "Dist::Zilla::Plugin::PodCoverageTests" : "0", "Dist::Zilla::Plugin::PodSyntaxTests" : "0", "Dist::Zilla::Plugin::PodWeaver" : "0", "Dist::Zilla::Plugin::Prereqs" : "0", - "Dist::Zilla::Plugin::Prereqs::MatchInstalled" : "0", - "Dist::Zilla::Plugin::PruneCruft" : "0", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0", "Dist::Zilla::Plugin::ReadmeFromPod" : "0", - "Dist::Zilla::Plugin::ReportVersions::Tiny" : "0", + "Dist::Zilla::Plugin::RunExtraTests" : "0", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0", "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0", "Dist::Zilla::Plugin::Test::Kwalitee" : "0", "Dist::Zilla::Plugin::Test::MinimumVersion" : "0", "Dist::Zilla::Plugin::Test::Perl::Critic" : "0", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0", "Dist::Zilla::Plugin::TestRelease" : "0", "Dist::Zilla::Plugin::Twitter" : "0", "Dist::Zilla::Plugin::UploadToCPAN" : "0", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.004001", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.013003", "Pod::Coverage::TrustPod" : "0", - "Test::CPAN::Changes" : "0.26", + "Test::CPAN::Changes" : "0.27", "Test::CPAN::Meta" : "0.23", "Test::Kwalitee" : "1.12", "Test::Pod" : "1.48", - "Test::Pod::Coverage" : "1.08", - "version" : "0.9904" + "Test::Pod::Coverage" : "1.08" }, "suggests" : { "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "v1.3.0" @@ -87,27 +83,37 @@ "Module::Data" : "0", "Moose" : "0", "MooseX::Types::Moose" : "0", - "perl" : "v5.10.0", + "perl" : "5.008", "strict" : "0", + "utf8" : "0", "warnings" : "0" } }, "test" : { + "recommends" : { + "CPAN::Meta" : "0", + "CPAN::Meta::Requirements" : "2.120900", + "ExtUtils::MakeMaker" : "6.96", + "Test::More" : "1.001003" + }, "requires" : { - "Cwd" : "0", + "ExtUtils::MakeMaker" : "0", "File::Copy::Recursive" : "0", - "Path::FindDev" : "0", + "File::Spec::Functions" : "0", + "FindBin" : "0", + "List::Util" : "0", "Path::Tiny" : "0", "Test::DZil" : "0", "Test::Fatal" : "0", - "Test::More" : "1.001002" + "Test::More" : "0.89", + "version" : "0.9908" } } }, "provides" : { "Dist::Zilla::Plugin::Prereqs::MatchInstalled" : { "file" : "lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm", - "version" : "v0.1.6" + "version" : "1.000000" } }, "release_status" : "stable", @@ -122,95 +128,98 @@ "web" : "https://github.com/kentfredric/Dist-Zilla-Plugin-Prereqs-MatchInstalled" } }, - "version" : "0.1.6", + "version" : "1.000000", "x_BuiltWith" : { "modules" : { - "Cwd" : "3.45", - "Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl" : "2.004001", + "CPAN::Meta" : "2.140640", + "CPAN::Meta::Requirements" : "2.125", "Dist::Zilla::Plugin::Authority" : "1.006", - "Dist::Zilla::Plugin::AutoPrereqs" : "5.006", - "Dist::Zilla::Plugin::CheckExtraTests" : "0.016", - "Dist::Zilla::Plugin::ConfirmRelease" : "5.006", + "Dist::Zilla::Plugin::AutoPrereqs" : "5.015", + "Dist::Zilla::Plugin::ConfirmRelease" : "5.015", "Dist::Zilla::Plugin::EOLTests" : "0.02", - "Dist::Zilla::Plugin::Git::Check" : "2.019", - "Dist::Zilla::Plugin::Git::Commit" : "2.019", - "Dist::Zilla::Plugin::Git::CommitBuild" : "2.019", - "Dist::Zilla::Plugin::Git::GatherDir" : "2.019", - "Dist::Zilla::Plugin::Git::NextVersion" : "2.019", - "Dist::Zilla::Plugin::Git::Tag" : "2.019", + "Dist::Zilla::Plugin::Git::Check" : "2.022", + "Dist::Zilla::Plugin::Git::Commit" : "2.022", + "Dist::Zilla::Plugin::Git::CommitBuild" : "2.022", + "Dist::Zilla::Plugin::Git::GatherDir" : "2.022", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.002010", + "Dist::Zilla::Plugin::Git::NextVersion::Sanitized" : "0.001000", + "Dist::Zilla::Plugin::Git::Tag" : "2.022", "Dist::Zilla::Plugin::GithubMeta" : "0.42", - "Dist::Zilla::Plugin::License" : "5.006", - "Dist::Zilla::Plugin::Manifest" : "5.006", - "Dist::Zilla::Plugin::ManifestSkip" : "5.006", - "Dist::Zilla::Plugin::MetaConfig" : "5.006", + "Dist::Zilla::Plugin::License" : "5.015", + "Dist::Zilla::Plugin::MakeMaker" : "5.015", + "Dist::Zilla::Plugin::Manifest" : "5.015", + "Dist::Zilla::Plugin::ManifestSkip" : "5.015", + "Dist::Zilla::Plugin::MetaConfig" : "5.015", "Dist::Zilla::Plugin::MetaData::BuiltWith" : "0.04000002", - "Dist::Zilla::Plugin::MetaJSON" : "5.006", - "Dist::Zilla::Plugin::MetaProvides::Package" : "1.15000001", - "Dist::Zilla::Plugin::MetaTests" : "5.006", - "Dist::Zilla::Plugin::MetaYAML" : "5.006", - "Dist::Zilla::Plugin::ModuleBuild" : "5.006", - "Dist::Zilla::Plugin::NextRelease" : "5.006", - "Dist::Zilla::Plugin::PkgVersion" : "5.006", - "Dist::Zilla::Plugin::PodCoverageTests" : "5.006", - "Dist::Zilla::Plugin::PodSyntaxTests" : "5.006", - "Dist::Zilla::Plugin::PodWeaver" : "4.002", - "Dist::Zilla::Plugin::Prereqs" : "5.006", - "Dist::Zilla::Plugin::Prereqs::MatchInstalled" : "0.1.6", - "Dist::Zilla::Plugin::PruneCruft" : "5.006", - "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.133290", + "Dist::Zilla::Plugin::MetaJSON" : "5.015", + "Dist::Zilla::Plugin::MetaProvides::Package" : "2.000001", + "Dist::Zilla::Plugin::MetaTests" : "5.015", + "Dist::Zilla::Plugin::MetaYAML" : "5.015", + "Dist::Zilla::Plugin::MinimumPerl" : "1.003", + "Dist::Zilla::Plugin::PkgVersion" : "5.015", + "Dist::Zilla::Plugin::PodCoverageTests" : "5.015", + "Dist::Zilla::Plugin::PodSyntaxTests" : "5.015", + "Dist::Zilla::Plugin::PodWeaver" : "4.005", + "Dist::Zilla::Plugin::Prereqs" : "5.015", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.001000", + "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.141120", "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", - "Dist::Zilla::Plugin::ReportVersions::Tiny" : "1.10", + "Dist::Zilla::Plugin::RunExtraTests" : "0.021", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", - "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.001001", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.002000", "Dist::Zilla::Plugin::Test::Kwalitee" : "2.07", "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000005", "Dist::Zilla::Plugin::Test::Perl::Critic" : "2.112410", - "Dist::Zilla::Plugin::TestRelease" : "5.006", - "Dist::Zilla::Plugin::Twitter" : "0.024", - "Dist::Zilla::Plugin::UploadToCPAN" : "5.006", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.004001", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.013", + "Dist::Zilla::Plugin::TestRelease" : "5.015", + "Dist::Zilla::Plugin::Twitter" : "0.025", + "Dist::Zilla::Plugin::UploadToCPAN" : "5.015", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.013003", "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "1.7.2", - "Dist::Zilla::Role::PrereqSource" : "5.006", + "Dist::Zilla::Role::PrereqSource" : "5.015", + "ExtUtils::MakeMaker" : "6.96", "File::Copy::Recursive" : "0.38", - "Module::Build" : "0.4203", - "Module::Data" : "0.012", - "Moose" : "2.1106", - "MooseX::Types::Moose" : "0.38", - "Path::FindDev" : "0.4.2", - "Path::Tiny" : "0.047", + "File::Spec::Functions" : "3.47", + "FindBin" : "1.51", + "List::Util" : "1.38", + "Module::Data" : "0.007", + "Moose" : "2.1205", + "MooseX::Types::Moose" : "0.44", + "Path::Tiny" : "0.052", "Pod::Coverage::TrustPod" : "0.100003", - "Test::CPAN::Changes" : "0.26", + "Test::CPAN::Changes" : "0.27", "Test::CPAN::Meta" : "0.23", - "Test::DZil" : "5.006", + "Test::DZil" : "5.015", "Test::Fatal" : "0.013", - "Test::Kwalitee" : "1.17", - "Test::More" : "1.001002", + "Test::Kwalitee" : "1.18", + "Test::More" : "1.001003", "Test::Pod" : "1.48", "Test::Pod::Coverage" : "1.08", "strict" : "1.08", - "version" : "0.9904", - "warnings" : "1.20" + "utf8" : "1.13", + "version" : "0.9908", + "warnings" : "1.23" }, "perl" : { - "original" : "v5.19.6", + "original" : "v5.19.11", "qv" : 1, "version" : [ 5, 19, - 6 + 11 ] }, "perl-config" : { - "gccversion" : "4.7.3", + "gccversion" : "4.8.2", "myarchname" : "x86_64-linux", "osname" : "linux" }, "platform" : "linux", - "uname" : "Linux 3.12.0-gentoo x86_64 GenuineIntel GNU/Linux" + "uname" : "Linux 3.14.0-gentoo x86_64 GenuineIntel GNU/Linux" }, "x_Dist_Zilla" : { "perl" : { - "version" : "5.019006" + "version" : "5.019011" }, "plugins" : [ { @@ -224,32 +233,49 @@ } }, "name" : "Bootstrap::lib", - "version" : "0.04000002" + "version" : "1.000001" }, { - "class" : "Dist::Zilla::Plugin::Git::NextVersion", - "name" : "@Author::KENTNL/Git::NextVersion", - "version" : "2.019" + "class" : "Dist::Zilla::Plugin::Git::NextVersion::Sanitized", + "config" : { + "Dist::Zilla::Plugin::Git::NextVersion" : { + "first_version" : "0.001000", + "version_by_branch" : "0", + "version_regexp" : "(?^:^(.*)-source$)" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + }, + "Dist::Zilla::Role::Version::Sanitize" : { + "mantissa" : "6", + "normal_form" : "numify" + } + }, + "name" : "@Author::KENTNL/Git::NextVersion::Sanitized", + "version" : "0.001000" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::KENTNL/MetaConfig", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::KENTNL/GithubMeta", "version" : "0.42" }, - { - "class" : "Dist::Zilla::Plugin::FinderCode", - "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "5.006" - }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { - "Dist::Zilla::Plugin::MetaProvides::Package" : {}, + "Dist::Zilla::Plugin::MetaProvides::Package" : { + "finder_objects" : [ + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "5.015" + } + ] + }, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "1", "inherit_version" : "1", @@ -257,7 +283,7 @@ } }, "name" : "@Author::KENTNL/MetaProvides::Package", - "version" : "1.15000001" + "version" : "2.000001" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", @@ -283,48 +309,56 @@ }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "config" : { + "Dist::Zilla::Plugin::Git::GatherDir" : { + "include_untracked" : "0" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::GatherDir", - "version" : "2.019" + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::KENTNL/License", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::KENTNL/MetaJSON", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::KENTNL/MetaYAML", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::KENTNL/Manifest", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::KENTNL/MetaTests", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::KENTNL/PodCoverageTests", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::KENTNL/PodSyntaxTests", - "version" : "5.006" + "version" : "5.015" }, { - "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", - "name" : "@Author::KENTNL/ReportVersions::Tiny", - "version" : "1.10" + "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", + "name" : "@Author::KENTNL/Test::ReportPrereqs", + "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", @@ -344,7 +378,7 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Test::Compile::PerFile", @@ -361,27 +395,22 @@ } }, "name" : "@Author::KENTNL/Test::Compile::PerFile", - "version" : "0.001001" + "version" : "0.002000" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", "name" : "@Author::KENTNL/Test::Perl::Critic", "version" : "2.112410" }, - { - "class" : "Dist::Zilla::Plugin::PruneCruft", - "name" : "@Author::KENTNL/PruneCruft", - "version" : "5.006" - }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::KENTNL/ManifestSkip", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@Author::KENTNL/PkgVersion", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -395,103 +424,103 @@ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.004" + "version" : "4.006" }, { - "class" : "Pod::Weaver::Plugin::Encoding", - "name" : "-Encoding", - "version" : "0.02" + "class" : "Pod::Weaver::Plugin::SingleEncoding", + "name" : "-SingleEncoding", + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Name", "name" : "Name", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Version", "name" : "Version", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Region", "name" : "prelude", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "PRIVATE_ATTRIBUTES", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "PRIVATE_METHODS", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "Leftovers", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Region", "name" : "postlude", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "Authors", - "version" : "4.004" + "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "Legal", - "version" : "4.004" + "version" : "4.006" } ] } }, "name" : "@Author::KENTNL/PodWeaver", - "version" : "4.002" + "version" : "4.005" }, { - "class" : "Dist::Zilla::Plugin::NextRelease", - "name" : "@Author::KENTNL/NextRelease", - "version" : "5.006" + "class" : "Dist::Zilla::Plugin::Git::NextRelease", + "name" : "@Author::KENTNL/Git::NextRelease", + "version" : "0.002010" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::KENTNL/AutoPrereqs", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -501,8 +530,8 @@ "type" : "suggests" } }, - "name" : "@Author::KENTNL/Prereqs/BundleDevelSuggests", - "version" : "5.006" + "name" : "@Author::KENTNL/BundleDevelSuggests", + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -512,13 +541,13 @@ "type" : "requires" } }, - "name" : "@Author::KENTNL/Prereqs/BundleDevelRequires", - "version" : "5.006" + "name" : "@Author::KENTNL/BundleDevelRequires", + "version" : "5.015" }, { - "class" : "Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl", - "name" : "@Author::KENTNL/Author::KENTNL::MinimumPerl", - "version" : "2.004001" + "class" : "Dist::Zilla::Plugin::MinimumPerl", + "name" : "@Author::KENTNL/MinimumPerl", + "version" : "1.003" }, { "class" : "Dist::Zilla::Plugin::Authority", @@ -526,9 +555,14 @@ "version" : "1.006" }, { - "class" : "Dist::Zilla::Plugin::ModuleBuild", - "name" : "@Author::KENTNL/ModuleBuild", - "version" : "5.006" + "class" : "Dist::Zilla::Plugin::MakeMaker", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : 10 + } + }, + "name" : "@Author::KENTNL/MakeMaker", + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::ReadmeFromPod", @@ -538,7 +572,7 @@ { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "name" : "@Author::KENTNL/ReadmeAnyFromPod", - "version" : "0.133290" + "version" : "0.141120" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", @@ -546,75 +580,143 @@ "version" : "0.008" }, { - "class" : "Dist::Zilla::Plugin::CheckExtraTests", - "name" : "@Author::KENTNL/CheckExtraTests", - "version" : "0.016" + "class" : "Dist::Zilla::Plugin::RunExtraTests", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : 10 + } + }, + "name" : "@Author::KENTNL/RunExtraTests", + "version" : "0.021" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::KENTNL/TestRelease", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::KENTNL/ConfirmRelease", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Git::Check", + "config" : { + "Dist::Zilla::Plugin::Git::Check" : { + "untracked_files" : "die" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "dist.ini", + "Changes" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::Check", - "version" : "2.019" + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", - "name" : "@Author::KENTNL/Git::Tag/tag_master", - "version" : "2.019" + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : null, + "signed" : 0, + "tag" : "1.000000-source", + "tag_format" : "%v-source", + "tag_message" : "v%v", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/tag_master", + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "dist.ini", + "Changes" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::Commit", - "version" : "2.019" + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::Git::CommitBuild", + "config" : { + "Dist::Zilla::Plugin::Git::CommitBuild" : { + "branch" : "build/%b", + "build_root" : null, + "message" : "Build results of %h (on %b)", + "multiple_inheritance" : 0, + "release_branch" : "releases", + "release_message" : "Build results of %h (on %b)" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::CommitBuild", - "version" : "2.019" + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", - "name" : "@Author::KENTNL/Git::Tag/tag_release", - "version" : "2.019" + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : "releases", + "signed" : 0, + "tag" : "1.000000", + "tag_format" : "%v", + "tag_message" : "v%v", + "time_zone" : "local" + }, + "Dist::Zilla::Role::Git::Repo" : { + "repo_root" : "." + } + }, + "name" : "@Author::KENTNL/tag_release", + "version" : "2.022" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::KENTNL/UploadToCPAN", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Twitter", "name" : "@Author::KENTNL/Twitter", - "version" : "0.024" + "version" : "0.025" }, { - "class" : "Dist::Zilla::Plugin::Prereqs::MatchInstalled", + "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", "config" : { - "Dist::Zilla::Plugin::Prereqs::MatchInstalled" : { - "applyto" : [ - "build.requires", - "build.recommends", - "build.suggests", - "test.requires", - "test.recommends", - "test.suggests", - "runtime.requires", - "runtime.recommends", - "runtime.suggests", - "configure.requires", - "configure.recommends", - "configure.suggests", - "develop.requires", - "develop.recommends", - "develop.suggests" + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { + "applyto_map" : [ + "build.requires = build.recommends", + "test.requires = test.recommends", + "runtime.requires = runtime.recommends", + "configure.requires = configure.recommends", + "develop.requires = develop.recommends" ], "applyto_phase" : [ "build", @@ -623,20 +725,32 @@ "configure", "develop" ], - "applyto_relation" : [ - "requires", - "recommends", - "suggests" + "modules" : [ + "ExtUtils::MakeMaker", + "Test::More" + ] + } + }, + "name" : "@Author::KENTNL/Prereqs::Recommend::MatchInstalled", + "version" : "0.001000" + }, + { + "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", + "config" : { + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { + "applyto_map" : [ + "develop.requires = develop.requires" + ], + "applyto_phase" : [ + "develop" ], "modules" : [ - "Module::Build", - "Test::More", "Dist::Zilla::PluginBundle::Author::KENTNL" ] } }, - "name" : "@Author::KENTNL/Prereqs::MatchInstalled", - "version" : "0.1.6" + "name" : "@Author::KENTNL/always_latest_develop_bundle", + "version" : "0.001000" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -647,7 +761,7 @@ } }, "name" : "@Author::KENTNL/::Role::BundleDeps", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -658,7 +772,7 @@ } }, "name" : "Prereqs", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::Prereqs::MatchInstalled", @@ -703,37 +817,52 @@ } }, "name" : "Prereqs::MatchInstalled", - "version" : "0.1.6" + "version" : "1.000000" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "5.006" + "version" : "5.015" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "5.006" + "version" : "5.015" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":AllFiles", + "version" : "5.015" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":NoFiles", + "version" : "5.015" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", + "version" : "5.015" } ], "zilla" : { @@ -741,7 +870,7 @@ "config" : { "is_trial" : "0" }, - "version" : "5.006" + "version" : "5.015" } }, "x_authority" : "cpan:KENTNL" diff --git a/META.yml b/META.yml index 38aeacb..3abd1a5 100644 --- a/META.yml +++ b/META.yml @@ -3,229 +3,251 @@ abstract: 'Depend on versions of modules the same as you have installed' author: - 'Kent Fredric ' build_requires: - Cwd: 0 - File::Copy::Recursive: 0 - Module::Build: 0.4203 - Path::FindDev: 0 - Path::Tiny: 0 - Test::DZil: 0 - Test::Fatal: 0 - Test::More: 1.001002 + ExtUtils::MakeMaker: '0' + File::Copy::Recursive: '0' + File::Spec::Functions: '0' + FindBin: '0' + List::Util: '0' + Path::Tiny: '0' + Test::DZil: '0' + Test::Fatal: '0' + Test::More: '0.89' + version: '0.9908' configure_requires: - Module::Build: 0.4203 + ExtUtils::MakeMaker: '6.30' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.140640' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Dist-Zilla-Plugin-Prereqs-MatchInstalled provides: Dist::Zilla::Plugin::Prereqs::MatchInstalled: file: lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm - version: v0.1.6 + version: '1.000000' requires: - Dist::Zilla::Role::PrereqSource: 0 - Module::Data: 0 - Moose: 0 - MooseX::Types::Moose: 0 - perl: v5.10.0 - strict: 0 - warnings: 0 + Dist::Zilla::Role::PrereqSource: '0' + Module::Data: '0' + Moose: '0' + MooseX::Types::Moose: '0' + perl: '5.008' + strict: '0' + utf8: '0' + warnings: '0' resources: bugtracker: https://github.com/kentfredric/Dist-Zilla-Plugin-Prereqs-MatchInstalled/issues homepage: https://github.com/kentfredric/Dist-Zilla-Plugin-Prereqs-MatchInstalled repository: https://github.com/kentfredric/Dist-Zilla-Plugin-Prereqs-MatchInstalled.git -version: 0.1.6 +version: '1.000000' x_BuiltWith: modules: - Cwd: 3.45 - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl: 2.004001 - Dist::Zilla::Plugin::Authority: 1.006 - Dist::Zilla::Plugin::AutoPrereqs: 5.006 - Dist::Zilla::Plugin::CheckExtraTests: 0.016 - Dist::Zilla::Plugin::ConfirmRelease: 5.006 - Dist::Zilla::Plugin::EOLTests: 0.02 - Dist::Zilla::Plugin::Git::Check: 2.019 - Dist::Zilla::Plugin::Git::Commit: 2.019 - Dist::Zilla::Plugin::Git::CommitBuild: 2.019 - Dist::Zilla::Plugin::Git::GatherDir: 2.019 - Dist::Zilla::Plugin::Git::NextVersion: 2.019 - Dist::Zilla::Plugin::Git::Tag: 2.019 - Dist::Zilla::Plugin::GithubMeta: 0.42 - Dist::Zilla::Plugin::License: 5.006 - Dist::Zilla::Plugin::Manifest: 5.006 - Dist::Zilla::Plugin::ManifestSkip: 5.006 - Dist::Zilla::Plugin::MetaConfig: 5.006 - Dist::Zilla::Plugin::MetaData::BuiltWith: 0.04000002 - Dist::Zilla::Plugin::MetaJSON: 5.006 - Dist::Zilla::Plugin::MetaProvides::Package: 1.15000001 - Dist::Zilla::Plugin::MetaTests: 5.006 - Dist::Zilla::Plugin::MetaYAML: 5.006 - Dist::Zilla::Plugin::ModuleBuild: 5.006 - Dist::Zilla::Plugin::NextRelease: 5.006 - Dist::Zilla::Plugin::PkgVersion: 5.006 - Dist::Zilla::Plugin::PodCoverageTests: 5.006 - Dist::Zilla::Plugin::PodSyntaxTests: 5.006 - Dist::Zilla::Plugin::PodWeaver: 4.002 - Dist::Zilla::Plugin::Prereqs: 5.006 - Dist::Zilla::Plugin::Prereqs::MatchInstalled: 0.1.6 - Dist::Zilla::Plugin::PruneCruft: 5.006 - Dist::Zilla::Plugin::ReadmeAnyFromPod: 0.133290 - Dist::Zilla::Plugin::ReadmeFromPod: 0.21 - Dist::Zilla::Plugin::ReportVersions::Tiny: 1.10 - Dist::Zilla::Plugin::Test::CPAN::Changes: 0.008 - Dist::Zilla::Plugin::Test::Compile::PerFile: 0.001001 - Dist::Zilla::Plugin::Test::Kwalitee: 2.07 - Dist::Zilla::Plugin::Test::MinimumVersion: 2.000005 - Dist::Zilla::Plugin::Test::Perl::Critic: 2.112410 - Dist::Zilla::Plugin::TestRelease: 5.006 - Dist::Zilla::Plugin::Twitter: 0.024 - Dist::Zilla::Plugin::UploadToCPAN: 5.006 - Dist::Zilla::PluginBundle::Author::KENTNL: 2.004001 + CPAN::Meta: '2.140640' + CPAN::Meta::Requirements: '2.125' + Dist::Zilla::Plugin::Authority: '1.006' + Dist::Zilla::Plugin::AutoPrereqs: '5.015' + Dist::Zilla::Plugin::ConfirmRelease: '5.015' + Dist::Zilla::Plugin::EOLTests: '0.02' + Dist::Zilla::Plugin::Git::Check: '2.022' + Dist::Zilla::Plugin::Git::Commit: '2.022' + Dist::Zilla::Plugin::Git::CommitBuild: '2.022' + Dist::Zilla::Plugin::Git::GatherDir: '2.022' + Dist::Zilla::Plugin::Git::NextRelease: '0.002010' + Dist::Zilla::Plugin::Git::NextVersion::Sanitized: '0.001000' + Dist::Zilla::Plugin::Git::Tag: '2.022' + Dist::Zilla::Plugin::GithubMeta: '0.42' + Dist::Zilla::Plugin::License: '5.015' + Dist::Zilla::Plugin::MakeMaker: '5.015' + Dist::Zilla::Plugin::Manifest: '5.015' + Dist::Zilla::Plugin::ManifestSkip: '5.015' + Dist::Zilla::Plugin::MetaConfig: '5.015' + Dist::Zilla::Plugin::MetaData::BuiltWith: '0.04000002' + Dist::Zilla::Plugin::MetaJSON: '5.015' + Dist::Zilla::Plugin::MetaProvides::Package: '2.000001' + Dist::Zilla::Plugin::MetaTests: '5.015' + Dist::Zilla::Plugin::MetaYAML: '5.015' + Dist::Zilla::Plugin::MinimumPerl: '1.003' + Dist::Zilla::Plugin::PkgVersion: '5.015' + Dist::Zilla::Plugin::PodCoverageTests: '5.015' + Dist::Zilla::Plugin::PodSyntaxTests: '5.015' + Dist::Zilla::Plugin::PodWeaver: '4.005' + Dist::Zilla::Plugin::Prereqs: '5.015' + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.001000' + Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.141120' + Dist::Zilla::Plugin::ReadmeFromPod: '0.21' + Dist::Zilla::Plugin::RunExtraTests: '0.021' + Dist::Zilla::Plugin::Test::CPAN::Changes: '0.008' + Dist::Zilla::Plugin::Test::Compile::PerFile: '0.002000' + Dist::Zilla::Plugin::Test::Kwalitee: '2.07' + Dist::Zilla::Plugin::Test::MinimumVersion: '2.000005' + Dist::Zilla::Plugin::Test::Perl::Critic: '2.112410' + Dist::Zilla::Plugin::Test::ReportPrereqs: '0.013' + Dist::Zilla::Plugin::TestRelease: '5.015' + Dist::Zilla::Plugin::Twitter: '0.025' + Dist::Zilla::Plugin::UploadToCPAN: '5.015' + Dist::Zilla::PluginBundle::Author::KENTNL: '2.013003' Dist::Zilla::PluginBundle::Author::KENTNL::Lite: 1.7.2 - Dist::Zilla::Role::PrereqSource: 5.006 - File::Copy::Recursive: 0.38 - Module::Build: 0.4203 - Module::Data: 0.012 - Moose: 2.1106 - MooseX::Types::Moose: 0.38 - Path::FindDev: 0.4.2 - Path::Tiny: 0.047 - Pod::Coverage::TrustPod: 0.100003 - Test::CPAN::Changes: 0.26 - Test::CPAN::Meta: 0.23 - Test::DZil: 5.006 - Test::Fatal: 0.013 - Test::Kwalitee: 1.17 - Test::More: 1.001002 - Test::Pod: 1.48 - Test::Pod::Coverage: 1.08 - strict: 1.08 - version: 0.9904 - warnings: 1.20 + Dist::Zilla::Role::PrereqSource: '5.015' + ExtUtils::MakeMaker: '6.96' + File::Copy::Recursive: '0.38' + File::Spec::Functions: '3.47' + FindBin: '1.51' + List::Util: '1.38' + Module::Data: '0.007' + Moose: '2.1205' + MooseX::Types::Moose: '0.44' + Path::Tiny: '0.052' + Pod::Coverage::TrustPod: '0.100003' + Test::CPAN::Changes: '0.27' + Test::CPAN::Meta: '0.23' + Test::DZil: '5.015' + Test::Fatal: '0.013' + Test::Kwalitee: '1.18' + Test::More: '1.001003' + Test::Pod: '1.48' + Test::Pod::Coverage: '1.08' + strict: '1.08' + utf8: '1.13' + version: '0.9908' + warnings: '1.23' perl: - original: v5.19.6 + original: v5.19.11 qv: 1 version: - 5 - 19 - - 6 + - 11 perl-config: - gccversion: 4.7.3 + gccversion: 4.8.2 myarchname: x86_64-linux osname: linux platform: linux - uname: 'Linux 3.12.0-gentoo x86_64 GenuineIntel GNU/Linux' + uname: 'Linux 3.14.0-gentoo x86_64 GenuineIntel GNU/Linux' x_Dist_Zilla: perl: - version: 5.019006 + version: '5.019011' plugins: - class: Dist::Zilla::Plugin::Bootstrap::lib config: Dist::Zilla::Role::Bootstrap: distname: Dist-Zilla-Plugin-Prereqs-MatchInstalled - fallback: 1 - try_built: 1 + fallback: '1' + try_built: '1' try_built_method: mtime name: Bootstrap::lib - version: 0.04000002 + version: '1.000001' - - class: Dist::Zilla::Plugin::Git::NextVersion - name: '@Author::KENTNL/Git::NextVersion' - version: 2.019 + class: Dist::Zilla::Plugin::Git::NextVersion::Sanitized + config: + Dist::Zilla::Plugin::Git::NextVersion: + first_version: '0.001000' + version_by_branch: '0' + version_regexp: (?^:^(.*)-source$) + Dist::Zilla::Role::Git::Repo: + repo_root: . + Dist::Zilla::Role::Version::Sanitize: + mantissa: '6' + normal_form: numify + name: '@Author::KENTNL/Git::NextVersion::Sanitized' + version: '0.001000' - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::KENTNL/MetaConfig' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::KENTNL/GithubMeta' - version: 0.42 - - - class: Dist::Zilla::Plugin::FinderCode - name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: 5.006 + version: '0.42' - class: Dist::Zilla::Plugin::MetaProvides::Package config: - Dist::Zilla::Plugin::MetaProvides::Package: {} + Dist::Zilla::Plugin::MetaProvides::Package: + finder_objects: + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '5.015' Dist::Zilla::Role::MetaProvider::Provider: - inherit_missing: 1 - inherit_version: 1 - meta_noindex: 1 + inherit_missing: '1' + inherit_version: '1' + meta_noindex: '1' name: '@Author::KENTNL/MetaProvides::Package' - version: 1.15000001 + version: '2.000001' - class: Dist::Zilla::Plugin::MetaData::BuiltWith config: Dist::Zilla::Plugin::MetaData::BuiltWith: _stash_key: x_BuiltWith - show_config: 1 - show_uname: 1 + show_config: '1' + show_uname: '1' uname: uname_args: - - '-s' - - '-o' - - '-r' - - '-m' - - '-i' + - -s + - -o + - -r + - -m + - -i uname_call: uname name: '@Author::KENTNL/MetaData::BuiltWith' - version: 0.04000002 + version: '0.04000002' - class: Dist::Zilla::Plugin::Git::GatherDir + config: + Dist::Zilla::Plugin::Git::GatherDir: + include_untracked: '0' + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::GatherDir' - version: 2.019 + version: '2.022' - class: Dist::Zilla::Plugin::License name: '@Author::KENTNL/License' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::KENTNL/MetaJSON' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::KENTNL/MetaYAML' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Manifest name: '@Author::KENTNL/Manifest' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::MetaTests name: '@Author::KENTNL/MetaTests' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::KENTNL/PodCoverageTests' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::KENTNL/PodSyntaxTests' - version: 5.006 + version: '5.015' - - class: Dist::Zilla::Plugin::ReportVersions::Tiny - name: '@Author::KENTNL/ReportVersions::Tiny' - version: 1.10 + class: Dist::Zilla::Plugin::Test::ReportPrereqs + name: '@Author::KENTNL/Test::ReportPrereqs' + version: '0.013' - class: Dist::Zilla::Plugin::Test::Kwalitee name: '@Author::KENTNL/Test::Kwalitee' - version: 2.07 + version: '2.07' - class: Dist::Zilla::Plugin::EOLTests name: '@Author::KENTNL/EOLTests' - version: 0.02 + version: '0.02' - class: Dist::Zilla::Plugin::Test::MinimumVersion name: '@Author::KENTNL/Test::MinimumVersion' - version: 2.000005 + version: '2.000005' - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Test::Compile::PerFile config: @@ -238,23 +260,19 @@ x_Dist_Zilla: test_template: 01-basic.t.tpl xt_mode: ~ name: '@Author::KENTNL/Test::Compile::PerFile' - version: 0.001001 + version: '0.002000' - class: Dist::Zilla::Plugin::Test::Perl::Critic name: '@Author::KENTNL/Test::Perl::Critic' - version: 2.112410 - - - class: Dist::Zilla::Plugin::PruneCruft - name: '@Author::KENTNL/PruneCruft' - version: 5.006 + version: '2.112410' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::KENTNL/ManifestSkip' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::PkgVersion name: '@Author::KENTNL/PkgVersion' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::PodWeaver config: @@ -266,197 +284,254 @@ x_Dist_Zilla: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' - version: 4.004 + version: '4.006' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' - version: 4.004 + version: '4.006' - - class: Pod::Weaver::Plugin::Encoding - name: '-Encoding' - version: 0.02 + class: Pod::Weaver::Plugin::SingleEncoding + name: -SingleEncoding + version: '4.006' - class: Pod::Weaver::Section::Name name: Name - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Version name: Version - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Region name: prelude - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Generic name: SYNOPSIS - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Generic name: DESCRIPTION - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Generic name: OVERVIEW - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Collect name: METHODS - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Collect name: ATTRIBUTES - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Collect name: PRIVATE_ATTRIBUTES - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Collect name: PRIVATE_METHODS - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Leftovers name: Leftovers - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Region name: postlude - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Authors name: Authors - version: 4.004 + version: '4.006' - class: Pod::Weaver::Section::Legal name: Legal - version: 4.004 + version: '4.006' name: '@Author::KENTNL/PodWeaver' - version: 4.002 + version: '4.005' - - class: Dist::Zilla::Plugin::NextRelease - name: '@Author::KENTNL/NextRelease' - version: 5.006 + class: Dist::Zilla::Plugin::Git::NextRelease + name: '@Author::KENTNL/Git::NextRelease' + version: '0.002010' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::KENTNL/AutoPrereqs' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: suggests - name: '@Author::KENTNL/Prereqs/BundleDevelSuggests' - version: 5.006 + name: '@Author::KENTNL/BundleDevelSuggests' + version: '5.015' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires - name: '@Author::KENTNL/Prereqs/BundleDevelRequires' - version: 5.006 + name: '@Author::KENTNL/BundleDevelRequires' + version: '5.015' - - class: Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - name: '@Author::KENTNL/Author::KENTNL::MinimumPerl' - version: 2.004001 + class: Dist::Zilla::Plugin::MinimumPerl + name: '@Author::KENTNL/MinimumPerl' + version: '1.003' - class: Dist::Zilla::Plugin::Authority name: '@Author::KENTNL/Authority' - version: 1.006 + version: '1.006' - - class: Dist::Zilla::Plugin::ModuleBuild - name: '@Author::KENTNL/ModuleBuild' - version: 5.006 + class: Dist::Zilla::Plugin::MakeMaker + config: + Dist::Zilla::Role::TestRunner: + default_jobs: 10 + name: '@Author::KENTNL/MakeMaker' + version: '5.015' - class: Dist::Zilla::Plugin::ReadmeFromPod name: '@Author::KENTNL/ReadmeFromPod' - version: 0.21 + version: '0.21' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod name: '@Author::KENTNL/ReadmeAnyFromPod' - version: 0.133290 + version: '0.141120' - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::KENTNL/Test::CPAN::Changes' - version: 0.008 + version: '0.008' - - class: Dist::Zilla::Plugin::CheckExtraTests - name: '@Author::KENTNL/CheckExtraTests' - version: 0.016 + class: Dist::Zilla::Plugin::RunExtraTests + config: + Dist::Zilla::Role::TestRunner: + default_jobs: 10 + name: '@Author::KENTNL/RunExtraTests' + version: '0.021' - class: Dist::Zilla::Plugin::TestRelease name: '@Author::KENTNL/TestRelease' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::KENTNL/ConfirmRelease' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Git::Check + config: + Dist::Zilla::Plugin::Git::Check: + untracked_files: die + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - dist.ini + - Changes + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::Check' - version: 2.019 + version: '2.022' - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/Git::Tag/tag_master' - version: 2.019 + config: + Dist::Zilla::Plugin::Git::Tag: + branch: ~ + signed: 0 + tag: 1.000000-source + tag_format: '%v-source' + tag_message: v%v + time_zone: local + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/tag_master' + version: '2.022' - class: Dist::Zilla::Plugin::Git::Commit + config: + Dist::Zilla::Plugin::Git::Commit: + add_files_in: [] + commit_msg: v%v%n%n%c + time_zone: local + Dist::Zilla::Role::Git::DirtyFiles: + allow_dirty: + - dist.ini + - Changes + allow_dirty_match: [] + changelog: Changes + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::Commit' - version: 2.019 + version: '2.022' - class: Dist::Zilla::Plugin::Git::CommitBuild + config: + Dist::Zilla::Plugin::Git::CommitBuild: + branch: build/%b + build_root: ~ + message: 'Build results of %h (on %b)' + multiple_inheritance: 0 + release_branch: releases + release_message: 'Build results of %h (on %b)' + Dist::Zilla::Role::Git::Repo: + repo_root: . name: '@Author::KENTNL/Git::CommitBuild' - version: 2.019 + version: '2.022' - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/Git::Tag/tag_release' - version: 2.019 + config: + Dist::Zilla::Plugin::Git::Tag: + branch: releases + signed: 0 + tag: '1.000000' + tag_format: '%v' + tag_message: v%v + time_zone: local + Dist::Zilla::Role::Git::Repo: + repo_root: . + name: '@Author::KENTNL/tag_release' + version: '2.022' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::KENTNL/UploadToCPAN' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Twitter name: '@Author::KENTNL/Twitter' - version: 0.024 + version: '0.025' - - class: Dist::Zilla::Plugin::Prereqs::MatchInstalled + class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled config: - Dist::Zilla::Plugin::Prereqs::MatchInstalled: - applyto: - - build.requires - - build.recommends - - build.suggests - - test.requires - - test.recommends - - test.suggests - - runtime.requires - - runtime.recommends - - runtime.suggests - - configure.requires - - configure.recommends - - configure.suggests - - develop.requires - - develop.recommends - - develop.suggests + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: + applyto_map: + - 'build.requires = build.recommends' + - 'test.requires = test.recommends' + - 'runtime.requires = runtime.recommends' + - 'configure.requires = configure.recommends' + - 'develop.requires = develop.recommends' applyto_phase: - build - test - runtime - configure - develop - applyto_relation: - - requires - - recommends - - suggests modules: - - Module::Build + - ExtUtils::MakeMaker - Test::More + name: '@Author::KENTNL/Prereqs::Recommend::MatchInstalled' + version: '0.001000' + - + class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + config: + Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: + applyto_map: + - 'develop.requires = develop.requires' + applyto_phase: + - develop + modules: - Dist::Zilla::PluginBundle::Author::KENTNL - name: '@Author::KENTNL/Prereqs::MatchInstalled' - version: 0.1.6 + name: '@Author::KENTNL/always_latest_develop_bundle' + version: '0.001000' - class: Dist::Zilla::Plugin::Prereqs config: @@ -464,7 +539,7 @@ x_Dist_Zilla: phase: develop type: requires name: '@Author::KENTNL/::Role::BundleDeps' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Prereqs config: @@ -472,7 +547,7 @@ x_Dist_Zilla: phase: runtime type: requires name: Prereqs - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::Prereqs::MatchInstalled config: @@ -510,34 +585,46 @@ x_Dist_Zilla: - Test::CPAN::Meta - Test::CPAN::Changes name: Prereqs::MatchInstalled - version: 0.1.6 + version: '1.000000' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: 5.006 + version: '5.015' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: 5.006 + version: '5.015' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':AllFiles' + version: '5.015' + - + class: Dist::Zilla::Plugin::FinderCode + name: ':NoFiles' + version: '5.015' + - + class: Dist::Zilla::Plugin::FinderCode + name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' + version: '5.015' zilla: class: Dist::Zilla::Dist::Builder config: - is_trial: 0 - version: 5.006 + is_trial: '0' + version: '5.015' x_authority: cpan:KENTNL diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..31156aa --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,84 @@ + +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.015. +use strict; +use warnings; + +use 5.008; + +use ExtUtils::MakeMaker 6.30; + + + +my %WriteMakefileArgs = ( + "ABSTRACT" => "Depend on versions of modules the same as you have installed", + "AUTHOR" => "Kent Fredric ", + "BUILD_REQUIRES" => {}, + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => "6.30" + }, + "DISTNAME" => "Dist-Zilla-Plugin-Prereqs-MatchInstalled", + "EXE_FILES" => [], + "LICENSE" => "perl", + "NAME" => "Dist::Zilla::Plugin::Prereqs::MatchInstalled", + "PREREQ_PM" => { + "Dist::Zilla::Role::PrereqSource" => 0, + "Module::Data" => 0, + "Moose" => 0, + "MooseX::Types::Moose" => 0, + "strict" => 0, + "utf8" => 0, + "warnings" => 0 + }, + "TEST_REQUIRES" => { + "ExtUtils::MakeMaker" => 0, + "File::Copy::Recursive" => 0, + "File::Spec::Functions" => 0, + "FindBin" => 0, + "List::Util" => 0, + "Path::Tiny" => 0, + "Test::DZil" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.89", + "version" => "0.9908" + }, + "VERSION" => "1.000000", + "test" => { + "TESTS" => "t/*.t t/00-compile/*.t" + } +); + + +my %FallbackPrereqs = ( + "Dist::Zilla::Role::PrereqSource" => 0, + "ExtUtils::MakeMaker" => 0, + "File::Copy::Recursive" => 0, + "File::Spec::Functions" => 0, + "FindBin" => 0, + "List::Util" => 0, + "Module::Data" => 0, + "Moose" => 0, + "MooseX::Types::Moose" => 0, + "Path::Tiny" => 0, + "Test::DZil" => 0, + "Test::Fatal" => 0, + "Test::More" => "0.89", + "strict" => 0, + "utf8" => 0, + "version" => "0.9908", + "warnings" => 0 +); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; +} + +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; + +WriteMakefile(%WriteMakefileArgs); + + + diff --git a/README b/README index 7b99f33..d59774e 100644 --- a/README +++ b/README @@ -3,12 +3,12 @@ NAME modules the same as you have installed VERSION - version 0.1.6 + version 1.000000 SYNOPSIS This is based on the code of - "Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective", but - intended for a wider audience. + "[Author::KENTNL::Prereqs::Latest::Selective]", but intended for a wider + audience. [Prereqs::MatchInstalled] module = My::Module @@ -74,7 +74,7 @@ SYNOPSIS module = perl - Does what you want, but you probably shouldn't rely on that =). + Does what you want, but you probably shouldn't rely on that :). METHODS mvp_multivalue_args @@ -167,7 +167,7 @@ AUTHOR Kent Fredric COPYRIGHT AND LICENSE - This software is copyright (c) 2013 by Kent Fredric + This software is copyright (c) 2014 by Kent Fredric . This is free software; you can redistribute it and/or modify it under diff --git a/dist.ini b/dist.ini index 839fbe1..4a348bb 100644 --- a/dist.ini +++ b/dist.ini @@ -9,8 +9,12 @@ copyright_holder = Kent Fredric try_built = 1 [@Author::KENTNL] -:version = 1.2.0 +:version = 2.012000 git_versions = 1 +normal_form = numify +mantissa = 6 +toolkit = eumm +toolkit_hardness = soft ; version_major = 0 ; version_minor = 1 ; the following data denotes when this minor was minted diff --git a/lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm b/lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm index 31cfa58..365e85f 100644 --- a/lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm +++ b/lib/Dist/Zilla/Plugin/Prereqs/MatchInstalled.pm @@ -1,22 +1,111 @@ +use 5.008; # 8 = utf8, 6 = pragmas , our, noparam varmethod, 4 = __PACKAGE__ use strict; use warnings; +use utf8; package Dist::Zilla::Plugin::Prereqs::MatchInstalled; -BEGIN { - $Dist::Zilla::Plugin::Prereqs::MatchInstalled::AUTHORITY = 'cpan:KENTNL'; -} -{ - $Dist::Zilla::Plugin::Prereqs::MatchInstalled::VERSION = '0.1.6'; -} - +$Dist::Zilla::Plugin::Prereqs::MatchInstalled::VERSION = '1.000000'; # ABSTRACT: Depend on versions of modules the same as you have installed -use Moose; +our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY + +use Moose qw( has around with ); use MooseX::Types::Moose qw( HashRef ArrayRef Str ); with 'Dist::Zilla::Role::PrereqSource'; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + has applyto_phase => ( is => ro =>, isa => ArrayRef [Str] =>, @@ -25,13 +114,37 @@ has applyto_phase => ( ); + + + + + + + + + + + + has applyto_relation => ( - is => ro => isa => ArrayRef [Str], + is => 'ro', + isa => ArrayRef [Str], lazy => 1, default => sub { [qw(requires recommends suggests)] }, ); + + + + + + + + + + + has applyto => ( is => ro =>, isa => ArrayRef [Str] =>, @@ -40,6 +153,13 @@ has applyto => ( ); + + + + + + + has _applyto_list => ( is => ro =>, isa => ArrayRef [ ArrayRef [Str] ], @@ -48,6 +168,19 @@ has _applyto_list => ( ); + + + + + + + + + + + + + has modules => ( is => ro =>, isa => ArrayRef [Str], @@ -56,6 +189,11 @@ has modules => ( ); + + + + + has _modules_hash => ( is => ro =>, isa => HashRef, @@ -64,6 +202,9 @@ has _modules_hash => ( ); + + + sub _build_applyto { my $self = shift; my @out; @@ -76,6 +217,9 @@ sub _build_applyto { } + + + sub _build__applyto_list { my $self = shift; my @out; @@ -90,36 +234,74 @@ sub _build__applyto_list { } + + + sub _build__modules_hash { my $self = shift; return { map { ( $_, 1 ) } @{ $self->modules } }; } + + + sub _user_wants_upgrade_on { my ( $self, $module ) = @_; return exists $self->_modules_hash->{$module}; } + + + + + + + + + + + + + + + + + sub mvp_multivalue_args { return qw(applyto applyto_relation applyto_phase modules) } + + + + + sub mvp_aliases { return { 'module' => 'modules' } } + + + + + + + + + sub current_version_of { - my ( $self, $package ) = @_; - if ( $package eq 'perl' ) { + my ( undef, $package ) = @_; + if ( 'perl' eq $package ) { # Thats not going to work, Dave. return $]; } require Module::Data; - my $data = Module::Data->new($package); - return if not $data; - return if not -e -f $data->path; - return $data->_version_emulate; + my $module_data = Module::Data->new($package); + return if not $module_data; + return if not -e $module_data->path; + return if -d $module_data->path; + return $module_data->_version_emulate; } around dump_config => sub { my ( $orig, $self ) = @_; @@ -135,12 +317,21 @@ around dump_config => sub { }; + + + + + + sub register_prereqs { my ($self) = @_; my $zilla = $self->zilla; my $prereqs = $zilla->prereqs; my $guts = $prereqs->cpan_meta_prereqs->{prereqs} || {}; + my $failmsg = q[]; + $failmsg .= q[You asked for the installed version of %s, ]; + $failmsg .= q[and it is a dependency but it is apparently not installed]; for my $applyto ( @{ $self->_applyto_list } ) { my ( $phase, $rel ) = @{$applyto}; next if not exists $guts->{$phase}; @@ -150,8 +341,7 @@ sub register_prereqs { next unless $self->_user_wants_upgrade_on($module); my $latest = $self->current_version_of($module); if ( not defined $latest ) { - $self->log( - [ q[You asked for the installed version of %s, and it is a dependency but it is apparently not installed], $module ] ); + $self->log( [ $failmsg, $module ] ); next; } $zilla->register_prereqs( { phase => $phase, type => $rel }, $module, $latest ); @@ -176,22 +366,26 @@ Dist::Zilla::Plugin::Prereqs::MatchInstalled - Depend on versions of modules the =head1 VERSION -version 0.1.6 +version 1.000000 =head1 SYNOPSIS -This is based on the code of L<< C|Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective >>, but intended for a wider audience. +This is based on the code of +L<< C<[Author::KENTNL::Prereqs::Latest::Selective]>|Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective >>, +but intended for a wider audience. [Prereqs::MatchInstalled] module = My::Module -If you want to automatically add B modules that are C, perhaps instead look at L<< C<[Prereqs::MatchInstalled::All]>|Dist::Zilla::Plugin::Prereqs::MatchInstalled::All >> +If you want to automatically add B modules that are C, perhaps instead look at +L<< C<[Prereqs::MatchInstalled::All]>|Dist::Zilla::Plugin::Prereqs::MatchInstalled::All >> B Dependencies will only be upgraded to match the I version if they're found elsewhere in the dependency tree. This is designed so that it integrates with other automated version provisioning. -If you're hard-coding module dependencies instead, you will want to place this module I other modules that declare dependencies. +If you're hard-coding module dependencies instead, you will want to place this module I other modules that declare +dependencies. For instance: @@ -237,7 +431,7 @@ And with a little glue module = perl -Does what you want, but you probably shouldn't rely on that =). +Does what you want, but you probably shouldn't rely on that :). =head1 METHODS @@ -318,7 +512,8 @@ Contains the list of modules that will be searched for in the existing C modules that are C, perhaps instead look at L<< C<[Prereqs::MatchInstalled::All]>|Dist::Zilla::Plugin::Prereqs::MatchInstalled::All >> +If you want to automatically add B modules that are C, perhaps instead look at +L<< C<[Prereqs::MatchInstalled::All]>|Dist::Zilla::Plugin::Prereqs::MatchInstalled::All >> =head1 PRIVATE ATTRIBUTES @@ -360,7 +555,7 @@ Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2013 by Kent Fredric . +This software is copyright (c) 2014 by Kent Fredric . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/maint-travis-ci/.gitrepo b/maint-travis-ci/.gitrepo new file mode 100644 index 0000000..13e08b5 --- /dev/null +++ b/maint-travis-ci/.gitrepo @@ -0,0 +1,11 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://github.com/kentfredric/travis-scripts.git + branch = master + commit = 05a379574e0582ec02d50406448464e99d3ca83d + parent = 99febc09bb12625529ecfd4556fa84f0caa8bbe4 + cmdver = 0.1.0 diff --git a/maint-travis-ci/.perltidyrc b/maint-travis-ci/.perltidyrc new file mode 100644 index 0000000..3af28b5 --- /dev/null +++ b/maint-travis-ci/.perltidyrc @@ -0,0 +1,2 @@ +-i 2 +-l 130 diff --git a/maint-travis-ci/create_github_repo.pl b/maint-travis-ci/create_github_repo.pl new file mode 100755 index 0000000..3499778 --- /dev/null +++ b/maint-travis-ci/create_github_repo.pl @@ -0,0 +1,38 @@ +#!/usr/bin/env perl +# FILENAME: create_github_repo.pl +# CREATED: 12/21/13 22:40:10 by Kent Fredric (kentnl) +# ABSTRACT: Create a github repo for the current repository + +use strict; +use warnings; +use utf8; +use Carp qw(croak); + +sub _git_config { + my $key = shift; + chomp( my $value = `git config --get $key` ); + croak "Unknown $key" unless $value; + return $value; +} + +if ( not @ARGV == 2 ) { + die "$0 Repo-Name-Here \"Some Description\""; +} + +my $github_user = _git_config('github.user'); +my $github_token = _git_config('github.token'); + +use Net::GitHub; +my $gh = Net::GitHub->new( access_token => $github_token ); +my $reponame = "git\@github.com:" . $github_user . "/" . $ARGV[0] . ".git"; +print "Creating $reponame \n"; + +my $rp = $gh->repos->create( + { + name => $ARGV[0], + description => $ARGV[1], + } +); + +system( 'git', 'remote', 'add', 'origin', $reponame ); + diff --git a/maint-travis-ci/install_deps.pl b/maint-travis-ci/install_deps.pl index 0664980..ab7277c 100644 --- a/maint-travis-ci/install_deps.pl +++ b/maint-travis-ci/install_deps.pl @@ -24,6 +24,8 @@ push @params, '--dev'; } if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) { + cpanm( @params, 'Devel::Confess' ); + $ENV{PERL5OPT} = '-MDevel::Confess'; cpanm( @params, 'Dist::Zilla', 'Capture::Tiny', 'Pod::Weaver' ); cpanm( @params, '--dev', 'Dist::Zilla~>5.002', 'Pod::Weaver' ); safe_exec( 'git', 'config', '--global', 'user.email', 'kentfredric+travisci@gmail.com' ); diff --git a/maint-travis-ci/install_deps_early.pl b/maint-travis-ci/install_deps_early.pl new file mode 100644 index 0000000..9a750df --- /dev/null +++ b/maint-travis-ci/install_deps_early.pl @@ -0,0 +1,47 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use utf8; + +use FindBin; +use lib "$FindBin::Bin/lib"; +use tools; + +if ( not env_exists('TRAVIS') ) { + diag('Is not running under travis!'); + exit 1; +} +if ( not env_exists('STERILIZE_ENV') ) { + diag("\e[31STERILIZE_ENV is not set, skipping, because this is probably Travis's Default ( and unwanted ) target"); + exit 0; +} + +# See https://github.com/dbsrgits/dbix-class/commit/8c11c33f8 +safe_exec_nonfatal( 'sudo', 'ip6tables', '-I', 'OUTPUT', '-d', 'api.metacpan.org', '-j', 'REJECT' ); +my (@params) = qw[ --quiet --notest --mirror http://cpan.metacpan.org/ --no-man-pages ]; +my ($branch) = $ENV{TRAVIS_BRANCH}; +my ($prefix) = './.travis_early_installdeps.'; + +$branch =~ s{/}{_}g; +my ($depsfile) = ( $prefix . $branch ); +my ($paramsfile) = ( $prefix . 'params.' . $branch ); + +if ( not( -e $depsfile and -f $depsfile ) ) { + diag("\e[31m$depsfile does not exist, no extra deps\e[0m"); + exit 0; +} + +my (@deps) = split /\n/, do { + open my $fh, '<', $depsfile; + local $/ = undef; + scalar <$fh>; +}; +if ( -e $paramsfile and -f $paramsfile ) { + push @params, split /\n/, do { + open my $fh, '<', $paramsfile; + local $/ = undef; + scalar <$fh>; + }; +} +cpanm( @params, @deps ); +exit 0; diff --git a/maint-travis-ci/lib/tools.pm b/maint-travis-ci/lib/tools.pm index 0da1620..4d43163 100644 --- a/maint-travis-ci/lib/tools.pm +++ b/maint-travis-ci/lib/tools.pm @@ -6,6 +6,11 @@ package tools; use Cwd qw(cwd); use Config; +sub capture_stdout(&) { + require Capture::Tiny; + goto &Capture::Tiny::capture_stdout; +} + sub diag { my $handle = \*STDERR; for (@_) { @@ -53,9 +58,11 @@ sub safe_exec { sub cpanm { my (@params) = @_; + my $cpanm_lines = 4000; my $exit_code = safe_exec_nonfatal( 'cpanm', @params ); if ( $exit_code != 0 ) { - safe_exec( 'tail', '-n', '200', '/home/travis/.cpanm/build.log' ); + diag("\e[32m cpanm \e[0m failed, showing last \e[31m$cpanm_lines\e[0m lines"); + safe_exec( 'tail', '-n', $cpanm_lines, '/home/travis/.cpanm/build.log' ); exit $exit_code; } return 1; @@ -108,6 +115,9 @@ my $sterile_deployed; sub deploy_sterile { return if $sterile_deployed; + cpanm( '--skip-satisfied', 'Capture::Tiny' ); + require Capture::Tiny; # load before we oblitterate everything. + fixup_sterile(); for my $key ( keys %Config ) { next unless $key =~ /(lib|arch)exp$/; @@ -123,6 +133,32 @@ sub deploy_sterile { safe_exec( 'rsync', '-a', '--delete-delay', $clean_path, $value ); } } + for my $key ( keys %Config ) { + next unless $key =~ /(prefix|bin|scriptdir|script)exp$/; + my $value = $Config{$key}; + next unless defined $value; + next unless length $value; + my $clean_path = '/tmp/perl5-sterile/' . $key; + diag("\e[32m?$clean_path\e[0m"); + if ( -e $clean_path and -d $clean_path ) { + diag("\e[31mPre-Cleaning $value\e[0m"); + my $content = capture_stdout { + safe_exec( 'find', $value, '-type', 'f', '-executable', '-print0' ); + }; + for my $file ( split /\0/, $content ) { + if ( -B $file ) { + diag("\e[33m: Protected\e[34m: $file\e[0m"); + next; + } + unlink $file; + diag("\e[31m: Removed:\e[34m: $file\e[0m"); + } + diag("\e[31mRsyncing over $value\e[0m"); + $clean_path =~ s{/?$}{/}; + $value =~ s{/?$}{/}; + safe_exec( 'rsync', '-a', $clean_path, $value ); + } + } } sub cpanm_fix { @@ -140,11 +176,6 @@ sub parse_meta_json { return CPAN::Meta->load_file( $_[0] ); } -sub capture_stdout(&) { - require Capture::Tiny; - goto &Capture::Tiny::capture_stdout; -} - sub import { my ( $self, @args ) = @_; diff --git a/maint-travis-ci/report_fail_ctx.pl b/maint-travis-ci/report_fail_ctx.pl index 29b8e21..8709ca0 100644 --- a/maint-travis-ci/report_fail_ctx.pl +++ b/maint-travis-ci/report_fail_ctx.pl @@ -8,6 +8,6 @@ use lib "$FindBin::Bin/lib"; use tools; -diag("\e[31mLast 1000 lines of cpanm build log\e[0m"); -safe_exec( 'tail', '-n', '1000', $ENV{HOME} . '/.cpanm/build.log' ); +diag("\e[31mLast 4000 lines of cpanm build log\e[0m"); +safe_exec( 'tail', '-n', '4000', $ENV{HOME} . '/.cpanm/build.log' ); diff --git a/maint-travis-ci/script.pl b/maint-travis-ci/script.pl index 67ae282..6ed15eb 100644 --- a/maint-travis-ci/script.pl +++ b/maint-travis-ci/script.pl @@ -21,15 +21,9 @@ exit 0; } if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) { - my $xtest = safe_exec_nonfatal( 'dzil', 'xtest' ); - my $test = safe_exec_nonfatal( 'dzil', 'test' ); - if ( $test != 0 ) { - exit $test; - } - if ( $xtest != 0 ) { - exit $xtest; - } - exit 0; + $ENV{HARNESS_OPTIONS} = 'j100:c'; + $ENV{PERL5OPT} = '-MDevel::Confess'; + safe_exec( 'dzil', 'test', '--release' ); } else { my @paths = './t'; diff --git a/maint-travis-ci/sync_tree.pl b/maint-travis-ci/sync_tree.pl index fbf2de9..6ca79e6 100755 --- a/maint-travis-ci/sync_tree.pl +++ b/maint-travis-ci/sync_tree.pl @@ -15,6 +15,10 @@ sub git_subtree { safe_exec( 'git', 'subtree', @_ ); } +sub git_subrepo { + safe_exec( 'git', 'subrepo', @_ ); +} + my $travis = 'https://github.com/kentfredric/travis-scripts.git'; my $prefix = 'maint-travis-ci'; @@ -22,6 +26,7 @@ sub git_subtree { for my $id ( 0 .. $#ARGV ) { my ($field) = $ARGV[$id]; + next unless $field; next unless $field =~ /^-+(.*?$)/; my ($field_name) = $1; my ($value) = $ARGV[ $id + 1 ]; @@ -36,16 +41,41 @@ sub git_subtree { $opts->{pushas} = $value; next; } + if ( $field_name eq 'mc' ) { + $opts->{has_commit} = 1; + $opts->{commit} = $value; + next; + } } if ( not $opts->{push} ) { + my $commitish = 'master'; + $commitish = $opts->{commit} if $opts->{has_commit}; + if ( not -d -e $root->child($prefix) ) { - git_subtree( 'add', '--prefix=' . $prefix, $travis, 'master' ); + if ( $ENV{"SUBREPO"} ) { + git_subrepo( 'clone', $travis, $prefix, '-b', $commitish ); + } + else { + git_subtree( 'add', '--squash', '--prefix=' . $prefix, $travis, $commitish ); + } } else { - git_subtree( 'pull', '-m', 'Synchronise git subtree maint-travis-ci', '--prefix=' . $prefix, $travis, 'master' ); + if ( $ENV{"SUBREPO"} ) { + git_subrepo( 'pull', $prefix, '-b', $commitish ); + } + else { + + git_subtree( + 'pull', '--squash', '-m', + 'Synchronise git subtree maint-travis-ci', + '--prefix=' . $prefix, + $travis, $commitish + ); + } } } else { + die "NO!" if $ENV{"SUBREPO"}; git_subtree( 'push', '--prefix=' . $prefix, $opts->{push_to}, $opts->{pushas} ); } diff --git a/maint-travis-ci/travis_enable.pl b/maint-travis-ci/travis_enable.pl new file mode 100755 index 0000000..a6b902b --- /dev/null +++ b/maint-travis-ci/travis_enable.pl @@ -0,0 +1,88 @@ +#!/usr/bin/env perl +use v5.10; +use strict; +use warnings; +use Carp; +use Net::GitHub; +use Getopt::Lucid ':all'; +use Path::Tiny; +use FindBin; + +my $yamls = path($FindBin::Bin)->child('yamls'); + +my $opts = Getopt::Lucid->getopt( + [ + #<<< No perltidy + Param('repo|r'), + #>>> + ] +); + +$opts->validate; + +sub _detect_repo { + my ($origin) = grep { /origin/ } `git remote -v`; + + die "Couldn't determine origin\n" unless $origin; + + chomp $origin; + $origin =~ s/^origin\s+//; + $origin =~ s/\s+\(.*$//; + if ( $origin =~ m{^.+?://github.com/([^/]+)/(.+)\.git$} ) { + return [ $1, $2 ]; + } + elsif ( $origin =~ m{^git\@github\.com:([^/]+)/(.+)\.git$} ) { + return [ $1, $2 ]; + } + else { + die "Can't determine repo name from '$origin'. Try manually with -r REPO\n"; + } +} + +sub _git_config { + my $key = shift; + chomp( my $value = `git config --get $key` ); + croak "Unknown $key" unless $value; + return $value; +} + +my $github_user = _git_config("github.user"); +my $github_token = _git_config("github.token"); +my $travis_token = _git_config("travis.token"); + +my $gh = Net::GitHub->new( access_token => $github_token ); + +my @repos; + +if ( $opts->get_repo ) { + @repos = $opts->get_repo; +} +else { + ( $github_user, @repos ) = @{ _detect_repo() }; +} + +my $hook_hash = { + name => 'travis', + config => { + token => $travis_token, + user => $github_user, + domain => '', + }, + events => [qw/push pull_request issue_comment public member/], + active => 1, +}; + +my $repos = $gh->repos; +$repos->set_default_user_repo( $github_user, $repos[0] ); +my $hook = eval { $repos->create_hook($hook_hash) }; +if ($@) { + say "Failed: $@"; +} +else { + say "Enabled travis for $repos[0]"; +} + +unless ( -f '.travis.yml' ) { + $yamls->child('sterile2.yaml')->copy('./.travis.yml'); + say "copied .travis.yml to current directory"; +} diff --git a/maint-travis-ci/yamls/sterile2.yaml b/maint-travis-ci/yamls/sterile2.yaml index 717a5f7..ba8fec7 100644 --- a/maint-travis-ci/yamls/sterile2.yaml +++ b/maint-travis-ci/yamls/sterile2.yaml @@ -23,6 +23,8 @@ matrix: env: STERILIZE_ENV=1 - perl: "5.10" env: STERILIZE_ENV=1 + - perl: "5.18" + env: STERILIZE_ENV=1 - perl: "5.19" env: STERILIZE_ENV=1 - perl: "5.19" @@ -34,6 +36,7 @@ before_install: - time perl ./maint-travis-ci/branch_reset.pl - time perl ./maint-travis-ci/sterilize_env.pl install: + - time perl ./maint-travis-ci/install_deps_early.pl - time perl ./maint-travis-ci/install_deps.pl before_script: - time perl ./maint-travis-ci/before_script.pl diff --git a/maint/perlcritic.rc.gen.pl b/maint/perlcritic.rc.gen.pl new file mode 100644 index 0000000..1e3c802 --- /dev/null +++ b/maint/perlcritic.rc.gen.pl @@ -0,0 +1,49 @@ +#!/usr/bin/env perl +## no critic (Modules::RequireVersionVar) + +# FILENAME: bundle_to_ini.pl +# CREATED: 02/06/14 01:48:56 by Kent Fredric (kentnl) +# ABSTRACT: Write an INI file from a bundle + +use 5.008; #utf8 +use strict; +use warnings; +use utf8; + +use Carp qw( croak carp ); +use Perl::Critic::ProfileCompiler::Util qw( create_bundle ); + +## no critic (ErrorHandling::RequireUseOfExceptions) +my $bundle = create_bundle('Example::Author::KENTNL'); +$bundle->configure; + +my @stopwords = ( + qw( + ) +); +for my $wordlist (@stopwords) { + $bundle->add_or_append_policy_field( 'Documentation::PodSpelling' => ( 'stop_words' => $wordlist ) ); +} + +#$bundle->remove_policy('ErrorHandling::RequireCarping'); +#$bundle->remove_policy('NamingConventions::Capitalization'); + +my $inf = $bundle->actionlist->get_inflated; + +my $config = $inf->apply_config; + +{ + open my $rcfile, '>', './perlcritic.rc' or croak 'Cant open perlcritic.rc'; + $rcfile->print( $config->as_ini, "\n" ); + close $rcfile or croak 'Something fubared closing perlcritic.rc'; +} +my $deps = $inf->own_deps; +{ + open my $depsfile, '>', './perlcritic.deps' or croak 'Cant open perlcritic.deps'; + for my $key ( sort keys %{$deps} ) { + $depsfile->printf( "%s~%s\n", $key, $deps->{$key} ); + *STDERR->printf( "%s => %s\n", $key, $deps->{$key} ); + } + close $depsfile or carp 'Something fubared closing perlcritic.deps'; +} + diff --git a/perlcritic.deps b/perlcritic.deps new file mode 100644 index 0000000..850f958 --- /dev/null +++ b/perlcritic.deps @@ -0,0 +1,14 @@ +Perl::Critic::Policy::Lax::RequireExplicitPackage::ExceptForPragmata~0 +Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter~0 +Perl::Critic::ProfileCompiler::Bundle::Bangs~0 +Perl::Critic::ProfileCompiler::Bundle::Compatibility~0 +Perl::Critic::ProfileCompiler::Bundle::Core~0 +Perl::Critic::ProfileCompiler::Bundle::Deprecated~0 +Perl::Critic::ProfileCompiler::Bundle::Itch~0 +Perl::Critic::ProfileCompiler::Bundle::Lax~0 +Perl::Critic::ProfileCompiler::Bundle::Moose~0 +Perl::Critic::ProfileCompiler::Bundle::More~0 +Perl::Critic::ProfileCompiler::Bundle::Pulp~0 +Perl::Critic::ProfileCompiler::Bundle::StricterSubs~0 +Perl::Critic::ProfileCompiler::Bundle::Swift~0 +Perl::Critic::ProfileCompiler::Bundle::Tics~0 diff --git a/perlcritic.rc b/perlcritic.rc index 8c0d884..078edf7 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -1,23 +1,455 @@ -severity = 1 -exclude = RequireTidyCode RequirePodSections ProhibitPostfixControls RequireRcsKeywords RequireExplicitPackage -include = Moose::ProhibitMultipleWiths Moose::ProhibitNewMethod Moose::RequireCleanNamespace Moose::RequireMakeImmutable color = 1 +color-severity-low = green +color-severity-medium = yellow +only = 1 +severity = 1 verbose = 9 +[Bangs::ProhibitBitwiseOperators] + +[Bangs::ProhibitCommentedOutCode] + +[Bangs::ProhibitDebuggingModules] + +[-Bangs::ProhibitFlagComments] + +[Bangs::ProhibitNoPlan] + +[Bangs::ProhibitNumberedNames] + +[Bangs::ProhibitRefProtoOrProto] + +[Bangs::ProhibitUselessRegexModifiers] + +[Bangs::ProhibitVagueNames] + +[BuiltinFunctions::ProhibitBooleanGrep] + +[BuiltinFunctions::ProhibitComplexMappings] + +[BuiltinFunctions::ProhibitLvalueSubstr] + +[BuiltinFunctions::ProhibitReverseSortBlock] + +[BuiltinFunctions::ProhibitSleepViaSelect] + [BuiltinFunctions::ProhibitStringyEval] allow_includes = 1 +[BuiltinFunctions::ProhibitStringySplit] + +[BuiltinFunctions::ProhibitUniversalCan] + +[BuiltinFunctions::ProhibitUniversalIsa] + +[BuiltinFunctions::ProhibitVoidGrep] + +[BuiltinFunctions::ProhibitVoidMap] + +[BuiltinFunctions::RequireBlockGrep] + +[BuiltinFunctions::RequireBlockMap] + +[BuiltinFunctions::RequireGlobFunction] + +[BuiltinFunctions::RequireSimpleSortBlock] + +[ClassHierarchies::ProhibitAutoloading] + +[ClassHierarchies::ProhibitExplicitISA] + +[ClassHierarchies::ProhibitOneArgBless] + +[CodeLayout::ProhibitFatCommaNewline] + +[CodeLayout::ProhibitHardTabs] + +[-CodeLayout::ProhibitHashBarewords] + +[CodeLayout::ProhibitIfIfSameLine] + +[CodeLayout::ProhibitParensWithBuiltins] + +[CodeLayout::ProhibitQuotedWordLists] + [CodeLayout::ProhibitTrailingWhitespace] +[-CodeLayout::RequireASCII] + +[CodeLayout::RequireConsistentNewlines] + +[CodeLayout::RequireFinalSemicolon] + +[-CodeLayout::RequireTidyCode] + +[CodeLayout::RequireTrailingCommaAtNewline] + +[CodeLayout::RequireTrailingCommas] + +[CodeLayout::RequireUseUTF8] + +[Compatibility::ConstantLeadingUnderscore] + +[Compatibility::ConstantPragmaHash] + +[Compatibility::Gtk2Constants] + +[Compatibility::PerlMinimumVersionAndWhy] + +[-Compatibility::PodMinimumVersion] + +[Compatibility::ProhibitThreeArgumentOpen] + +[Compatibility::ProhibitUnixDevNull] + +[ControlStructures::ProhibitCStyleForLoops] + +[ControlStructures::ProhibitCascadingIfElse] + +[ControlStructures::ProhibitDeepNests] + +[ControlStructures::ProhibitLabelsWithSpecialBlockNames] + +[ControlStructures::ProhibitMutatingListFunctions] + +[ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions] + +[-ControlStructures::ProhibitPostfixControls] + +[ControlStructures::ProhibitUnlessBlocks] + +[ControlStructures::ProhibitUnreachableCode] + +[ControlStructures::ProhibitUntilBlocks] + [Documentation::PodSpelling] -stop_words = +spell_command = aspell list --lang en_US + +[Documentation::ProhibitAdjacentLinks] + +[Documentation::ProhibitBadAproposMarkup] + +[Documentation::ProhibitDuplicateHeadings] + +[Documentation::ProhibitDuplicateSeeAlso] + +[Documentation::ProhibitLinkToSelf] + +[Documentation::ProhibitParagraphEndComma] + +[Documentation::ProhibitParagraphTwoDots] + +[Documentation::ProhibitUnbalancedParens] + +[Documentation::ProhibitVerbatimMarkup] + +[Documentation::RequireEndBeforeLastPod] + +[Documentation::RequireFinalCut] + +[Documentation::RequireLinkedURLs] + +[-Documentation::RequirePODUseEncodingUTF8] + +[Documentation::RequirePackageMatchesPodName] + +[Documentation::RequirePodAtEnd] + +[Documentation::RequirePodLinksIncludeText] + +[-Documentation::RequirePodSections] + +[-Editor::RequireEmacsFileVariables] + +[ErrorHandling::RequireCarping] + +[ErrorHandling::RequireCheckingReturnValueOfEval] + +[ErrorHandling::RequireUseOfExceptions] + +[InputOutput::ProhibitBacktickOperators] + +[InputOutput::ProhibitBarewordFileHandles] + +[InputOutput::ProhibitExplicitStdin] + +[InputOutput::ProhibitInteractiveTest] + +[InputOutput::ProhibitJoinedReadline] + +[InputOutput::ProhibitOneArgSelect] + +[InputOutput::ProhibitReadlineInForLoop] + +[InputOutput::ProhibitTwoArgOpen] + +[InputOutput::RequireBracedFileHandleWithPrint] + +[InputOutput::RequireBriefOpen] + +[InputOutput::RequireCheckedClose] + +[InputOutput::RequireCheckedOpen] + +[InputOutput::RequireCheckedSyscalls] + +[InputOutput::RequireEncodingWithUTF8Layer] + +[Lax::ProhibitComplexMappings::LinesNotStatements] + +[Lax::ProhibitEmptyQuotes::ExceptAsFallback] + +[Lax::ProhibitLeadingZeros::ExceptChmod] + +[Lax::ProhibitStringyEval::ExceptForRequire] + +[Lax::RequireEndWithTrueConst] + +[Lax::RequireExplicitPackage::ExceptForPragmata] +allowed_pragmata = diagnostics feature perlversion strict warnings utf8 + +[Miscellanea::ProhibitFormats] + +[Miscellanea::ProhibitTies] + +[Miscellanea::ProhibitUnrestrictedNoCritic] + +[-Miscellanea::ProhibitUselessNoCritic] + +[-Miscellanea::RequireRcsKeywords] + +[Miscellanea::TextDomainPlaceholders] + +[Miscellanea::TextDomainUnused] + +[Modules::PerlMinimumVersion] + +[Modules::ProhibitAutomaticExportation] + +[Modules::ProhibitConditionalUseStatements] + +[Modules::ProhibitEvilModules] + +[Modules::ProhibitExcessMainComplexity] + +[Modules::ProhibitModuleShebang] + +[Modules::ProhibitMultiplePackages] + +[Modules::ProhibitPOSIXimport] + +[Modules::ProhibitUseQuotedVersion] + +[Modules::RequireBarewordIncludes] + +[Modules::RequireEndWithOne] + +[-Modules::RequireExplicitInclusion] + +[-Modules::RequireExplicitPackage] + +[Modules::RequireFilenameMatchesPackage] + +[Modules::RequireNoMatchVarsWithUseEnglish] + +[Modules::RequirePerlVersion] + +[Modules::RequireVersionVar] + +[-Moose::ProhibitMultipleWiths] + +[Moose::ProhibitNewMethod] + +[Moose::RequireCleanNamespace] + +[Moose::RequireMakeImmutable] + +[NamingConventions::Capitalization] + +[NamingConventions::ProhibitAmbiguousNames] + +[NamingConventions::ProhibitMixedCaseSubs] + +[NamingConventions::ProhibitMixedCaseVars] + +[Objects::ProhibitIndirectSyntax] + +[References::ProhibitDoubleSigils] + +[RegularExpressions::ProhibitCaptureWithoutTest] + +[RegularExpressions::ProhibitComplexRegexes] + +[RegularExpressions::ProhibitEnumeratedClasses] + +[RegularExpressions::ProhibitEscapedMetacharacters] + +[RegularExpressions::ProhibitFixedStringMatches] + +[RegularExpressions::ProhibitSingleCharAlternation] + +[RegularExpressions::ProhibitUnusedCapture] + +[RegularExpressions::ProhibitUnusualDelimiters] + +[RegularExpressions::RequireBracesForMultiline] + +[RegularExpressions::RequireDotMatchAnything] + +[RegularExpressions::RequireExtendedFormatting] + +[RegularExpressions::RequireLineBoundaryMatching] + +[Subroutines::ProhibitAmpersandSigils] + +[Subroutines::ProhibitBuiltinHomonyms] + +[Subroutines::ProhibitCallsToUndeclaredSubs] + +[Subroutines::ProhibitCallsToUnexportedSubs] + +[Subroutines::ProhibitExcessComplexity] + +[Subroutines::ProhibitExplicitReturnUndef] + +[Subroutines::ProhibitExportingUndeclaredSubs] + +[Subroutines::ProhibitManyArgs] + +[Subroutines::ProhibitNestedSubs] + +[Subroutines::ProhibitQualifiedSubDeclarations] + +[Subroutines::ProhibitReturnSort] + +[Subroutines::ProhibitSubroutinePrototypes] [Subroutines::ProhibitUnusedPrivateSubroutines] private_name_regex = _(?!build_)\w +[Subroutines::ProtectPrivateSubs] + +[Subroutines::RequireArgUnpacking] + +[Subroutines::RequireFinalReturn] + +[TestingAndDebugging::ProhibitNoStrict] + +[TestingAndDebugging::ProhibitNoWarnings] + +[TestingAndDebugging::ProhibitProlongedStrictureOverride] + +[TestingAndDebugging::RequireTestLabels] + [TestingAndDebugging::RequireUseStrict] -equivalent_modules = Moose +equivalent_modules = Moose Moo [TestingAndDebugging::RequireUseWarnings] -equivalent_modules = Moose +equivalent_modules = Moose Moo + +[Tics::ProhibitLongLines] +base_max = 130 + +[Tics::ProhibitManyArrows] + +[Tics::ProhibitUseBase] + +[ValuesAndExpressions::ConstantBeforeLt] + +[ValuesAndExpressions::NotWithCompare] + +[ValuesAndExpressions::ProhibitArrayAssignAref] + +[ValuesAndExpressions::ProhibitBarewordDoubleColon] + +[ValuesAndExpressions::ProhibitCommaSeparatedStatements] + +[ValuesAndExpressions::ProhibitComplexVersion] + +[ValuesAndExpressions::ProhibitConstantPragma] + +[ValuesAndExpressions::ProhibitDuplicateHashKeys] + +[-ValuesAndExpressions::ProhibitEmptyCommas] + +[ValuesAndExpressions::ProhibitEmptyQuotes] + +[ValuesAndExpressions::ProhibitEscapedCharacters] + +[ValuesAndExpressions::ProhibitFiletest_f] + +[ValuesAndExpressions::ProhibitImplicitNewlines] + +[ValuesAndExpressions::ProhibitInterpolationOfLiterals] + +[ValuesAndExpressions::ProhibitLeadingZeros] + +[ValuesAndExpressions::ProhibitLongChainsOfMethodCalls] + +[-ValuesAndExpressions::ProhibitMagicNumbers] + +[ValuesAndExpressions::ProhibitMismatchedOperators] + +[ValuesAndExpressions::ProhibitMixedBooleanOperators] + +[ValuesAndExpressions::ProhibitNoisyQuotes] + +[ValuesAndExpressions::ProhibitNullStatements] + +[ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters] + +[ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator] + +[ValuesAndExpressions::ProhibitUnknownBackslash] + +[ValuesAndExpressions::ProhibitVersionStrings] + +[ValuesAndExpressions::RequireConstantOnLeftSideOfEquality] + +[ValuesAndExpressions::RequireConstantVersion] + +[ValuesAndExpressions::RequireInterpolationOfMetachars] + +[ValuesAndExpressions::RequireNumberSeparators] + +[ValuesAndExpressions::RequireNumericVersion] + +[ValuesAndExpressions::RequireQuotedHeredocTerminator] + +[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] + +[ValuesAndExpressions::RestrictLongStrings] + +[ValuesAndExpressions::UnexpandedSpecialLiteral] + +[Variables::ProhibitAugmentedAssignmentInDeclaration] + +[Variables::ProhibitConditionalDeclarations] + +[Variables::ProhibitEvilVariables] + +[Variables::ProhibitLocalVars] + +[Variables::ProhibitMatchVars] + +[Variables::ProhibitPackageVars] + +[Variables::ProhibitPerl4PackageNames] + +[-Variables::ProhibitPunctuationVars] + +[Variables::ProhibitReusedNames] + +[Variables::ProhibitUnusedVariables] + +[Variables::ProhibitUnusedVarsStricter] + +[Variables::ProtectPrivateVars] + +[Variables::RequireInitializationForLocalVars] + +[Variables::RequireLexicalLoopIterators] + +[Variables::RequireLocalizedPunctuationVars] +[Variables::RequireNegativeIndices] diff --git a/t/00-compile/lib_Dist_Zilla_Plugin_Prereqs_MatchInstalled_pm.t b/t/00-compile/lib_Dist_Zilla_Plugin_Prereqs_MatchInstalled_pm.t index db2c5a8..05fe0b5 100644 --- a/t/00-compile/lib_Dist_Zilla_Plugin_Prereqs_MatchInstalled_pm.t +++ b/t/00-compile/lib_Dist_Zilla_Plugin_Prereqs_MatchInstalled_pm.t @@ -2,7 +2,7 @@ use strict; use warnings; # This test was generated for -# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.001001 +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002000 # with template 01-basic.t.tpl use Test::More 0.89 tests => 1; diff --git a/t/00-report-prereqs.t b/t/00-report-prereqs.t new file mode 100644 index 0000000..0455cde --- /dev/null +++ b/t/00-report-prereqs.t @@ -0,0 +1,233 @@ +#!perl + +use strict; +use warnings; + +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013 + +use Test::More tests => 1; + +use ExtUtils::MakeMaker; +use File::Spec::Functions; +use List::Util qw/max/; +use version; + +# hide optional CPAN::Meta modules from prereq scanner +# and check if they are available +my $cpan_meta = "CPAN::Meta"; +my $cpan_meta_req = "CPAN::Meta::Requirements"; +my $HAS_CPAN_META = eval "require $cpan_meta"; ## no critic +my $HAS_CPAN_META_REQ = eval "require $cpan_meta_req; $cpan_meta_req->VERSION('2.120900')"; + +# Verify requirements? +my $DO_VERIFY_PREREQS = 1; + +sub _merge_requires { + my ($collector, $prereqs) = @_; + for my $phase ( qw/configure build test runtime develop/ ) { + next unless exists $prereqs->{$phase}; + if ( my $req = $prereqs->{$phase}{'requires'} ) { + my $cmr = CPAN::Meta::Requirements->from_string_hash( $req ); + $collector->add_requirements( $cmr ); + } + } +} + +my %include = map {; $_ => 1 } qw( + +); + +my %exclude = map {; $_ => 1 } qw( + +); + +# Add static prereqs to the included modules list +my $static_prereqs = do { my $x = { + 'configure' => { + 'recommends' => { + 'ExtUtils::MakeMaker' => '6.96' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '6.30' + } + }, + 'develop' => { + 'requires' => { + 'Dist::Zilla::Plugin::Authority' => '1.006', + 'Dist::Zilla::Plugin::AutoPrereqs' => '0', + 'Dist::Zilla::Plugin::ConfirmRelease' => '0', + 'Dist::Zilla::Plugin::EOLTests' => '0', + 'Dist::Zilla::Plugin::Git::Check' => '0', + 'Dist::Zilla::Plugin::Git::Commit' => '0', + 'Dist::Zilla::Plugin::Git::CommitBuild' => '0', + 'Dist::Zilla::Plugin::Git::GatherDir' => '0', + 'Dist::Zilla::Plugin::Git::NextRelease' => '0', + 'Dist::Zilla::Plugin::Git::NextVersion::Sanitized' => '0', + 'Dist::Zilla::Plugin::Git::Tag' => '0', + 'Dist::Zilla::Plugin::GithubMeta' => '0', + 'Dist::Zilla::Plugin::License' => '0', + 'Dist::Zilla::Plugin::MakeMaker' => '0', + 'Dist::Zilla::Plugin::Manifest' => '0', + 'Dist::Zilla::Plugin::ManifestSkip' => '0', + 'Dist::Zilla::Plugin::MetaConfig' => '0', + 'Dist::Zilla::Plugin::MetaData::BuiltWith' => '0', + 'Dist::Zilla::Plugin::MetaJSON' => '0', + 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.14000001', + 'Dist::Zilla::Plugin::MetaTests' => '0', + 'Dist::Zilla::Plugin::MetaYAML' => '0', + 'Dist::Zilla::Plugin::MinimumPerl' => '0', + 'Dist::Zilla::Plugin::PkgVersion' => '0', + 'Dist::Zilla::Plugin::PodCoverageTests' => '0', + 'Dist::Zilla::Plugin::PodSyntaxTests' => '0', + 'Dist::Zilla::Plugin::PodWeaver' => '0', + 'Dist::Zilla::Plugin::Prereqs' => '0', + 'Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled' => '0', + 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0', + 'Dist::Zilla::Plugin::ReadmeFromPod' => '0', + 'Dist::Zilla::Plugin::RunExtraTests' => '0', + 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0', + 'Dist::Zilla::Plugin::Test::Compile::PerFile' => '0', + 'Dist::Zilla::Plugin::Test::Kwalitee' => '0', + 'Dist::Zilla::Plugin::Test::MinimumVersion' => '0', + 'Dist::Zilla::Plugin::Test::Perl::Critic' => '0', + 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0', + 'Dist::Zilla::Plugin::TestRelease' => '0', + 'Dist::Zilla::Plugin::Twitter' => '0', + 'Dist::Zilla::Plugin::UploadToCPAN' => '0', + 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.013003', + 'Pod::Coverage::TrustPod' => '0', + 'Test::CPAN::Changes' => '0.27', + 'Test::CPAN::Meta' => '0.23', + 'Test::Kwalitee' => '1.12', + 'Test::Pod' => '1.48', + 'Test::Pod::Coverage' => '1.08' + }, + 'suggests' => { + 'Dist::Zilla::PluginBundle::Author::KENTNL::Lite' => 'v1.3.0' + } + }, + 'runtime' => { + 'requires' => { + 'Dist::Zilla::Role::PrereqSource' => '0', + 'Module::Data' => '0', + 'Moose' => '0', + 'MooseX::Types::Moose' => '0', + 'perl' => '5.008', + 'strict' => '0', + 'utf8' => '0', + 'warnings' => '0' + } + }, + 'test' => { + 'recommends' => { + 'CPAN::Meta' => '0', + 'CPAN::Meta::Requirements' => '2.120900', + 'ExtUtils::MakeMaker' => '6.96', + 'Test::More' => '1.001003' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0', + 'File::Copy::Recursive' => '0', + 'File::Spec::Functions' => '0', + 'FindBin' => '0', + 'List::Util' => '0', + 'Path::Tiny' => '0', + 'Test::DZil' => '0', + 'Test::Fatal' => '0', + 'Test::More' => '0.89', + 'version' => '0.9908' + } + } + }; + $x; + }; + +delete $static_prereqs->{develop} if not $ENV{AUTHOR_TESTING}; +$include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$static_prereqs; + +# Merge requirements for major phases (if we can) +my $all_requires; +if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) { + $all_requires = $cpan_meta_req->new; + _merge_requires($all_requires, $static_prereqs); +} + + +# Add dynamic prereqs to the included modules list (if we can) +my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; +if ( $source && $HAS_CPAN_META ) { + if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { + my $dynamic_prereqs = $meta->prereqs; + delete $dynamic_prereqs->{develop} if not $ENV{AUTHOR_TESTING}; + $include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$dynamic_prereqs; + + if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) { + _merge_requires($all_requires, $dynamic_prereqs); + } + } +} +else { + $source = 'static metadata'; +} + +my @modules = sort grep { ! $exclude{$_} } keys %include; +my @reports = [qw/Version Module/]; +my @dep_errors; +my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {}; + +for my $mod ( @modules ) { + next if $mod eq 'perl'; + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e catfile($_, $file) } @INC; + if ( $prefix ) { + my $ver = MM->parse_version( catfile($prefix, $file) ); + $ver = "undef" unless defined $ver; # Newer MM should do this anyway + push @reports, [$ver, $mod]; + + if ( $DO_VERIFY_PREREQS && $all_requires ) { + my $req = $req_hash->{$mod}; + if ( defined $req && length $req ) { + if ( ! defined eval { version->parse($ver) } ) { + push @dep_errors, "$mod version '$ver' cannot be parsed (version '$req' required)"; + } + elsif ( ! $all_requires->accepts_module( $mod => $ver ) ) { + push @dep_errors, "$mod version '$ver' is not in required range '$req'"; + } + } + } + + } + else { + push @reports, ["missing", $mod]; + + if ( $DO_VERIFY_PREREQS && $all_requires ) { + my $req = $req_hash->{$mod}; + if ( defined $req && length $req ) { + push @dep_errors, "$mod is not installed (version '$req' required)"; + } + } + } +} + +if ( @reports ) { + my $vl = max map { length $_->[0] } @reports; + my $ml = max map { length $_->[1] } @reports; + splice @reports, 1, 0, ["-" x $vl, "-" x $ml]; + diag "\nVersions for all modules listed in $source (including optional ones):\n", + map {sprintf(" %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports; +} + +if ( @dep_errors ) { + diag join("\n", + "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", + "The following REQUIRED prerequisites were not satisfied:\n", + @dep_errors, + "\n" + ); +} + +pass; + +# vim: ts=4 sts=4 sw=4 et: diff --git a/t/000-report-versions-tiny.t b/t/000-report-versions-tiny.t deleted file mode 100644 index 57de1df..0000000 --- a/t/000-report-versions-tiny.t +++ /dev/null @@ -1,83 +0,0 @@ -use strict; -use warnings; -use Test::More 0.88; -# This is a relatively nice way to avoid Test::NoWarnings breaking our -# expectations by adding extra tests, without using no_plan. It also helps -# avoid any other test module that feels introducing random tests, or even -# test plans, is a nice idea. -our $success = 0; -END { $success && done_testing; } - -# List our own version used to generate this -my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n"; - -eval { # no excuses! - # report our Perl details - my $want = 'v5.10.0'; - $v .= "perl: $] (wanted $want) on $^O from $^X\n\n"; -}; -defined($@) and diag("$@"); - -# Now, our module version dependencies: -sub pmver { - my ($module, $wanted) = @_; - $wanted = " (want $wanted)"; - my $pmver; - eval "require $module;"; - if ($@) { - if ($@ =~ m/Can't locate .* in \@INC/) { - $pmver = 'module not found.'; - } else { - diag("${module}: $@"); - $pmver = 'died during require.'; - } - } else { - my $version; - eval { $version = $module->VERSION; }; - if ($@) { - diag("${module}: $@"); - $pmver = 'died during VERSION check.'; - } elsif (defined $version) { - $pmver = "$version"; - } else { - $pmver = ''; - } - } - - # So, we should be good, right? - return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); -} - -eval { $v .= pmver('Cwd','any version') }; -eval { $v .= pmver('Dist::Zilla::Role::PrereqSource','any version') }; -eval { $v .= pmver('File::Copy::Recursive','any version') }; -eval { $v .= pmver('Module::Build','0.4203') }; -eval { $v .= pmver('Module::Data','any version') }; -eval { $v .= pmver('Moose','any version') }; -eval { $v .= pmver('MooseX::Types::Moose','any version') }; -eval { $v .= pmver('Path::FindDev','any version') }; -eval { $v .= pmver('Path::Tiny','any version') }; -eval { $v .= pmver('Test::DZil','any version') }; -eval { $v .= pmver('Test::Fatal','any version') }; -eval { $v .= pmver('Test::More','1.001002') }; -eval { $v .= pmver('strict','any version') }; -eval { $v .= pmver('warnings','any version') }; - - -# All done. -$v .= <<'EOT'; - -Thanks for using my code. I hope it works for you. -If not, please try and include this output in the bug report. -That will help me reproduce the issue and solve your problem. - -EOT - -diag($v); -ok(1, "we really didn't test anything, just reporting data"); -$success = 1; - -# Work around another nasty module on CPAN. :/ -no warnings 'once'; -$Template::Test::NO_FLUSH = 1; -exit 0; diff --git a/t/01-basic.t b/t/01-basic.t index 1780b81..240ba94 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -2,21 +2,22 @@ use strict; use warnings; use Test::More; -use Path::FindDev qw( find_dev ); use Path::Tiny; -use Cwd qw( cwd ); use File::Copy::Recursive qw( rcopy ); use Test::DZil; +use FindBin; use Test::Fatal; my $dist = 'fake_dist_01'; -my $source = find_dev('./')->child('corpus')->child($dist); +my $source = path($FindBin::Bin)->parent->child('corpus')->child($dist); my $tempdir = Path::Tiny->tempdir; rcopy( "$source", "$tempdir" ); -BAIL_OUT("test setup failed to copy to tempdir") if not -e -f $tempdir->child("dist.ini"); +my $distini = $tempdir->child('dist.ini'); + +BAIL_OUT("test setup failed to copy to tempdir") if not -e $distini or -d $distini; is( exception { diff --git a/weaver.ini b/weaver.ini index 7fb633e..e6f2b37 100644 --- a/weaver.ini +++ b/weaver.ini @@ -1,5 +1,5 @@ [@CorePrep] -[-Encoding] +[-SingleEncoding] [Name] [Version] diff --git a/xt/release/distmeta.t b/xt/release/distmeta.t index b46c7fc..c2280dc 100644 --- a/xt/release/distmeta.t +++ b/xt/release/distmeta.t @@ -1,7 +1,6 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::MetaTests. -use Test::More; +use Test::CPAN::Meta; -eval "use Test::CPAN::Meta"; -plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@; meta_yaml_ok(); diff --git a/xt/release/pod-coverage.t b/xt/release/pod-coverage.t index b52218b..66b3b64 100644 --- a/xt/release/pod-coverage.t +++ b/xt/release/pod-coverage.t @@ -1,13 +1,7 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. -use Test::More; - -eval "use Test::Pod::Coverage 1.08"; -plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" - if $@; - -eval "use Pod::Coverage::TrustPod"; -plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" - if $@; +use Test::Pod::Coverage 1.08; +use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff --git a/xt/release/pod-syntax.t b/xt/release/pod-syntax.t index 8a22900..f0468f1 100644 --- a/xt/release/pod-syntax.t +++ b/xt/release/pod-syntax.t @@ -1,7 +1,6 @@ #!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; +use Test::Pod 1.41; all_pod_files_ok();