From 04f1f3c6a8f31b94b777f5f4b39114a4e3f216a7 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Sat, 16 Aug 2014 12:45:03 +1200 Subject: [PATCH] Build results of df3386e (on master) --- .travis.yml | 14 +- Changes | 19 +++ MANIFEST | 2 +- META.json | 159 ++++++++++--------- META.yml | 154 +++++++++--------- Makefile.PL | 18 +-- README | 2 +- dist.ini | 9 +- lib/CPAN/Changes/Group/Dependencies/Stats.pm | 31 +--- misc/Changes.deps | 12 +- misc/Changes.deps.all | 25 ++- misc/Changes.deps.dev | 9 +- misc/Changes.deps.opt | 10 +- t/00-report-prereqs.dd | 15 +- t/00-report-prereqs.t | 64 +++++--- 15 files changed, 295 insertions(+), 248 deletions(-) diff --git a/.travis.yml b/.travis.yml index b4391d0..38a6708 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,23 +15,23 @@ matrix: env: STERILIZE_ENV=0 - perl: "5.16" env: STERILIZE_ENV=0 - - perl: "5.18" + - perl: "5.20" env: STERILIZE_ENV=0 - - perl: "5.19" + - perl: "5.21" env: STERILIZE_ENV=0 - perl: "5.8" env: STERILIZE_ENV=1 - perl: "5.10" env: STERILIZE_ENV=1 - - perl: "5.18" + - perl: "5.20" env: STERILIZE_ENV=1 - - perl: "5.19" + - perl: "5.21" env: STERILIZE_ENV=1 - - perl: "5.19" + - perl: "5.21" env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - - perl: "5.19" + - perl: "5.21" env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - - perl: "5.19" + - perl: "5.21" env: STERILIZE_ENV=0 COVERAGE_TESTING=1 before_install: - perlbrew list diff --git a/Changes b/Changes index 9ae0870..a6d1813 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,24 @@ Release history for CPAN-Changes-Group-Dependencies-Stats +0.002003 2014-08-15T21:13:47Z + [00 Trivial] + - CPANDAY! + - no code changes. + - tests augmented. + - whitespace adjusted. + + [Dependencies::Stats] + - Dependencies changed since 0.002002, see misc/*.deps* for details + - configure: ↓1 + - develop: +1 (suggests: ↑1) + - test: -4 (recommends: ↑1 -2) + + [Misc] + - Improve source side POD to reduce build side whitespace + + [Tests] + - update Test::ReportPrereqs + 0.002002 2014-07-26T05:30:18Z [Bugfix] - Properly adapt to fixed 0.30 diff --git a/MANIFEST b/MANIFEST index 4d0ff81..2cad9ae 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020. .gitignore .perltidyrc .travis.yml diff --git a/META.json b/META.json index 6ee4ef2..d600f85 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "Kent Fredric " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141520", + "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060", "license" : [ "perl_5" ], @@ -19,7 +19,7 @@ "ExtUtils::MakeMaker" : "6.98" }, "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { @@ -33,6 +33,7 @@ "Dist::Zilla::Plugin::Git::Check" : "0", "Dist::Zilla::Plugin::Git::Commit" : "0", "Dist::Zilla::Plugin::Git::CommitBuild" : "0", + "Dist::Zilla::Plugin::Git::Contributors" : "0.006", "Dist::Zilla::Plugin::Git::GatherDir" : "0", "Dist::Zilla::Plugin::Git::NextRelease" : "0", "Dist::Zilla::Plugin::Git::Tag" : "0", @@ -75,7 +76,7 @@ }, "suggests" : { "Dist::Zilla::App::Command::bakeini" : "0.001001", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016004" + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002" } }, "runtime" : { @@ -94,9 +95,7 @@ }, "test" : { "recommends" : { - "CPAN::Meta" : "0", - "CPAN::Meta::Prereqs" : "0", - "CPAN::Meta::Requirements" : "2.120900", + "CPAN::Meta" : "2.120900", "ExtUtils::MakeMaker" : "6.98", "Test::More" : "1.001003" }, @@ -104,19 +103,15 @@ "CPAN::Changes::Release" : "0", "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", - "File::Spec::Functions" : "0", - "List::Util" : "0", - "Scalar::Util" : "0", "Test::Differences" : "0", - "Test::More" : "0.89", - "version" : "0.77" + "Test::More" : "0.89" } } }, "provides" : { "CPAN::Changes::Group::Dependencies::Stats" : { "file" : "lib/CPAN/Changes/Group/Dependencies/Stats.pm", - "version" : "0.002002" + "version" : "0.002003" } }, "release_status" : "stable", @@ -131,7 +126,7 @@ "web" : "https://github.com/kentnl/CPAN-Changes-Group-Dependencies-Stats" } }, - "version" : "0.002002", + "version" : "0.002003", "x_BuiltWith" : { "failures" : { "CPAN::Changes::Group" : "Module::MetaData could not parse a version from /home/kent/perl5/perlbrew/perls/5.21.1-sdbm/lib/site_perl/5.21.1/CPAN/Changes/Group.pm", @@ -139,63 +134,59 @@ }, "modules" : { "CPAN::Changes" : "0.30", - "CPAN::Meta" : "2.141520", - "CPAN::Meta::Prereqs" : "2.141520", - "CPAN::Meta::Prereqs::Diff" : "0.001000", - "CPAN::Meta::Requirements" : "2.125", + "CPAN::Meta" : "2.142060", + "CPAN::Meta::Prereqs::Diff" : "0.001001", "Carp" : "1.34", "Dist::Zilla::App::Command::bakeini" : "0.001001", "Dist::Zilla::Plugin::Authority" : "1.006", - "Dist::Zilla::Plugin::AutoPrereqs" : "5.019", + "Dist::Zilla::Plugin::AutoPrereqs" : "5.020", "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0.002", - "Dist::Zilla::Plugin::ConfirmRelease" : "5.019", + "Dist::Zilla::Plugin::ConfirmRelease" : "5.020", "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0.103510", "Dist::Zilla::Plugin::EOLTests" : "0.02", "Dist::Zilla::Plugin::Git::Check" : "2.023", "Dist::Zilla::Plugin::Git::Commit" : "2.023", "Dist::Zilla::Plugin::Git::CommitBuild" : "2.023", + "Dist::Zilla::Plugin::Git::Contributors" : "0.006", "Dist::Zilla::Plugin::Git::GatherDir" : "2.023", "Dist::Zilla::Plugin::Git::NextRelease" : "0.002011", "Dist::Zilla::Plugin::Git::Tag" : "2.023", "Dist::Zilla::Plugin::GithubMeta" : "0.46", - "Dist::Zilla::Plugin::License" : "5.019", - "Dist::Zilla::Plugin::MakeMaker" : "5.019", - "Dist::Zilla::Plugin::Manifest" : "5.019", - "Dist::Zilla::Plugin::ManifestSkip" : "5.019", - "Dist::Zilla::Plugin::MetaConfig" : "5.019", - "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.000001", - "Dist::Zilla::Plugin::MetaJSON" : "5.019", - "Dist::Zilla::Plugin::MetaProvides::Package" : "2.000002", - "Dist::Zilla::Plugin::MetaTests" : "5.019", - "Dist::Zilla::Plugin::MetaYAML" : "5.019", + "Dist::Zilla::Plugin::License" : "5.020", + "Dist::Zilla::Plugin::MakeMaker" : "5.020", + "Dist::Zilla::Plugin::Manifest" : "5.020", + "Dist::Zilla::Plugin::ManifestSkip" : "5.020", + "Dist::Zilla::Plugin::MetaConfig" : "5.020", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.001000", + "Dist::Zilla::Plugin::MetaJSON" : "5.020", + "Dist::Zilla::Plugin::MetaProvides::Package" : "2.000003", + "Dist::Zilla::Plugin::MetaTests" : "5.020", + "Dist::Zilla::Plugin::MetaYAML" : "5.020", "Dist::Zilla::Plugin::MinimumPerl" : "1.003", - "Dist::Zilla::Plugin::PodCoverageTests" : "5.019", - "Dist::Zilla::Plugin::PodSyntaxTests" : "5.019", + "Dist::Zilla::Plugin::PodCoverageTests" : "5.020", + "Dist::Zilla::Plugin::PodSyntaxTests" : "5.020", "Dist::Zilla::Plugin::PodWeaver" : "4.005", - "Dist::Zilla::Plugin::Prereqs" : "5.019", + "Dist::Zilla::Plugin::Prereqs" : "5.020", "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.002000", - "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.141760", + "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142250", "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", - "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001001", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001002", "Dist::Zilla::Plugin::RunExtraTests" : "0.022", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.002001", "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.014", - "Dist::Zilla::Plugin::TestRelease" : "5.019", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.019", + "Dist::Zilla::Plugin::TestRelease" : "5.020", "Dist::Zilla::Plugin::Twitter" : "0.025", - "Dist::Zilla::Plugin::UploadToCPAN" : "5.019", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.016004", + "Dist::Zilla::Plugin::UploadToCPAN" : "5.020", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002", "ExtUtils::MakeMaker" : "6.98", "File::Spec" : "3.48", - "File::Spec::Functions" : "3.48", - "List::Util" : "1.39", "Moo" : "1.005000", "MooX::Lsub" : "0.001002", "Pod::Coverage::TrustPod" : "0.100003", - "Scalar::Util" : "1.39", "Test::CPAN::Changes" : "0.30", "Test::CPAN::Meta" : "0.23", "Test::Differences" : "0.62", @@ -205,7 +196,6 @@ "Test::Pod::Coverage" : "1.10", "strict" : "1.08", "utf8" : "1.14", - "version" : "0.9908", "warnings" : "1.24" }, "perl" : { @@ -233,7 +223,7 @@ { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::KENTNL/MetaConfig", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", @@ -248,7 +238,7 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "5.019" + "version" : "5.020" } ] }, @@ -259,7 +249,7 @@ } }, "name" : "@Author::KENTNL/MetaProvides::Package", - "version" : "2.000002" + "version" : "2.000003" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", @@ -281,7 +271,19 @@ } }, "name" : "@Author::KENTNL/MetaData::BuiltWith", - "version" : "1.000001" + "version" : "1.001000" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Contributors", + "config" : { + "Dist::Zilla::Plugin::Git::Contributors" : { + "include_authors" : "0", + "include_releaser" : "0", + "order_by" : "name" + } + }, + "name" : "@Author::KENTNL/Git::Contributors", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", @@ -299,22 +301,22 @@ { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::KENTNL/License", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::KENTNL/MetaJSON", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::KENTNL/MetaYAML", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::KENTNL/Manifest", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", @@ -324,22 +326,22 @@ { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::KENTNL/MetaTests", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::KENTNL/PodCoverageTests", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::KENTNL/PodSyntaxTests", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::KENTNL/Test::ReportPrereqs", - "version" : "0.014" + "version" : "0.019" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", @@ -359,7 +361,7 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Test::Compile::PerFile", @@ -386,7 +388,7 @@ { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::KENTNL/ManifestSkip", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Sanitized", @@ -397,7 +399,7 @@ } }, "name" : "@Author::KENTNL/RewriteVersion::Sanitized", - "version" : "0.001001" + "version" : "0.001002" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -502,7 +504,7 @@ { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::KENTNL/AutoPrereqs", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -513,7 +515,7 @@ } }, "name" : "@Author::KENTNL/BundleDevelSuggests", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MinimumPerl", @@ -533,7 +535,7 @@ } }, "name" : "@Author::KENTNL/MakeMaker", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::ReadmeFromPod", @@ -543,7 +545,7 @@ { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "name" : "@Author::KENTNL/ReadmeAnyFromPod", - "version" : "0.141760" + "version" : "0.142250" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", @@ -563,12 +565,12 @@ { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::KENTNL/TestRelease", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::KENTNL/ConfirmRelease", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Git::Check", @@ -620,7 +622,7 @@ "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "signed" : 0, - "tag" : "0.002002-source", + "tag" : "0.002003-source", "tag_format" : "%v-source", "tag_message" : "v%v", "time_zone" : "local" @@ -691,7 +693,7 @@ "Dist::Zilla::Plugin::Git::Tag" : { "branch" : "releases", "signed" : 0, - "tag" : "0.002002", + "tag" : "0.002003", "tag_format" : "%v", "tag_message" : "v%v", "time_zone" : "local" @@ -706,7 +708,7 @@ { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::KENTNL/UploadToCPAN", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Twitter", @@ -768,7 +770,7 @@ } }, "name" : "@Author::KENTNL/::Role::BundleDeps", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -779,52 +781,52 @@ } }, "name" : "Prereqs", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "5.019" + "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "5.019" + "version" : "5.020" } ], "zilla" : { @@ -832,9 +834,8 @@ "config" : { "is_trial" : "0" }, - "version" : "5.019" + "version" : "5.020" } }, "x_authority" : "cpan:KENTNL" } - diff --git a/META.yml b/META.yml index b4065bd..c8267c7 100644 --- a/META.yml +++ b/META.yml @@ -6,16 +6,12 @@ build_requires: CPAN::Changes::Release: '0' ExtUtils::MakeMaker: '0' File::Spec: '0' - File::Spec::Functions: '0' - List::Util: '0' - Scalar::Util: '0' Test::Differences: '0' Test::More: '0.89' - version: '0.77' configure_requires: - ExtUtils::MakeMaker: '6.30' -dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141520' + ExtUtils::MakeMaker: '0' +dynamic_config: '0' +generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -24,7 +20,7 @@ name: CPAN-Changes-Group-Dependencies-Stats provides: CPAN::Changes::Group::Dependencies::Stats: file: lib/CPAN/Changes/Group/Dependencies/Stats.pm - version: '0.002002' + version: '0.002003' requires: CPAN::Changes: '0.30' CPAN::Changes::Group: '0' @@ -40,70 +36,66 @@ resources: bugtracker: https://github.com/kentnl/CPAN-Changes-Group-Dependencies-Stats/issues homepage: https://github.com/kentnl/CPAN-Changes-Group-Dependencies-Stats repository: https://github.com/kentnl/CPAN-Changes-Group-Dependencies-Stats.git -version: '0.002002' +version: '0.002003' x_BuiltWith: failures: CPAN::Changes::Group: 'Module::MetaData could not parse a version from /home/kent/perl5/perlbrew/perls/5.21.1-sdbm/lib/site_perl/5.21.1/CPAN/Changes/Group.pm' CPAN::Changes::Release: 'Module::MetaData could not parse a version from /home/kent/perl5/perlbrew/perls/5.21.1-sdbm/lib/site_perl/5.21.1/CPAN/Changes/Release.pm' modules: CPAN::Changes: '0.30' - CPAN::Meta: '2.141520' - CPAN::Meta::Prereqs: '2.141520' - CPAN::Meta::Prereqs::Diff: '0.001000' - CPAN::Meta::Requirements: '2.125' + CPAN::Meta: '2.142060' + CPAN::Meta::Prereqs::Diff: '0.001001' Carp: '1.34' Dist::Zilla::App::Command::bakeini: '0.001001' Dist::Zilla::Plugin::Authority: '1.006' - Dist::Zilla::Plugin::AutoPrereqs: '5.019' + Dist::Zilla::Plugin::AutoPrereqs: '5.020' Dist::Zilla::Plugin::BumpVersionAfterRelease: '0.002' - Dist::Zilla::Plugin::ConfirmRelease: '5.019' + Dist::Zilla::Plugin::ConfirmRelease: '5.020' Dist::Zilla::Plugin::CopyFilesFromBuild: '0.103510' Dist::Zilla::Plugin::EOLTests: '0.02' Dist::Zilla::Plugin::Git::Check: '2.023' Dist::Zilla::Plugin::Git::Commit: '2.023' Dist::Zilla::Plugin::Git::CommitBuild: '2.023' + Dist::Zilla::Plugin::Git::Contributors: '0.006' Dist::Zilla::Plugin::Git::GatherDir: '2.023' Dist::Zilla::Plugin::Git::NextRelease: '0.002011' Dist::Zilla::Plugin::Git::Tag: '2.023' Dist::Zilla::Plugin::GithubMeta: '0.46' - Dist::Zilla::Plugin::License: '5.019' - Dist::Zilla::Plugin::MakeMaker: '5.019' - Dist::Zilla::Plugin::Manifest: '5.019' - Dist::Zilla::Plugin::ManifestSkip: '5.019' - Dist::Zilla::Plugin::MetaConfig: '5.019' - Dist::Zilla::Plugin::MetaData::BuiltWith: '1.000001' - Dist::Zilla::Plugin::MetaJSON: '5.019' - Dist::Zilla::Plugin::MetaProvides::Package: '2.000002' - Dist::Zilla::Plugin::MetaTests: '5.019' - Dist::Zilla::Plugin::MetaYAML: '5.019' + Dist::Zilla::Plugin::License: '5.020' + Dist::Zilla::Plugin::MakeMaker: '5.020' + Dist::Zilla::Plugin::Manifest: '5.020' + Dist::Zilla::Plugin::ManifestSkip: '5.020' + Dist::Zilla::Plugin::MetaConfig: '5.020' + Dist::Zilla::Plugin::MetaData::BuiltWith: '1.001000' + Dist::Zilla::Plugin::MetaJSON: '5.020' + Dist::Zilla::Plugin::MetaProvides::Package: '2.000003' + Dist::Zilla::Plugin::MetaTests: '5.020' + Dist::Zilla::Plugin::MetaYAML: '5.020' Dist::Zilla::Plugin::MinimumPerl: '1.003' - Dist::Zilla::Plugin::PodCoverageTests: '5.019' - Dist::Zilla::Plugin::PodSyntaxTests: '5.019' + Dist::Zilla::Plugin::PodCoverageTests: '5.020' + Dist::Zilla::Plugin::PodSyntaxTests: '5.020' Dist::Zilla::Plugin::PodWeaver: '4.005' - Dist::Zilla::Plugin::Prereqs: '5.019' + Dist::Zilla::Plugin::Prereqs: '5.020' Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.002000' - Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.141760' + Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.142250' Dist::Zilla::Plugin::ReadmeFromPod: '0.21' - Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001001' + Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001002' Dist::Zilla::Plugin::RunExtraTests: '0.022' Dist::Zilla::Plugin::Test::CPAN::Changes: '0.008' Dist::Zilla::Plugin::Test::Compile::PerFile: '0.002001' 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.014' - Dist::Zilla::Plugin::TestRelease: '5.019' + Dist::Zilla::Plugin::Test::ReportPrereqs: '0.019' + Dist::Zilla::Plugin::TestRelease: '5.020' Dist::Zilla::Plugin::Twitter: '0.025' - Dist::Zilla::Plugin::UploadToCPAN: '5.019' - Dist::Zilla::PluginBundle::Author::KENTNL: '2.016004' + Dist::Zilla::Plugin::UploadToCPAN: '5.020' + Dist::Zilla::PluginBundle::Author::KENTNL: '2.017002' ExtUtils::MakeMaker: '6.98' File::Spec: '3.48' - File::Spec::Functions: '3.48' - List::Util: '1.39' Moo: '1.005000' MooX::Lsub: '0.001002' Pod::Coverage::TrustPod: '0.100003' - Scalar::Util: '1.39' Test::CPAN::Changes: '0.30' Test::CPAN::Meta: '0.23' Test::Differences: '0.62' @@ -113,7 +105,6 @@ x_BuiltWith: Test::Pod::Coverage: '1.10' strict: '1.08' utf8: '1.14' - version: '0.9908' warnings: '1.24' perl: original: v5.21.1 @@ -135,7 +126,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::KENTNL/MetaConfig' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::KENTNL/GithubMeta' @@ -148,13 +139,13 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '5.019' + version: '5.020' Dist::Zilla::Role::MetaProvider::Provider: inherit_missing: '1' inherit_version: '1' meta_noindex: '1' name: '@Author::KENTNL/MetaProvides::Package' - version: '2.000002' + version: '2.000003' - class: Dist::Zilla::Plugin::MetaData::BuiltWith config: @@ -171,7 +162,16 @@ x_Dist_Zilla: - -i uname_call: uname name: '@Author::KENTNL/MetaData::BuiltWith' - version: '1.000001' + version: '1.001000' + - + class: Dist::Zilla::Plugin::Git::Contributors + config: + Dist::Zilla::Plugin::Git::Contributors: + include_authors: '0' + include_releaser: '0' + order_by: name + name: '@Author::KENTNL/Git::Contributors' + version: '0.006' - class: Dist::Zilla::Plugin::Git::GatherDir config: @@ -184,19 +184,19 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::License name: '@Author::KENTNL/License' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::KENTNL/MetaJSON' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::KENTNL/MetaYAML' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Manifest name: '@Author::KENTNL/Manifest' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: '@Author::KENTNL/CopyXBuild' @@ -204,19 +204,19 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::MetaTests name: '@Author::KENTNL/MetaTests' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::KENTNL/PodCoverageTests' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::KENTNL/PodSyntaxTests' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::KENTNL/Test::ReportPrereqs' - version: '0.014' + version: '0.019' - class: Dist::Zilla::Plugin::Test::Kwalitee name: '@Author::KENTNL/Test::Kwalitee' @@ -232,7 +232,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Test::Compile::PerFile config: @@ -253,7 +253,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::KENTNL/ManifestSkip' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::RewriteVersion::Sanitized config: @@ -261,7 +261,7 @@ x_Dist_Zilla: mantissa: '6' normal_form: numify name: '@Author::KENTNL/RewriteVersion::Sanitized' - version: '0.001001' + version: '0.001002' - class: Dist::Zilla::Plugin::PodWeaver config: @@ -343,7 +343,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::KENTNL/AutoPrereqs' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: @@ -351,7 +351,7 @@ x_Dist_Zilla: phase: develop type: suggests name: '@Author::KENTNL/BundleDevelSuggests' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::MinimumPerl name: '@Author::KENTNL/MinimumPerl' @@ -366,7 +366,7 @@ x_Dist_Zilla: Dist::Zilla::Role::TestRunner: default_jobs: '10' name: '@Author::KENTNL/MakeMaker' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::ReadmeFromPod name: '@Author::KENTNL/ReadmeFromPod' @@ -374,7 +374,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::ReadmeAnyFromPod name: '@Author::KENTNL/ReadmeAnyFromPod' - version: '0.141760' + version: '0.142250' - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::KENTNL/Test::CPAN::Changes' @@ -389,11 +389,11 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::TestRelease name: '@Author::KENTNL/TestRelease' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::KENTNL/ConfirmRelease' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Git::Check config: @@ -431,8 +431,8 @@ x_Dist_Zilla: config: Dist::Zilla::Plugin::Git::Tag: branch: ~ - signed: 0 - tag: 0.002002-source + signed: '0' + tag: 0.002003-source tag_format: '%v-source' tag_message: v%v time_zone: local @@ -473,7 +473,7 @@ x_Dist_Zilla: branch: build/%b build_root: ~ message: 'Build results of %h (on %b)' - multiple_inheritance: 0 + multiple_inheritance: '0' release_branch: releases release_message: 'Build results of %h (on %b)' Dist::Zilla::Role::Git::Repo: @@ -485,8 +485,8 @@ x_Dist_Zilla: config: Dist::Zilla::Plugin::Git::Tag: branch: releases - signed: 0 - tag: '0.002002' + signed: '0' + tag: '0.002003' tag_format: '%v' tag_message: v%v time_zone: local @@ -497,7 +497,7 @@ x_Dist_Zilla: - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::KENTNL/UploadToCPAN' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Twitter name: '@Author::KENTNL/Twitter' @@ -543,7 +543,7 @@ x_Dist_Zilla: phase: develop type: requires name: '@Author::KENTNL/::Role::BundleDeps' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: @@ -551,46 +551,46 @@ x_Dist_Zilla: phase: runtime type: requires name: Prereqs - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' - version: '5.019' + version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: '5.019' + version: '5.020' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' - version: '5.019' + version: '5.020' x_authority: cpan:KENTNL diff --git a/Makefile.PL b/Makefile.PL index caf5e08..b662048 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,11 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020. use strict; use warnings; use 5.008; -use ExtUtils::MakeMaker 6.30; +use ExtUtils::MakeMaker ; @@ -13,7 +13,7 @@ my %WriteMakefileArgs = ( "ABSTRACT" => "Create a Dependencies::Stats section detailing summarized differences", "AUTHOR" => "Kent Fredric ", "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "CPAN-Changes-Group-Dependencies-Stats", "EXE_FILES" => [], @@ -34,14 +34,10 @@ my %WriteMakefileArgs = ( "CPAN::Changes::Release" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, - "File::Spec::Functions" => 0, - "List::Util" => 0, - "Scalar::Util" => 0, "Test::Differences" => 0, - "Test::More" => "0.89", - "version" => "0.77" + "Test::More" => "0.89" }, - "VERSION" => "0.002002", + "VERSION" => "0.002003", "test" => { "TESTS" => "t/*.t t/00-compile/*.t" } @@ -56,16 +52,12 @@ my %FallbackPrereqs = ( "Carp" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, - "File::Spec::Functions" => 0, - "List::Util" => 0, "Moo" => 0, "MooX::Lsub" => 0, - "Scalar::Util" => 0, "Test::Differences" => 0, "Test::More" => "0.89", "strict" => 0, "utf8" => 0, - "version" => "0.77", "warnings" => 0 ); diff --git a/README b/README index 46fb28c..bb5d9c3 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME section detailing summarized differences VERSION - version 0.002002 + version 0.002003 SYNOPSIS use CPAN::Changes::Release 0.29; diff --git a/dist.ini b/dist.ini index 08dff5a..2f3ea0d 100644 --- a/dist.ini +++ b/dist.ini @@ -18,6 +18,12 @@ show_config = 1 show_uname = 1 uname_args = -s -o -r -m -i +[Git::Contributors / @Author::KENTNL/Git::Contributors] +:version = 0.006 +include_authors = 0 +include_releaser = 0 +order_by = name + [Git::GatherDir / @Author::KENTNL/Git::GatherDir] exclude_filename = README exclude_filename = README.mkdn @@ -70,7 +76,7 @@ replacer = replace_with_blank -phase = develop -type = suggests Dist::Zilla::App::Command::bakeini = 0.001000 -Dist::Zilla::PluginBundle::Author::KENTNL = 2.016004 +Dist::Zilla::PluginBundle::Author::KENTNL = 2.017002 [MinimumPerl / @Author::KENTNL/MinimumPerl] @@ -152,6 +158,7 @@ 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::Contributors = 0.006 Dist::Zilla::Plugin::Git::GatherDir = 0 Dist::Zilla::Plugin::Git::NextRelease = 0 Dist::Zilla::Plugin::Git::Tag = 0 diff --git a/lib/CPAN/Changes/Group/Dependencies/Stats.pm b/lib/CPAN/Changes/Group/Dependencies/Stats.pm index dc39cac..7d72f7f 100644 --- a/lib/CPAN/Changes/Group/Dependencies/Stats.pm +++ b/lib/CPAN/Changes/Group/Dependencies/Stats.pm @@ -5,7 +5,7 @@ use utf8; package CPAN::Changes::Group::Dependencies::Stats; -our $VERSION = '0.002002'; +our $VERSION = '0.002003'; # ABSTRACT: Create a Dependencies::Stats section detailing summarized differences @@ -18,33 +18,6 @@ use CPAN::Changes::Group; use CPAN::Meta::Prereqs::Diff; use MooX::Lsub qw( lsub ); - - - - - - - - - - - - - - - - - - - - - - - - - - - extends 'CPAN::Changes::Group'; @@ -234,7 +207,7 @@ CPAN::Changes::Group::Dependencies::Stats - Create a Dependencies::Stats section =head1 VERSION -version 0.002002 +version 0.002003 =head1 SYNOPSIS diff --git a/misc/Changes.deps b/misc/Changes.deps index 831202f..e943e5d 100644 --- a/misc/Changes.deps +++ b/misc/Changes.deps @@ -1,6 +1,16 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) -0.002002 +0.002003 + [Changed / configure requires] + - ExtUtils::MakeMaker 6.30 → 0 + + [Removed / test requires] + - File::Spec::Functions + - List::Util + - Scalar::Util + - version 0.77 + +0.002002 2014-07-26T05:30:18Z [Changed / runtime requires] - CPAN::Changes 0.29 → 0.30 diff --git a/misc/Changes.deps.all b/misc/Changes.deps.all index 7529e5e..7bde329 100644 --- a/misc/Changes.deps.all +++ b/misc/Changes.deps.all @@ -1,6 +1,29 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) -0.002002 +0.002003 + [Added / develop requires] + - Dist::Zilla::Plugin::Git::Contributors 0.006 + + [Changed / configure requires] + - ExtUtils::MakeMaker 6.30 → 0 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.016004 → 2.017002 + + [Changed / test recommends] + - CPAN::Meta 0 → 2.120900 + + [Removed / test recommends] + - CPAN::Meta::Prereqs + - CPAN::Meta::Requirements 2.120900 + + [Removed / test requires] + - File::Spec::Functions + - List::Util + - Scalar::Util + - version 0.77 + +0.002002 2014-07-26T05:30:18Z [Changed / runtime requires] - CPAN::Changes 0.29 → 0.30 diff --git a/misc/Changes.deps.dev b/misc/Changes.deps.dev index 3eb6ced..a78a1bf 100644 --- a/misc/Changes.deps.dev +++ b/misc/Changes.deps.dev @@ -1,6 +1,13 @@ This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) -0.002002 +0.002003 + [Added / develop requires] + - Dist::Zilla::Plugin::Git::Contributors 0.006 + + [Changed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.016004 → 2.017002 + +0.002002 2014-07-26T05:30:18Z 0.002001 2014-07-25T20:00:30Z diff --git a/misc/Changes.deps.opt b/misc/Changes.deps.opt index 3780cd4..9be206d 100644 --- a/misc/Changes.deps.opt +++ b/misc/Changes.deps.opt @@ -1,6 +1,14 @@ This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) -0.002002 +0.002003 + [Changed / test recommends] + - CPAN::Meta 0 → 2.120900 + + [Removed / test recommends] + - CPAN::Meta::Prereqs + - CPAN::Meta::Requirements 2.120900 + +0.002002 2014-07-26T05:30:18Z 0.002001 2014-07-25T20:00:30Z diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd index 90f6269..2c840d8 100644 --- a/t/00-report-prereqs.dd +++ b/t/00-report-prereqs.dd @@ -4,7 +4,7 @@ do { my $x = { 'ExtUtils::MakeMaker' => '6.98' }, 'requires' => { - 'ExtUtils::MakeMaker' => '6.30' + 'ExtUtils::MakeMaker' => '0' } }, 'develop' => { @@ -18,6 +18,7 @@ do { my $x = { 'Dist::Zilla::Plugin::Git::Check' => '0', 'Dist::Zilla::Plugin::Git::Commit' => '0', 'Dist::Zilla::Plugin::Git::CommitBuild' => '0', + 'Dist::Zilla::Plugin::Git::Contributors' => '0.006', 'Dist::Zilla::Plugin::Git::GatherDir' => '0', 'Dist::Zilla::Plugin::Git::NextRelease' => '0', 'Dist::Zilla::Plugin::Git::Tag' => '0', @@ -60,7 +61,7 @@ do { my $x = { }, 'suggests' => { 'Dist::Zilla::App::Command::bakeini' => '0.001001', - 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.016004' + 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.017002' } }, 'runtime' => { @@ -79,9 +80,7 @@ do { my $x = { }, 'test' => { 'recommends' => { - 'CPAN::Meta' => '0', - 'CPAN::Meta::Prereqs' => '0', - 'CPAN::Meta::Requirements' => '2.120900', + 'CPAN::Meta' => '2.120900', 'ExtUtils::MakeMaker' => '6.98', 'Test::More' => '1.001003' }, @@ -89,12 +88,8 @@ do { my $x = { 'CPAN::Changes::Release' => '0', 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', - 'File::Spec::Functions' => '0', - 'List::Util' => '0', - 'Scalar::Util' => '0', 'Test::Differences' => '0', - 'Test::More' => '0.89', - 'version' => '0.77' + 'Test::More' => '0.89' } } }; diff --git a/t/00-report-prereqs.t b/t/00-report-prereqs.t index 44a7411..402b3d9 100644 --- a/t/00-report-prereqs.t +++ b/t/00-report-prereqs.t @@ -3,32 +3,45 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.014 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.019 use Test::More tests => 1; use ExtUtils::MakeMaker; -use File::Spec::Functions; -use List::Util qw/max first/; -use Scalar::Util qw/blessed/; -use version; +use File::Spec; + +# from $version::LAX +my $lax_version_re = + qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? + | + (?:\.[0-9]+) (?:_[0-9]+)? + ) | (?: + v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? + | + (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? + ) + )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; -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')"; +my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; +sub _max { + my $max = shift; + $max = ( $_ > $max ) ? $_ : $max for @_; + return $max; +} + sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object - if (blessed $collector eq $cpan_meta_pre) { + if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); @@ -57,12 +70,6 @@ my @exclude = qw( # Add static prereqs to the included modules list my $static_prereqs = do 't/00-report-prereqs.dd'; -### XXX: Assume these are Runtime Requires -my $static_prereqs_requires = $static_prereqs->{runtime}{requires}; -for my $mod (@include) { - $static_prereqs_requires->{$mod} = 0 unless exists $static_prereqs_requires->{$mod}; -} - # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), @@ -70,7 +77,7 @@ my $full_prereqs = _merge_prereqs( ); # Add dynamic prereqs to the included modules list (if we can) -my $source = first { -f } 'MYMETA.json', 'MYMETA.yml'; +my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; if ( $source && $HAS_CPAN_META ) { if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); @@ -84,11 +91,16 @@ my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; -for my $phase ( qw(configure build test runtime develop) ) { +# Add static includes into a fake section +for my $mod (@include) { + $req_hash->{other}{modules}{$mod} = 0; +} + +for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); - for my $type ( qw(requires recommends suggests conflicts) ) { + for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); @@ -96,12 +108,12 @@ for my $phase ( qw(configure build test runtime develop) ) { for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if $mod eq 'perl'; - next if first { $_ eq $mod } @exclude; + next if grep { $_ eq $mod } @exclude; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; - my $prefix = first { -e catfile($_, $file) } @INC; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; @@ -110,12 +122,12 @@ for my $phase ( qw(configure build test runtime develop) ) { my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; if ($prefix) { - my $have = MM->parse_version( catfile($prefix, $file) ); + my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; - if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { - if ( ! defined eval { version->parse($have) } ) { + if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { + if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { @@ -135,9 +147,9 @@ for my $phase ( qw(configure build test runtime develop) ) { if ( @reports ) { push @full_reports, "=== $title ===\n\n"; - my $ml = max map { length $_->[0] } @reports; - my $wl = max map { length $_->[1] } @reports; - my $hl = max map { length $_->[2] } @reports; + my $ml = _max( map { length $_->[0] } @reports ); + my $wl = _max( map { length $_->[1] } @reports ); + my $hl = _max( map { length $_->[2] } @reports ); splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports;