diff --git a/.gitignore b/.gitignore index 46c24b5..2120895 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -.build -Git-Wrapper-Plus-* +/.build +/Git-Wrapper-Plus-* +/tmp/ diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..a361980 --- /dev/null +++ b/.mailmap @@ -0,0 +1,2 @@ +# git help shortlog + diff --git a/.travis.yml b/.travis.yml index d0a6ce1..af9ef6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,50 +1,58 @@ -language: perl -matrix: - allow_failures: - - perl: "5.8" - - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - include: - - perl: "5.8" - env: STERILIZE_ENV=0 - - perl: "5.10" - env: STERILIZE_ENV=0 - - perl: "5.12" - env: STERILIZE_ENV=0 - - perl: "5.14" - env: STERILIZE_ENV=0 - - perl: "5.16" - env: STERILIZE_ENV=0 - - perl: "5.18" - env: STERILIZE_ENV=0 - - perl: "5.19" - env: STERILIZE_ENV=0 - - perl: "5.8" - env: STERILIZE_ENV=1 - - perl: "5.10" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - - perl: "5.19" - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 +--- +after_failure: + - perl ./maint-travis-ci/report_fail_ctx.pl before_install: - perlbrew list + - time git clone --depth 10 https://github.com/kentfredric/travis-scripts.git maint-travis-ci + - time git -C ./maint-travis-ci reset --hard master - 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 -script: - - time perl ./maint-travis-ci/script.pl -after_failure: - - perl ./maint-travis-ci/report_fail_ctx.pl branches: only: - - "master" - - "build/master" - - "releases" - + - master + - builds + - releases +install: + - time perl ./maint-travis-ci/install_deps_early.pl + - time perl ./maint-travis-ci/autoinstall_dzil.pl + - time perl ./maint-travis-ci/install_deps_2.pl +language: perl +matrix: + allow_failures: + - perl: '5.8' + - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 + - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 + include: + - env: STERILIZE_ENV=0 COVERAGE_TESTING=1 + perl: '5.21' + - env: STERILIZE_ENV=1 + perl: '5.21' + - env: STERILIZE_ENV=0 + perl: '5.8' + - env: STERILIZE_ENV=0 + perl: '5.10' + - env: STERILIZE_ENV=0 + perl: '5.12' + - env: STERILIZE_ENV=0 + perl: '5.14' + - env: STERILIZE_ENV=0 + perl: '5.16' + - env: STERILIZE_ENV=0 + perl: '5.20' + - env: STERILIZE_ENV=0 + perl: '5.21' + - env: STERILIZE_ENV=1 + perl: '5.8' + - env: STERILIZE_ENV=1 + perl: '5.10' + - env: STERILIZE_ENV=1 + perl: '5.20' + - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 + perl: '5.21' + - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 + perl: '5.21' +script: + - time perl ./maint-travis-ci/script.pl +sudo: false diff --git a/Changes b/Changes index 6d5a534..ef0f26c 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,20 @@ Release history for Git-Wrapper-Plus +0.004011 2017-03-06T07:51:10Z 10e5bc7 + [Bugfix] + - Fix test issues with -Ddefault_inc_excludes_dot + - Closes https://github.com/kentnl/Git-Wrapper-Plus/issues/1 + + [Dependencies::Stats] + - Dependencies changed since 0.004010, see misc/*.deps* for details + - configure: +1 ↓1 (recommends: ↑1) + - develop: +18 ↑4 -6 (recommends: +1, suggests: +2 -1) + - runtime: ↓1 -1 (recommends: +2) + - test: +2 ↓1 -3 (recommends: ↑2 ↓1 -1) + + [Meta] + - Move to kentnl github org + 0.004010 2014-01-31T02:56:20Z [00 Minor] - Tooling switched to EUMM @@ -10,15 +25,14 @@ Release history for Git-Wrapper-Plus - 5.19 : Was 31 Depedencies - Now 29 Dependencies - Because... - Git::Wrapper requires Path::Class - - Path::Class requires Module::Build + - Path::Class requires Module::Build [Dependencies::Stats] - - Dependencies changed since 0.004000, see Changes.deps{,.all,.dev} for - details + - Dependencies changed since 0.004000, see misc/*.deps* for details - build: -1 - - configure: +2 -1 + - configure: +1 -1 (recommends: +1) - develop: +2 ↑1 -2 - - test: +3 ↑1 ↓1 + - test: +1 ↓1 (recommends: +2 ↑1) 0.004000 2014-01-15T19:32:07Z [00 Major] @@ -27,35 +41,31 @@ Release history for Git-Wrapper-Plus - ::Support now can test for git command arguments. [Dependencies::Stats] - - Dependencies changed since 0.003101, see Changes.deps{,.all,.dev} for - details + - Dependencies changed since 0.003101, see misc/*.deps* for details - develop: +1 ↑1 -2 - - test: +5 + - test: +3 (recommends: +2) 0.003101 2014-01-14T07:00:13Z [00 Bugfix] - Documentation improvements [Dependencies::Stats] - - Dependencies changed since 0.003100, see Changes.deps{,.all,.dev} for - details + - Dependencies changed since 0.003100, see misc/*.deps* for details - develop: ↑1 0.003100 2014-01-12T19:51:57Z [00 Substantial bugfix] - Fixed borked changelog. - - Use Support indication to use for-each-ref where its supported, so that - branch resolution should work on shallow clones. + - Use Support indication to use for-each-ref where its supported, so that branch resolution should work on shallow + clones. 0.003000 2014-01-12T18:38:52Z [00 Major] - Add ::Support class to test behaviours vs supported version data. - - Automatically stringify Path::Class and Path::Tiny if passed to - constructor instead of assuming they're a git. + - Automatically stringify Path::Class and Path::Tiny if passed to constructor instead of assuming they're a git. [Dependencies::Stats] - - Dependencies changed since 0.002000, see Changes.deps{,.all,.dev} for - details + - Dependencies changed since 0.002000, see misc/*.deps* for details - build: ↑1 - configure: ↑1 - develop: +1 ↑1 -1 @@ -65,10 +75,8 @@ Release history for Git-Wrapper-Plus - Add Git::Wrapper::Plus::Util for exit_status_handler [Dependencies::Stats] - - Dependencies changed since 0.001000, see Changes.deps{,.all,.dev} for - details + - Dependencies changed since 0.001000, see misc/*.deps* for details - runtime: +1 0.001000 2013-12-21T10:36:57Z - First version. - diff --git a/Changes.deps.all b/Changes.deps.all deleted file mode 100644 index f06cbbc..0000000 --- a/Changes.deps.all +++ /dev/null @@ -1,86 +0,0 @@ -0.004010 - [Added / configure recommends] - - ExtUtils::MakeMaker 6.86 - - [Added / configure requires] - - ExtUtils::MakeMaker 6.30 - - [Added / develop requires] - - Dist::Zilla::Plugin::MakeMaker - - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled - - [Added / test recommends] - - ExtUtils::MakeMaker 6.86 - - Test::More 1.001002 - - [Added / test requires] - - version - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.010000 → 2.012000 - - [Changed / test recommends] - - CPAN::Meta::Requirements 0 → 2.120900 - - [Changed / test requires] - - Test::More 1.001002 → 0.89 - - [Removed / build requires] - - Module::Build 0.4204 - - [Removed / configure requires] - - Module::Build 0.4204 - - [Removed / develop requires] - - Dist::Zilla::Plugin::ModuleBuild - - Dist::Zilla::Plugin::Prereqs::MatchInstalled - -0.004000 2014-01-15T19:32:07Z - [Added / develop requires] - - Dist::Zilla::Plugin::Test::ReportPrereqs - - [Added / test recommends] - - CPAN::Meta - - CPAN::Meta::Requirements - - [Added / test requires] - - ExtUtils::MakeMaker - - File::Spec::Functions - - List::Util - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.009000 → 2.010000 - - [Removed / develop requires] - - Dist::Zilla::Plugin::ReportVersions::Tiny - - version 0.9901 - -0.003101 2014-01-14T07:00:13Z - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.008000 → 2.009000 - -0.003100 2014-01-12T19:51:57Z - -0.003000 2014-01-12T18:38:52Z - [Added / develop requires] - - Dist::Zilla::Plugin::Git::NextRelease - - [Added / test requires] - - Test::Requires - - [Changed / build requires] - - Module::Build 0.4203 → 0.4204 - - [Changed / configure requires] - - Module::Build 0.4203 → 0.4204 - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.007000 → 2.008000 - - [Removed / develop requires] - - Dist::Zilla::Plugin::NextRelease - -0.002000 2013-12-25T13:48:24Z - [Added / runtime requires] - - Sub::Exporter::Progressive - diff --git a/Changes.deps.dev b/Changes.deps.dev deleted file mode 100644 index d2e9313..0000000 --- a/Changes.deps.dev +++ /dev/null @@ -1,41 +0,0 @@ -0.004010 - [Added / develop requires] - - Dist::Zilla::Plugin::MakeMaker - - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.010000 → 2.012000 - - [Removed / develop requires] - - Dist::Zilla::Plugin::ModuleBuild - - Dist::Zilla::Plugin::Prereqs::MatchInstalled - -0.004000 2014-01-15T19:32:07Z - [Added / develop requires] - - Dist::Zilla::Plugin::Test::ReportPrereqs - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.009000 → 2.010000 - - [Removed / develop requires] - - Dist::Zilla::Plugin::ReportVersions::Tiny - - version 0.9901 - -0.003101 2014-01-14T07:00:13Z - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.008000 → 2.009000 - -0.003100 2014-01-12T19:51:57Z - -0.003000 2014-01-12T18:38:52Z - [Added / develop requires] - - Dist::Zilla::Plugin::Git::NextRelease - - [Changed / develop requires] - - Dist::Zilla::PluginBundle::Author::KENTNL 2.007000 → 2.008000 - - [Removed / develop requires] - - Dist::Zilla::Plugin::NextRelease - -0.002000 2013-12-25T13:48:24Z - diff --git a/LICENSE b/LICENSE index 0242fbf..d0f6bfd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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) 2014 by Kent Fredric . +This software is Copyright (c) 2017 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) 2014 by Kent Fredric . +This software is Copyright (c) 2017 by Kent Fredric . This is free software, licensed under: diff --git a/MANIFEST b/MANIFEST index be5de42..4423160 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,11 +1,9 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.012. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.009. .gitignore +.mailmap .perltidyrc .travis.yml Changes -Changes.deps -Changes.deps.all -Changes.deps.dev LICENSE MANIFEST META.json @@ -13,6 +11,7 @@ META.yml Makefile.PL README dist.ini +dist.ini.meta layout/self_structure.dot layout/self_structure.png lib/Git/Wrapper/Plus.pm @@ -32,22 +31,13 @@ lib/Git/Wrapper/Plus/Tags.pm lib/Git/Wrapper/Plus/Tester.pm lib/Git/Wrapper/Plus/Util.pm lib/Git/Wrapper/Plus/Versions.pm -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 +misc/Changes.deps +misc/Changes.deps.all +misc/Changes.deps.dev +misc/Changes.deps.opt +misc/built_with.json +misc/perlcritic.deps perlcritic.rc t/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t t/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t @@ -68,6 +58,7 @@ t/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t t/00-compile/lib_Git_Wrapper_Plus_pm.t t/00-report-git-support.t t/00-report-git-version.t +t/00-report-prereqs.dd t/00-report-prereqs.t t/branches/basic.t t/plus/basic.t @@ -78,10 +69,10 @@ t/refs/basic_tags.t t/tags/basic.t weaver.ini xt/author/critic.t +xt/author/eol.t +xt/author/pod-coverage.t +xt/author/pod-syntax.t xt/release/cpan-changes.t xt/release/distmeta.t -xt/release/eol.t xt/release/kwalitee.t xt/release/minimum-version.t -xt/release/pod-coverage.t -xt/release/pod-syntax.t diff --git a/META.json b/META.json index e167d1b..1248ab9 100644 --- a/META.json +++ b/META.json @@ -1,39 +1,47 @@ { "abstract" : "A Toolkit for working with Git::Wrapper in an Object Oriented Way.", "author" : [ - "Kent Fredric " + "Kent Fredric " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.012, CPAN::Meta::Converter version 2.133380", + "generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Git-Wrapper-Plus", "prereqs" : { "configure" : { "recommends" : { - "ExtUtils::MakeMaker" : "6.86" + "ExtUtils::MakeMaker" : "7.00" }, "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0", + "perl" : "5.006" } }, "develop" : { + "recommends" : { + "Test::More" : "0.99" + }, "requires" : { + "Dist::Zilla" : "5", + "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes" : "0.004002", + "Dist::Zilla::Plugin::Author::KENTNL::TravisCI" : "0.001002", "Dist::Zilla::Plugin::Authority" : "1.006", "Dist::Zilla::Plugin::AutoPrereqs" : "0", + "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0", "Dist::Zilla::Plugin::ConfirmRelease" : "0", - "Dist::Zilla::Plugin::EOLTests" : "0", + "Dist::Zilla::Plugin::CopyFilesFromBuild" : "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::NextVersion::Sanitized" : "0", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.004000", "Dist::Zilla::Plugin::Git::Tag" : "0", "Dist::Zilla::Plugin::GithubMeta" : "0", "Dist::Zilla::Plugin::License" : "0", @@ -41,23 +49,27 @@ "Dist::Zilla::Plugin::Manifest" : "0", "Dist::Zilla::Plugin::ManifestSkip" : "0", "Dist::Zilla::Plugin::MetaConfig" : "0", - "Dist::Zilla::Plugin::MetaData::BuiltWith" : "0", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.004000", "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::MetaYAML::Minimal" : "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::AuthorDeps" : "0", "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0", + "Dist::Zilla::Plugin::Prereqs::Upgrade" : "0", + "Dist::Zilla::Plugin::Readme::Brief" : "0", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0", - "Dist::Zilla::Plugin::ReadmeFromPod" : "0", + "Dist::Zilla::Plugin::RemovePrereqs::Provided" : "0", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0", "Dist::Zilla::Plugin::RunExtraTests" : "0", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0", - "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.003902", + "Dist::Zilla::Plugin::Test::EOL" : "0", "Dist::Zilla::Plugin::Test::Kwalitee" : "0", "Dist::Zilla::Plugin::Test::MinimumVersion" : "0", "Dist::Zilla::Plugin::Test::Perl::Critic" : "0", @@ -65,19 +77,28 @@ "Dist::Zilla::Plugin::TestRelease" : "0", "Dist::Zilla::Plugin::Twitter" : "0", "Dist::Zilla::Plugin::UploadToCPAN" : "0", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.012000", + "English" : "0", "Pod::Coverage::TrustPod" : "0", + "Software::License::Perl_5" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", - "Test::Kwalitee" : "1.12", + "Test::EOL" : "0", + "Test::Kwalitee" : "1.21", + "Test::MinimumVersion" : "0", + "Test::More" : "0.96", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" }, "suggests" : { - "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "v1.3.0" + "Dist::Zilla::App::Command::bakeini" : "0.002006", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.025021" } }, "runtime" : { + "recommends" : { + "Moo" : "1.000008", + "Path::Tiny" : "0.058" + }, "requires" : { "Carp" : "0", "Git::Wrapper" : "0", @@ -87,227 +108,127 @@ "Sort::Versions" : "0", "Sub::Exporter::Progressive" : "0", "Try::Tiny" : "0", - "perl" : "5.008", + "perl" : "5.006", "strict" : "0", - "utf8" : "0", "warnings" : "0" } }, "test" : { "recommends" : { - "CPAN::Meta" : "0", - "CPAN::Meta::Requirements" : "2.120900", - "ExtUtils::MakeMaker" : "6.86", - "Test::More" : "1.001002" + "CPAN::Meta" : "2.120900", + "ExtUtils::MakeMaker" : "7.00", + "Test::More" : "0.99" }, "requires" : { "ExtUtils::MakeMaker" : "0", - "File::Spec::Functions" : "0", - "List::Util" : "0", + "File::Spec" : "0", "Test::Fatal" : "0", - "Test::More" : "0.89", + "Test::More" : "0", "Test::Requires" : "0", - "version" : "0" + "perl" : "5.006" } } }, "provides" : { "Git::Wrapper::Plus" : { "file" : "lib/Git/Wrapper/Plus.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Branches" : { "file" : "lib/Git/Wrapper/Plus/Branches.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Ref" : { "file" : "lib/Git/Wrapper/Plus/Ref.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Ref::Branch" : { "file" : "lib/Git/Wrapper/Plus/Ref/Branch.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Ref::Tag" : { "file" : "lib/Git/Wrapper/Plus/Ref/Tag.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Refs" : { "file" : "lib/Git/Wrapper/Plus/Refs.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support" : { "file" : "lib/Git/Wrapper/Plus/Support.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::Arguments" : { "file" : "lib/Git/Wrapper/Plus/Support/Arguments.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::Behaviors" : { "file" : "lib/Git/Wrapper/Plus/Support/Behaviors.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::Commands" : { "file" : "lib/Git/Wrapper/Plus/Support/Commands.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::Range" : { "file" : "lib/Git/Wrapper/Plus/Support/Range.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::RangeDictionary" : { "file" : "lib/Git/Wrapper/Plus/Support/RangeDictionary.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Support::RangeSet" : { "file" : "lib/Git/Wrapper/Plus/Support/RangeSet.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Tags" : { "file" : "lib/Git/Wrapper/Plus/Tags.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Tester" : { "file" : "lib/Git/Wrapper/Plus/Tester.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Util" : { "file" : "lib/Git/Wrapper/Plus/Util.pm", - "version" : "0.004010" + "version" : "0.004011" }, "Git::Wrapper::Plus::Versions" : { "file" : "lib/Git/Wrapper/Plus/Versions.pm", - "version" : "0.004010" + "version" : "0.004011" } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "https://github.com/kentfredric/Git-Wrapper-Plus/issues" + "web" : "https://github.com/kentnl/Git-Wrapper-Plus/issues" }, - "homepage" : "https://github.com/kentfredric/Git-Wrapper-Plus", + "homepage" : "https://github.com/kentnl/Git-Wrapper-Plus", "repository" : { "type" : "git", - "url" : "https://github.com/kentfredric/Git-Wrapper-Plus.git", - "web" : "https://github.com/kentfredric/Git-Wrapper-Plus" + "url" : "https://github.com/kentnl/Git-Wrapper-Plus.git", + "web" : "https://github.com/kentnl/Git-Wrapper-Plus" } }, - "version" : "0.004010", + "version" : "0.004011", "x_BuiltWith" : { - "modules" : { - "CPAN::Meta" : "2.133380", - "CPAN::Meta::Requirements" : "2.125", - "Carp" : "1.32", - "Dist::Zilla::Plugin::Authority" : "1.006", - "Dist::Zilla::Plugin::AutoPrereqs" : "5.012", - "Dist::Zilla::Plugin::ConfirmRelease" : "5.012", - "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::NextRelease" : "0.002001", - "Dist::Zilla::Plugin::Git::NextVersion::Sanitized" : "0.001000", - "Dist::Zilla::Plugin::Git::Tag" : "2.019", - "Dist::Zilla::Plugin::GithubMeta" : "0.42", - "Dist::Zilla::Plugin::License" : "5.012", - "Dist::Zilla::Plugin::MakeMaker" : "5.012", - "Dist::Zilla::Plugin::Manifest" : "5.012", - "Dist::Zilla::Plugin::ManifestSkip" : "5.012", - "Dist::Zilla::Plugin::MetaConfig" : "5.012", - "Dist::Zilla::Plugin::MetaData::BuiltWith" : "0.04000002", - "Dist::Zilla::Plugin::MetaJSON" : "5.012", - "Dist::Zilla::Plugin::MetaProvides::Package" : "1.15000003", - "Dist::Zilla::Plugin::MetaTests" : "5.012", - "Dist::Zilla::Plugin::MetaYAML" : "5.012", - "Dist::Zilla::Plugin::MinimumPerl" : "1.003", - "Dist::Zilla::Plugin::PkgVersion" : "5.012", - "Dist::Zilla::Plugin::PodCoverageTests" : "5.012", - "Dist::Zilla::Plugin::PodSyntaxTests" : "5.012", - "Dist::Zilla::Plugin::PodWeaver" : "4.005", - "Dist::Zilla::Plugin::Prereqs" : "5.012", - "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.001000", - "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.133360", - "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", - "Dist::Zilla::Plugin::RunExtraTests" : "0.016", - "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::Test::ReportPrereqs" : "0.013", - "Dist::Zilla::Plugin::TestRelease" : "5.012", - "Dist::Zilla::Plugin::Twitter" : "0.025", - "Dist::Zilla::Plugin::UploadToCPAN" : "5.012", - "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.012000", - "Dist::Zilla::PluginBundle::Author::KENTNL::Lite" : "1.7.2", - "ExtUtils::MakeMaker" : "6.86", - "File::Spec::Functions" : "3.40", - "Git::Wrapper" : "0.030", - "List::Util" : "1.38", - "Moo" : "1.004002", - "Path::Tiny" : "0.052", - "Pod::Coverage::TrustPod" : "0.100003", - "Scalar::Util" : "1.38", - "Sort::Versions" : "1.5", - "Sub::Exporter::Progressive" : "0.001011", - "Test::CPAN::Changes" : "0.27", - "Test::CPAN::Meta" : "0.23", - "Test::Fatal" : "0.013", - "Test::Kwalitee" : "1.18", - "Test::More" : "1.001002", - "Test::Pod" : "1.48", - "Test::Pod::Coverage" : "1.08", - "Test::Requires" : "0.07", - "Try::Tiny" : "0.19", - "strict" : "1.08", - "utf8" : "1.13", - "version" : "0.9907", - "warnings" : "1.21" - }, - "perl" : { - "original" : "v5.19.8", - "qv" : 1, - "version" : [ - 5, - 19, - 8 - ] - }, - "perl-config" : { - "gccversion" : "4.7.3", - "myarchname" : "x86_64-linux", - "osname" : "linux" - }, - "platform" : "linux", - "uname" : "Linux 3.13.0-gentoo-r1 x86_64 GenuineIntel GNU/Linux" + "external_file" : "misc/built_with.json" }, "x_Dist_Zilla" : { "perl" : { - "version" : "5.019008" + "version" : "5.025010" }, "plugins" : [ - { - "class" : "Dist::Zilla::Plugin::Git::NextVersion::Sanitized", - "config" : { - "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.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::KENTNL/GithubMeta", - "version" : "0.42" + "version" : "0.54" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", @@ -317,24 +238,32 @@ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "5.012" + "version" : "6.009" } - ] + ], + "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { - "inherit_missing" : "1", - "inherit_version" : "1", - "meta_noindex" : "1" + "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", + "inherit_missing" : 1, + "inherit_version" : 1, + "meta_noindex" : 1 + }, + "Dist::Zilla::Role::ModuleMetadata" : { + "Module::Metadata" : "1.000033", + "version" : "0.004" } }, "name" : "@Author::KENTNL/MetaProvides::Package", - "version" : "1.15000003" + "version" : "2.004003" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", "config" : { "Dist::Zilla::Plugin::MetaData::BuiltWith" : { + "$Module::Metadata::VERSION" : "1.000033", "_stash_key" : "x_BuiltWith", + "external_file_name" : "misc/built_with.json", "show_config" : "1", "show_uname" : "1", "uname" : { @@ -346,76 +275,151 @@ "-i" ], "uname_call" : "uname" - } + }, + "use_external_file" : "only" } }, "name" : "@Author::KENTNL/MetaData::BuiltWith", - "version" : "0.04000002" + "version" : "1.004005" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Contributors", + "config" : { + "Dist::Zilla::Plugin::Git::Contributors" : { + "git --version" : "2.11.1", + "include_authors" : 0, + "include_releaser" : 0, + "order_by" : "name", + "paths" : [] + } + }, + "name" : "@Author::KENTNL/Git::Contributors", + "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", + "config" : { + "Dist::Zilla::Plugin::GatherDir" : { + "exclude_filename" : [ + "LICENSE", + "README", + "README.mkdn", + "README.pod" + ], + "exclude_match" : [], + "follow_symlinks" : 0, + "include_dotfiles" : 1, + "prefix" : "", + "prune_directory" : [], + "root" : "." + }, + "Dist::Zilla::Plugin::Git::GatherDir" : { + "include_untracked" : 0 + } + }, "name" : "@Author::KENTNL/Git::GatherDir", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::KENTNL/License", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::KENTNL/MetaJSON", - "version" : "5.012" + "version" : "6.009" }, { - "class" : "Dist::Zilla::Plugin::MetaYAML", - "name" : "@Author::KENTNL/MetaYAML", - "version" : "5.012" + "class" : "Dist::Zilla::Plugin::MetaYAML::Minimal", + "config" : { + "Dist::Zilla::Plugin::MetaYAML::Minimal" : { + "filename" : "META.yml", + "version" : "1.4" + } + }, + "name" : "@Author::KENTNL/MetaYAML::Minimal", + "version" : "0.001001" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::KENTNL/Manifest", - "version" : "5.012" + "version" : "6.009" + }, + { + "class" : "Dist::Zilla::Plugin::Author::KENTNL::TravisCI", + "config" : { + "Dist::Zilla::Plugin::Author::KENTNL::TravisCI" : { + "fail_perls" : [ + "5.8" + ], + "skip_perls" : [] + } + }, + "name" : "@Author::KENTNL/Author::KENTNL::TravisCI", + "version" : "0.001004" + }, + { + "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", + "name" : "@Author::KENTNL/CopyXBuild", + "version" : "0.163040" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::KENTNL/MetaTests", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::KENTNL/PodCoverageTests", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::KENTNL/PodSyntaxTests", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::KENTNL/Test::ReportPrereqs", - "version" : "0.013" + "version" : "0.025" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", + "config" : { + "Dist::Zilla::Plugin::Test::Kwalitee" : { + "filename" : "xt/release/kwalitee.t", + "skiptest" : [] + } + }, "name" : "@Author::KENTNL/Test::Kwalitee", - "version" : "2.07" + "version" : "2.12" }, { - "class" : "Dist::Zilla::Plugin::EOLTests", - "name" : "@Author::KENTNL/EOLTests", - "version" : "0.02" + "class" : "Dist::Zilla::Plugin::Test::EOL", + "config" : { + "Dist::Zilla::Plugin::Test::EOL" : { + "filename" : "xt/author/eol.t", + "finder" : [ + ":ExecFiles", + ":InstallModules", + ":TestFiles" + ], + "trailing_whitespace" : 1 + } + }, + "name" : "@Author::KENTNL/Test::EOL", + "version" : "0.19" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "name" : "@Author::KENTNL/Test::MinimumVersion", - "version" : "2.000005" + "version" : "2.000007" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Test::Compile::PerFile", @@ -443,27 +447,43 @@ "path_translator" : "base64_filter", "prefix" : "t/00-compile", "skip" : [], - "test_template" : "01-basic.t.tpl", + "test_template" : "02-raw-require.t.tpl", "xt_mode" : null } }, "name" : "@Author::KENTNL/Test::Compile::PerFile", - "version" : "0.001001" + "version" : "0.004000" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", "name" : "@Author::KENTNL/Test::Perl::Critic", - "version" : "2.112410" + "version" : "3.000" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::KENTNL/ManifestSkip", - "version" : "5.012" + "version" : "6.009" }, { - "class" : "Dist::Zilla::Plugin::PkgVersion", - "name" : "@Author::KENTNL/PkgVersion", - "version" : "5.012" + "class" : "Dist::Zilla::Plugin::RewriteVersion::Sanitized", + "config" : { + "Dist::Zilla::Plugin::RewriteVersion" : { + "add_tarball_name" : 0, + "finders" : [ + ":ExecFiles", + ":InstallModules" + ], + "global" : 0, + "skip_version_provider" : 0 + }, + "Dist::Zilla::Role::Version::Sanitize" : { + "$Dist::Zilla::Role::Version::Sanitize::VERSION" : "0.002003", + "mantissa" : "6", + "normal_form" : "numify" + } + }, + "name" : "@Author::KENTNL/RewriteVersion::Sanitized", + "version" : "0.001006" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", @@ -477,118 +497,113 @@ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "-SingleEncoding", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Name", "name" : "Name", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Version", "name" : "Version", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Region", "name" : "prelude", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "OVERVIEW", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "MODULES", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "COMMON INTERFACE", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "FUNCTIONS", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "METHODS", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "ATTRIBUTES", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "PRIVATE_ATTRIBUTES", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "PRIVATE_METHODS", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "Leftovers", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Region", "name" : "postlude", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "Authors", - "version" : "4.006" + "version" : "4.015" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "Legal", - "version" : "4.006" + "version" : "4.015" } ] } }, "name" : "@Author::KENTNL/PodWeaver", - "version" : "4.005" - }, - { - "class" : "Dist::Zilla::Plugin::Git::NextRelease", - "name" : "@Author::KENTNL/Git::NextRelease", - "version" : "0.002001" + "version" : "4.008" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::KENTNL/AutoPrereqs", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -599,143 +614,302 @@ } }, "name" : "@Author::KENTNL/BundleDevelSuggests", - "version" : "5.012" + "version" : "6.009" }, { - "class" : "Dist::Zilla::Plugin::Prereqs", - "config" : { - "Dist::Zilla::Plugin::Prereqs" : { - "phase" : "develop", - "type" : "requires" - } - }, - "name" : "@Author::KENTNL/BundleDevelRequires", - "version" : "5.012" + "class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps", + "name" : "@Author::KENTNL/Prereqs::AuthorDeps", + "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::MinimumPerl", "name" : "@Author::KENTNL/MinimumPerl", - "version" : "1.003" + "version" : "1.006" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@Author::KENTNL/Authority", - "version" : "1.006" + "version" : "1.009" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : "10" + } + }, "name" : "@Author::KENTNL/MakeMaker", - "version" : "5.012" + "version" : "6.009" + }, + { + "class" : "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes", + "name" : "@Author::KENTNL/Author::KENTNL::RecommendFixes", + "version" : "0.005004" }, { - "class" : "Dist::Zilla::Plugin::ReadmeFromPod", - "name" : "@Author::KENTNL/ReadmeFromPod", - "version" : "0.21" + "class" : "Dist::Zilla::Plugin::Readme::Brief", + "name" : "@Author::KENTNL/ShippedReadme", + "version" : "0.003001" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", + "config" : { + "Dist::Zilla::Role::FileWatcher" : { + "version" : "0.006" + } + }, "name" : "@Author::KENTNL/ReadmeAnyFromPod", - "version" : "0.133360" + "version" : "0.163250" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", + "config" : { + "Dist::Zilla::Plugin::Test::CPAN::Changes" : { + "changelog" : "Changes" + } + }, "name" : "@Author::KENTNL/Test::CPAN::Changes", - "version" : "0.008" + "version" : "0.012" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", + "config" : { + "Dist::Zilla::Role::TestRunner" : { + "default_jobs" : "10" + } + }, "name" : "@Author::KENTNL/RunExtraTests", - "version" : "0.016" + "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::KENTNL/TestRelease", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::KENTNL/ConfirmRelease", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Git::Check", + "config" : { + "Dist::Zilla::Plugin::Git::Check" : { + "untracked_files" : "die" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "Changes", + "dist.ini" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.1", + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::Check", - "version" : "2.019" + "version" : "2.041" + }, + { + "class" : "Dist::Zilla::Plugin::Git::Commit", + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "Changes", + "dist.ini" + ], + "allow_dirty_match" : [], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.1", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, + "name" : "@Author::KENTNL/commit_dirty_files", + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : null, + "changelog" : "Changes", + "signed" : 0, + "tag" : "0.004011-source", + "tag_format" : "%v-source", + "tag_message" : "v%v" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.1", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, "name" : "@Author::KENTNL/tag_master", - "version" : "2.019" + "version" : "2.041" + }, + { + "class" : "Dist::Zilla::Plugin::Git::NextRelease", + "config" : { + "Dist::Zilla::Plugin::Git::NextRelease" : { + "default_branch" : "master" + } + }, + "name" : "@Author::KENTNL/Git::NextRelease", + "version" : "0.004000" + }, + { + "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", + "config" : { + "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { + "finders" : [ + ":ExecFiles", + ":InstallModules" + ], + "global" : 0, + "munge_makefile_pl" : 1 + } + }, + "name" : "@Author::KENTNL/BumpVersionAfterRelease", + "version" : "0.015" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", - "name" : "@Author::KENTNL/Git::Commit", - "version" : "2.019" + "config" : { + "Dist::Zilla::Plugin::Git::Commit" : { + "add_files_in" : [], + "commit_msg" : "v%v%n%n%c" + }, + "Dist::Zilla::Role::Git::DirtyFiles" : { + "allow_dirty" : [ + "Changes", + "dist.ini" + ], + "allow_dirty_match" : [ + "(?^u:^lib/)" + ], + "changelog" : "Changes" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.1", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, + "name" : "@Author::KENTNL/commit_release_changes", + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::CommitBuild", + "config" : { + "Dist::Zilla::Plugin::Git::CommitBuild" : { + "branch" : "builds", + "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" : { + "git --version" : "2.11.1", + "repo_root" : "." + } + }, "name" : "@Author::KENTNL/Git::CommitBuild", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", + "config" : { + "Dist::Zilla::Plugin::Git::Tag" : { + "branch" : "releases", + "changelog" : "Changes", + "signed" : 0, + "tag" : "0.004011", + "tag_format" : "%v", + "tag_message" : "v%v" + }, + "Dist::Zilla::Role::Git::Repo" : { + "git --version" : "2.11.1", + "repo_root" : "." + }, + "Dist::Zilla::Role::Git::StringFormatter" : { + "time_zone" : "local" + } + }, "name" : "@Author::KENTNL/tag_release", - "version" : "2.019" + "version" : "2.041" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::KENTNL/UploadToCPAN", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Twitter", "name" : "@Author::KENTNL/Twitter", - "version" : "0.025" + "version" : "0.026" }, { - "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", + "class" : "Dist::Zilla::Plugin::Prereqs::Upgrade", "config" : { - "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" - ], - "modules" : [ - "ExtUtils::MakeMaker", - "Test::More" - ] + "Dist::Zilla::Plugin::Prereqs::Upgrade" : { + "modules" : { + "Dist::Zila::Plugin::MetaProvides::Package" : "2.000000", + "Dist::Zilla" : "5", + "ExtUtils::MakeMaker" : "7.00", + "File::ShareDir::Install" : "0.10", + "Moo" : "1.000008", + "Moose" : "2.000", + "Path::Tiny" : "0.058", + "Test::File::ShareDir" : "1.000000", + "Test::More" : "0.99" + } } }, - "name" : "@Author::KENTNL/Prereqs::Recommend::MatchInstalled", - "version" : "0.001000" + "name" : "@Author::KENTNL/Prereqs::Upgrade", + "version" : "0.001001" }, { "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", "config" : { "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { "applyto_map" : [ - "develop.requires = develop.requires" + "develop.suggests = develop.suggests" ], "applyto_phase" : [ "develop" ], "modules" : [ - "Dist::Zilla::PluginBundle::Author::KENTNL" - ] + "Dist::Zilla::PluginBundle::Author::KENTNL", + "Dist::Zilla::App::Command::bakeini" + ], + "source_relation" : "requires", + "target_relation" : "recommends" } }, "name" : "@Author::KENTNL/always_latest_develop_bundle", - "version" : "0.001000" + "version" : "0.003002" + }, + { + "class" : "Dist::Zilla::Plugin::RemovePrereqs::Provided", + "name" : "@Author::KENTNL/RemovePrereqs::Provided", + "version" : "0.001001" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -746,7 +920,7 @@ } }, "name" : "@Author::KENTNL/::Role::BundleDeps", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::Prereqs", @@ -757,62 +931,73 @@ } }, "name" : "Prereqs", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", - "version" : "5.012" + "version" : "6.009" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":ExtraTestFiles", + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", - "version" : "5.012" + "version" : "6.009" + }, + { + "class" : "Dist::Zilla::Plugin::FinderCode", + "name" : ":PerlExecFiles", + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", - "version" : "5.012" + "version" : "6.009" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", - "version" : "5.012" + "version" : "6.009" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { - "is_trial" : "0" + "is_trial" : 0 }, - "version" : "5.012" + "version" : "6.009" } }, - "x_authority" : "cpan:KENTNL" + "x_authority" : "cpan:KENTNL", + "x_serialization_backend" : "Cpanel::JSON::XS version 3.0227" } diff --git a/META.yml b/META.yml index 6702bc2..7cf6108 100644 --- a/META.yml +++ b/META.yml @@ -1,589 +1,93 @@ --- abstract: 'A Toolkit for working with Git::Wrapper in an Object Oriented Way.' author: - - 'Kent Fredric ' + - 'Kent Fredric ' build_requires: - ExtUtils::MakeMaker: 0 - File::Spec::Functions: 0 - List::Util: 0 - Test::Fatal: 0 - Test::More: 0.89 - Test::Requires: 0 - version: 0 + ExtUtils::MakeMaker: '0' + File::Spec: '0' + Test::Fatal: '0' + Test::More: '0' + Test::Requires: '0' + perl: '5.006' configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: '0' + perl: '5.006' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.012, CPAN::Meta::Converter version 2.133380' +generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Git-Wrapper-Plus provides: Git::Wrapper::Plus: file: lib/Git/Wrapper/Plus.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Branches: file: lib/Git/Wrapper/Plus/Branches.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Ref: file: lib/Git/Wrapper/Plus/Ref.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Ref::Branch: file: lib/Git/Wrapper/Plus/Ref/Branch.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Ref::Tag: file: lib/Git/Wrapper/Plus/Ref/Tag.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Refs: file: lib/Git/Wrapper/Plus/Refs.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support: file: lib/Git/Wrapper/Plus/Support.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::Arguments: file: lib/Git/Wrapper/Plus/Support/Arguments.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::Behaviors: file: lib/Git/Wrapper/Plus/Support/Behaviors.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::Commands: file: lib/Git/Wrapper/Plus/Support/Commands.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::Range: file: lib/Git/Wrapper/Plus/Support/Range.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::RangeDictionary: file: lib/Git/Wrapper/Plus/Support/RangeDictionary.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Support::RangeSet: file: lib/Git/Wrapper/Plus/Support/RangeSet.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Tags: file: lib/Git/Wrapper/Plus/Tags.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Tester: file: lib/Git/Wrapper/Plus/Tester.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Util: file: lib/Git/Wrapper/Plus/Util.pm - version: 0.004010 + version: '0.004011' Git::Wrapper::Plus::Versions: file: lib/Git/Wrapper/Plus/Versions.pm - version: 0.004010 + version: '0.004011' +recommends: + Moo: '1.000008' + Path::Tiny: '0.058' requires: - Carp: 0 - Git::Wrapper: 0 - Moo: 0 - Path::Tiny: 0 - Scalar::Util: 0 - Sort::Versions: 0 - Sub::Exporter::Progressive: 0 - Try::Tiny: 0 - perl: 5.008 - strict: 0 - utf8: 0 - warnings: 0 + Carp: '0' + Git::Wrapper: '0' + Moo: '0' + Path::Tiny: '0' + Scalar::Util: '0' + Sort::Versions: '0' + Sub::Exporter::Progressive: '0' + Try::Tiny: '0' + perl: '5.006' + strict: '0' + warnings: '0' resources: - bugtracker: https://github.com/kentfredric/Git-Wrapper-Plus/issues - homepage: https://github.com/kentfredric/Git-Wrapper-Plus - repository: https://github.com/kentfredric/Git-Wrapper-Plus.git -version: 0.004010 -x_BuiltWith: - modules: - CPAN::Meta: 2.133380 - CPAN::Meta::Requirements: 2.125 - Carp: 1.32 - Dist::Zilla::Plugin::Authority: 1.006 - Dist::Zilla::Plugin::AutoPrereqs: 5.012 - Dist::Zilla::Plugin::ConfirmRelease: 5.012 - 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::NextRelease: 0.002001 - Dist::Zilla::Plugin::Git::NextVersion::Sanitized: 0.001000 - Dist::Zilla::Plugin::Git::Tag: 2.019 - Dist::Zilla::Plugin::GithubMeta: 0.42 - Dist::Zilla::Plugin::License: 5.012 - Dist::Zilla::Plugin::MakeMaker: 5.012 - Dist::Zilla::Plugin::Manifest: 5.012 - Dist::Zilla::Plugin::ManifestSkip: 5.012 - Dist::Zilla::Plugin::MetaConfig: 5.012 - Dist::Zilla::Plugin::MetaData::BuiltWith: 0.04000002 - Dist::Zilla::Plugin::MetaJSON: 5.012 - Dist::Zilla::Plugin::MetaProvides::Package: 1.15000003 - Dist::Zilla::Plugin::MetaTests: 5.012 - Dist::Zilla::Plugin::MetaYAML: 5.012 - Dist::Zilla::Plugin::MinimumPerl: 1.003 - Dist::Zilla::Plugin::PkgVersion: 5.012 - Dist::Zilla::Plugin::PodCoverageTests: 5.012 - Dist::Zilla::Plugin::PodSyntaxTests: 5.012 - Dist::Zilla::Plugin::PodWeaver: 4.005 - Dist::Zilla::Plugin::Prereqs: 5.012 - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: 0.001000 - Dist::Zilla::Plugin::ReadmeAnyFromPod: 0.133360 - Dist::Zilla::Plugin::ReadmeFromPod: 0.21 - Dist::Zilla::Plugin::RunExtraTests: 0.016 - 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::Test::ReportPrereqs: 0.013 - Dist::Zilla::Plugin::TestRelease: 5.012 - Dist::Zilla::Plugin::Twitter: 0.025 - Dist::Zilla::Plugin::UploadToCPAN: 5.012 - Dist::Zilla::PluginBundle::Author::KENTNL: 2.012000 - Dist::Zilla::PluginBundle::Author::KENTNL::Lite: 1.7.2 - ExtUtils::MakeMaker: 6.86 - File::Spec::Functions: 3.40 - Git::Wrapper: 0.030 - List::Util: 1.38 - Moo: 1.004002 - Path::Tiny: 0.052 - Pod::Coverage::TrustPod: 0.100003 - Scalar::Util: 1.38 - Sort::Versions: 1.5 - Sub::Exporter::Progressive: 0.001011 - Test::CPAN::Changes: 0.27 - Test::CPAN::Meta: 0.23 - Test::Fatal: 0.013 - Test::Kwalitee: 1.18 - Test::More: 1.001002 - Test::Pod: 1.48 - Test::Pod::Coverage: 1.08 - Test::Requires: 0.07 - Try::Tiny: 0.19 - strict: 1.08 - utf8: 1.13 - version: 0.9907 - warnings: 1.21 - perl: - original: v5.19.8 - qv: 1 - version: - - 5 - - 19 - - 8 - perl-config: - gccversion: 4.7.3 - myarchname: x86_64-linux - osname: linux - platform: linux - uname: 'Linux 3.13.0-gentoo-r1 x86_64 GenuineIntel GNU/Linux' -x_Dist_Zilla: - perl: - version: 5.019008 - plugins: - - - class: Dist::Zilla::Plugin::Git::NextVersion::Sanitized - config: - 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.012 - - - class: Dist::Zilla::Plugin::GithubMeta - name: '@Author::KENTNL/GithubMeta' - version: 0.42 - - - class: Dist::Zilla::Plugin::MetaProvides::Package - config: - Dist::Zilla::Plugin::MetaProvides::Package: - finder_objects: - - - class: Dist::Zilla::Plugin::FinderCode - name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: 5.012 - Dist::Zilla::Role::MetaProvider::Provider: - inherit_missing: 1 - inherit_version: 1 - meta_noindex: 1 - name: '@Author::KENTNL/MetaProvides::Package' - version: 1.15000003 - - - class: Dist::Zilla::Plugin::MetaData::BuiltWith - config: - Dist::Zilla::Plugin::MetaData::BuiltWith: - _stash_key: x_BuiltWith - show_config: 1 - show_uname: 1 - uname: - uname_args: - - '-s' - - '-o' - - '-r' - - '-m' - - '-i' - uname_call: uname - name: '@Author::KENTNL/MetaData::BuiltWith' - version: 0.04000002 - - - class: Dist::Zilla::Plugin::Git::GatherDir - name: '@Author::KENTNL/Git::GatherDir' - version: 2.019 - - - class: Dist::Zilla::Plugin::License - name: '@Author::KENTNL/License' - version: 5.012 - - - class: Dist::Zilla::Plugin::MetaJSON - name: '@Author::KENTNL/MetaJSON' - version: 5.012 - - - class: Dist::Zilla::Plugin::MetaYAML - name: '@Author::KENTNL/MetaYAML' - version: 5.012 - - - class: Dist::Zilla::Plugin::Manifest - name: '@Author::KENTNL/Manifest' - version: 5.012 - - - class: Dist::Zilla::Plugin::MetaTests - name: '@Author::KENTNL/MetaTests' - version: 5.012 - - - class: Dist::Zilla::Plugin::PodCoverageTests - name: '@Author::KENTNL/PodCoverageTests' - version: 5.012 - - - class: Dist::Zilla::Plugin::PodSyntaxTests - name: '@Author::KENTNL/PodSyntaxTests' - version: 5.012 - - - 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 - - - class: Dist::Zilla::Plugin::EOLTests - name: '@Author::KENTNL/EOLTests' - version: 0.02 - - - class: Dist::Zilla::Plugin::Test::MinimumVersion - name: '@Author::KENTNL/Test::MinimumVersion' - version: 2.000005 - - - class: Dist::Zilla::Plugin::FinderCode - name: '@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM' - version: 5.012 - - - class: Dist::Zilla::Plugin::Test::Compile::PerFile - config: - Dist::Zilla::Plugin::Test::Compile::PerFile: - file: - - lib/Git/Wrapper/Plus.pm - - lib/Git/Wrapper/Plus/Branches.pm - - lib/Git/Wrapper/Plus/Ref.pm - - lib/Git/Wrapper/Plus/Ref/Branch.pm - - lib/Git/Wrapper/Plus/Ref/Tag.pm - - lib/Git/Wrapper/Plus/Refs.pm - - lib/Git/Wrapper/Plus/Support.pm - - lib/Git/Wrapper/Plus/Support/Arguments.pm - - lib/Git/Wrapper/Plus/Support/Behaviors.pm - - lib/Git/Wrapper/Plus/Support/Commands.pm - - lib/Git/Wrapper/Plus/Support/Range.pm - - lib/Git/Wrapper/Plus/Support/RangeDictionary.pm - - lib/Git/Wrapper/Plus/Support/RangeSet.pm - - lib/Git/Wrapper/Plus/Tags.pm - - lib/Git/Wrapper/Plus/Tester.pm - - lib/Git/Wrapper/Plus/Util.pm - - lib/Git/Wrapper/Plus/Versions.pm - path_translator: base64_filter - prefix: t/00-compile - skip: [] - test_template: 01-basic.t.tpl - xt_mode: ~ - name: '@Author::KENTNL/Test::Compile::PerFile' - version: 0.001001 - - - class: Dist::Zilla::Plugin::Test::Perl::Critic - name: '@Author::KENTNL/Test::Perl::Critic' - version: 2.112410 - - - class: Dist::Zilla::Plugin::ManifestSkip - name: '@Author::KENTNL/ManifestSkip' - version: 5.012 - - - class: Dist::Zilla::Plugin::PkgVersion - name: '@Author::KENTNL/PkgVersion' - version: 5.012 - - - class: Dist::Zilla::Plugin::PodWeaver - config: - Dist::Zilla::Plugin::PodWeaver: - finder: - - ':InstallModules' - - ':ExecFiles' - plugins: - - - class: Pod::Weaver::Plugin::EnsurePod5 - name: '@CorePrep/EnsurePod5' - version: 4.006 - - - class: Pod::Weaver::Plugin::H1Nester - name: '@CorePrep/H1Nester' - version: 4.006 - - - class: Pod::Weaver::Plugin::SingleEncoding - name: '-SingleEncoding' - version: 4.006 - - - class: Pod::Weaver::Section::Name - name: Name - version: 4.006 - - - class: Pod::Weaver::Section::Version - name: Version - version: 4.006 - - - class: Pod::Weaver::Section::Region - name: prelude - version: 4.006 - - - class: Pod::Weaver::Section::Generic - name: SYNOPSIS - version: 4.006 - - - class: Pod::Weaver::Section::Generic - name: DESCRIPTION - version: 4.006 - - - class: Pod::Weaver::Section::Generic - name: OVERVIEW - version: 4.006 - - - class: Pod::Weaver::Section::Generic - name: MODULES - version: 4.006 - - - class: Pod::Weaver::Section::Generic - name: 'COMMON INTERFACE' - version: 4.006 - - - class: Pod::Weaver::Section::Collect - name: FUNCTIONS - version: 4.006 - - - class: Pod::Weaver::Section::Collect - name: METHODS - version: 4.006 - - - class: Pod::Weaver::Section::Collect - name: ATTRIBUTES - version: 4.006 - - - class: Pod::Weaver::Section::Collect - name: PRIVATE_ATTRIBUTES - version: 4.006 - - - class: Pod::Weaver::Section::Collect - name: PRIVATE_METHODS - version: 4.006 - - - class: Pod::Weaver::Section::Leftovers - name: Leftovers - version: 4.006 - - - class: Pod::Weaver::Section::Region - name: postlude - version: 4.006 - - - class: Pod::Weaver::Section::Authors - name: Authors - version: 4.006 - - - class: Pod::Weaver::Section::Legal - name: Legal - version: 4.006 - name: '@Author::KENTNL/PodWeaver' - version: 4.005 - - - class: Dist::Zilla::Plugin::Git::NextRelease - name: '@Author::KENTNL/Git::NextRelease' - version: 0.002001 - - - class: Dist::Zilla::Plugin::AutoPrereqs - name: '@Author::KENTNL/AutoPrereqs' - version: 5.012 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: develop - type: suggests - name: '@Author::KENTNL/BundleDevelSuggests' - version: 5.012 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: develop - type: requires - name: '@Author::KENTNL/BundleDevelRequires' - version: 5.012 - - - class: Dist::Zilla::Plugin::MinimumPerl - name: '@Author::KENTNL/MinimumPerl' - version: 1.003 - - - class: Dist::Zilla::Plugin::Authority - name: '@Author::KENTNL/Authority' - version: 1.006 - - - class: Dist::Zilla::Plugin::MakeMaker - name: '@Author::KENTNL/MakeMaker' - version: 5.012 - - - class: Dist::Zilla::Plugin::ReadmeFromPod - name: '@Author::KENTNL/ReadmeFromPod' - version: 0.21 - - - class: Dist::Zilla::Plugin::ReadmeAnyFromPod - name: '@Author::KENTNL/ReadmeAnyFromPod' - version: 0.133360 - - - class: Dist::Zilla::Plugin::Test::CPAN::Changes - name: '@Author::KENTNL/Test::CPAN::Changes' - version: 0.008 - - - class: Dist::Zilla::Plugin::RunExtraTests - name: '@Author::KENTNL/RunExtraTests' - version: 0.016 - - - class: Dist::Zilla::Plugin::TestRelease - name: '@Author::KENTNL/TestRelease' - version: 5.012 - - - class: Dist::Zilla::Plugin::ConfirmRelease - name: '@Author::KENTNL/ConfirmRelease' - version: 5.012 - - - class: Dist::Zilla::Plugin::Git::Check - name: '@Author::KENTNL/Git::Check' - version: 2.019 - - - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/tag_master' - version: 2.019 - - - class: Dist::Zilla::Plugin::Git::Commit - name: '@Author::KENTNL/Git::Commit' - version: 2.019 - - - class: Dist::Zilla::Plugin::Git::CommitBuild - name: '@Author::KENTNL/Git::CommitBuild' - version: 2.019 - - - class: Dist::Zilla::Plugin::Git::Tag - name: '@Author::KENTNL/tag_release' - version: 2.019 - - - class: Dist::Zilla::Plugin::UploadToCPAN - name: '@Author::KENTNL/UploadToCPAN' - version: 5.012 - - - class: Dist::Zilla::Plugin::Twitter - name: '@Author::KENTNL/Twitter' - version: 0.025 - - - class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled - config: - 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 - 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: - - Dist::Zilla::PluginBundle::Author::KENTNL - name: '@Author::KENTNL/always_latest_develop_bundle' - version: 0.001000 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: develop - type: requires - name: '@Author::KENTNL/::Role::BundleDeps' - version: 5.012 - - - class: Dist::Zilla::Plugin::Prereqs - config: - Dist::Zilla::Plugin::Prereqs: - phase: runtime - type: requires - name: Prereqs - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':InstallModules' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':IncModules' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':TestFiles' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':ExecFiles' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':ShareFiles' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':MainModule' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':AllFiles' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: ':NoFiles' - version: 5.012 - - - class: Dist::Zilla::Plugin::FinderCode - name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' - version: 5.012 - zilla: - class: Dist::Zilla::Dist::Builder - config: - is_trial: 0 - version: 5.012 -x_authority: cpan:KENTNL + bugtracker: https://github.com/kentnl/Git-Wrapper-Plus/issues + homepage: https://github.com/kentnl/Git-Wrapper-Plus + repository: https://github.com/kentnl/Git-Wrapper-Plus.git +version: '0.004011' diff --git a/Makefile.PL b/Makefile.PL index db1b7eb..082ef0b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,24 +1,20 @@ - -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.012. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009. use strict; use warnings; -use 5.008; - -use ExtUtils::MakeMaker 6.30; - +use 5.006; +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "A Toolkit for working with Git::Wrapper in an Object Oriented Way.", - "AUTHOR" => "Kent Fredric ", - "BUILD_REQUIRES" => {}, + "AUTHOR" => "Kent Fredric ", "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Git-Wrapper-Plus", - "EXE_FILES" => [], "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.006", "NAME" => "Git::Wrapper::Plus", "PREREQ_PM" => { "Carp" => 0, @@ -30,19 +26,16 @@ my %WriteMakefileArgs = ( "Sub::Exporter::Progressive" => 0, "Try::Tiny" => 0, "strict" => 0, - "utf8" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, - "File::Spec::Functions" => 0, - "List::Util" => 0, + "File::Spec" => 0, "Test::Fatal" => 0, - "Test::More" => "0.89", - "Test::Requires" => 0, - "version" => 0 + "Test::More" => 0, + "Test::Requires" => 0 }, - "VERSION" => "0.004010", + "VERSION" => "0.004011", "test" => { "TESTS" => "t/*.t t/00-compile/*.t t/branches/*.t t/plus/*.t t/refs/*.t t/tags/*.t" } @@ -52,21 +45,18 @@ my %WriteMakefileArgs = ( my %FallbackPrereqs = ( "Carp" => 0, "ExtUtils::MakeMaker" => 0, - "File::Spec::Functions" => 0, + "File::Spec" => 0, "Git::Wrapper" => 0, - "List::Util" => 0, "Moo" => 0, "Path::Tiny" => 0, "Scalar::Util" => 0, "Sort::Versions" => 0, "Sub::Exporter::Progressive" => 0, "Test::Fatal" => 0, - "Test::More" => "0.89", + "Test::More" => 0, "Test::Requires" => 0, "Try::Tiny" => 0, "strict" => 0, - "utf8" => 0, - "version" => 0, "warnings" => 0 ); @@ -81,6 +71,3 @@ delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); - - - diff --git a/README b/README index ccccdfe..cdefc47 100644 --- a/README +++ b/README @@ -1,112 +1,61 @@ -NAME - Git::Wrapper::Plus - A Toolkit for working with Git::Wrapper in an - Object Oriented Way. - -VERSION - version 0.004010 +Git::Wrapper::Plus -DESCRIPTION - Initially, I started off with "Dist::Zilla::Util::" and friends, but I - soon discovered so many quirks in "git", especially multiple-version - support, and that such a toolkit would be more useful independent. +Initially, I started off with "Dist::Zilla::Util::" and friends, but I +soon discovered so many quirks in "git", especially multiple-version +support, and that such a toolkit would be more useful independent. - So "Git::Wrapper::Plus" is a collection of tools for using - "Git::Wrapper", aiming to work on all versions of Git since at least Git - 1.3. +So "Git::Wrapper::Plus" is a collection of tools for using +"Git::Wrapper", aiming to work on all versions of Git since at least Git +1.3. - For instance, you probably don't realize this, but on older "git"'s, +For instance, you probably don't realize this, but on older "git"'s, - echo > file - git add file - git commit - echo 2 > file - git add file - git commit + echo > file + git add file + git commit + echo 2 > file + git add file + git commit - does nothing, because on Git 1.3, "git add" is only for the addition to - tree, not subsequent updates. +does nothing, because on Git 1.3, "git add" is only for the addition to +tree, not subsequent updates. - echo > file - git add file - git commit - echo 2 > file - git update-index file - git commit + echo > file + git add file + git commit + echo 2 > file + git update-index file + git commit - Is how it works there. +Is how it works there. - And you'd have probably not realized this till you had a few smoke - reports back with failures on old Gits. +And you'd have probably not realized this till you had a few smoke +reports back with failures on old Gits. - And there's more common failures, like some commands simply don't exist - on old gits. +And there's more common failures, like some commands simply don't exist +on old gits. -MODULES - "Git::Wrapper::Plus::Refs" - "Git::Wrapper::Plus::Refs" is a low level interface to refs. +INSTALLATION - Other modules build on specific types of refs, but this one is generic. +This is a Perl module distribution. It should be installed with whichever +tool you use to manage your installation of Perl, e.g. any of - "Git::Wrapper::Plus::Branches" - "Git::Wrapper::Plus::Branches" is a general purpose interface to - branches. + cpanm . + cpan . + cpanp -i . - This builds upon "::Refs" +Consult http://www.cpan.org/modules/INSTALL.html for further instruction. +Should you wish to install this module manually, the procedure is - "Git::Wrapper::Plus::Tags" - "Git::Wrapper::Plus::Tags" is a general purpose interface to tags. - - This builds upon "::Refs" - - "Git::Wrapper::Plus::Versions" - "Git::Wrapper::Plus::Versions" is a simple interface for comparing git - versions. - - "Git::Wrapper::Plus::Support" - "Git::Wrapper::Plus::Support" uses the "::Versions" interface and - combines it with a table of known good version ranges to provide a basic - summary of supported features on different git versions. - -COMMON INTERFACE - You don't have to use this interface, and its probably more convenient - to use one of the other classes contained in this distribution. - - However, this top level object is usable if you want an easier way to - use many of the contained tools without having to pass "Git::Wrapper" - instances everywhere. - - use Git::Wrapper::Plus; - - my $plus = Git::Wrapper::Plus->new('.'); - $plus->refs # Git::Wrapper::Plus::Refs - $plus->branches # Git::Wrapper::Plus::Branches - $plus->tags # Git::Wrapper::Plus::Tags - $plus->versions # Git::Wrapper::Plus::Versions - $plus->support # Git::Wrapper::Plus::Support - -METHODS - "BUILDARGS" - Construction takes 4 Forms: - - ->new( $string ) # Shorthand for ->new( { git => Git::Wrapper->new( $string ) } ); - ->new( blessed ) # Shorthand for ->new( { git => blessed } ); - ->new( @list ) # Shorthand for ->new( { @list } ); - ->new( { key => value } ); # Final form. - -ATTRIBUTES - "git" - "refs" - "tags" - "branches" - "versions" - "support" -AUTHOR - Kent Fredric + perl Makefile.PL + make + make test + make install COPYRIGHT AND LICENSE - 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. +This software is copyright (c) 2017 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/dist.ini b/dist.ini index 5049608..b1b1325 100644 --- a/dist.ini +++ b/dist.ini @@ -1,19 +1,180 @@ +; This file is generated from dist.ini.meta by dzil bakeini. +; Edit that file or the bundles contained within for long-term changes. ; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 2.007000 at Sat Dec 21 05:40:24 2013 -name = Git-Wrapper-Plus -author = Kent Fredric -license = Perl_5 -copyright_holder = Kent Fredric - +; vim: syntax=dosini ; Uncomment this to bootstrap via self ; [Bootstrap::lib] +name = Git-Wrapper-Plus +author = Kent Fredric +license = Perl_5 +copyright_holder = Kent Fredric + +[MetaConfig / @Author::KENTNL/MetaConfig] + +[GithubMeta / @Author::KENTNL/GithubMeta] +issues = 1 + +[MetaProvides::Package / @Author::KENTNL/MetaProvides::Package] +:version = 1.14000001 + +[MetaData::BuiltWith / @Author::KENTNL/MetaData::BuiltWith] +:version = 1.004000 +show_config = 1 +show_uname = 1 +uname_args = -s -o -r -m -i +use_external_file = only + +[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 +exclude_filename = README.pod +exclude_filename = LICENSE +include_dotfiles = 1 + +[License / @Author::KENTNL/License] + +[MetaJSON / @Author::KENTNL/MetaJSON] + +[MetaYAML::Minimal / @Author::KENTNL/MetaYAML::Minimal] + +[Manifest / @Author::KENTNL/Manifest] + +[Author::KENTNL::TravisCI / @Author::KENTNL/Author::KENTNL::TravisCI] +:version = 0.001002 + +[CopyFilesFromBuild / @Author::KENTNL/CopyXBuild] +copy = LICENSE + +[MetaTests / @Author::KENTNL/MetaTests] + +[PodCoverageTests / @Author::KENTNL/PodCoverageTests] + +[PodSyntaxTests / @Author::KENTNL/PodSyntaxTests] + +[Test::ReportPrereqs / @Author::KENTNL/Test::ReportPrereqs] + +[Test::Kwalitee / @Author::KENTNL/Test::Kwalitee] + +[Test::EOL / @Author::KENTNL/Test::EOL] +trailing_whitespace = 1 + +[Test::MinimumVersion / @Author::KENTNL/Test::MinimumVersion] + +[Test::Compile::PerFile / @Author::KENTNL/Test::Compile::PerFile] +:version = 0.003902 +test_template = 02-raw-require.t.tpl + +[Test::Perl::Critic / @Author::KENTNL/Test::Perl::Critic] + +[ManifestSkip / @Author::KENTNL/ManifestSkip] + +[RewriteVersion::Sanitized / @Author::KENTNL/RewriteVersion::Sanitized] +mantissa = 6 +normal_form = numify + +[PodWeaver / @Author::KENTNL/PodWeaver] +replacer = replace_with_blank + +[AutoPrereqs / @Author::KENTNL/AutoPrereqs] + +[Prereqs / @Author::KENTNL/BundleDevelSuggests] +-phase = develop +-type = suggests +Dist::Zilla::App::Command::bakeini = 0.001000 +Dist::Zilla::PluginBundle::Author::KENTNL = 2.025021 + +[Prereqs::AuthorDeps / @Author::KENTNL/Prereqs::AuthorDeps] + +[MinimumPerl / @Author::KENTNL/MinimumPerl] + +[Authority / @Author::KENTNL/Authority] +:version = 1.006 +authority = cpan:KENTNL +do_metadata = 1 +locate_comment = 1 + +[MakeMaker / @Author::KENTNL/MakeMaker] +default_jobs = 10 + +[Author::KENTNL::RecommendFixes / @Author::KENTNL/Author::KENTNL::RecommendFixes] +:version = 0.004002 + +[Readme::Brief / @Author::KENTNL/ShippedReadme] + +[ReadmeAnyFromPod / @Author::KENTNL/ReadmeAnyFromPod] +filename = README.mkdn +location = root +type = markdown + +[Test::CPAN::Changes / @Author::KENTNL/Test::CPAN::Changes] + +[RunExtraTests / @Author::KENTNL/RunExtraTests] +default_jobs = 10 + +[TestRelease / @Author::KENTNL/TestRelease] + +[ConfirmRelease / @Author::KENTNL/ConfirmRelease] + +[Git::Check / @Author::KENTNL/Git::Check] +filename = Changes + +[Git::Commit / @Author::KENTNL/commit_dirty_files] + +[Git::Tag / @Author::KENTNL/tag_master] +tag_format = %v-source + +[Git::NextRelease / @Author::KENTNL/Git::NextRelease] +:version = 0.004000 +default_branch = master +format = %v %{yyyy-MM-dd'T'HH:mm:ss}dZ %h +time_zone = UTC + +[BumpVersionAfterRelease / @Author::KENTNL/BumpVersionAfterRelease] + +[Git::Commit / @Author::KENTNL/commit_release_changes] +allow_dirty_match = ^lib/ + +[Git::CommitBuild / @Author::KENTNL/Git::CommitBuild] +branch = builds +release_branch = releases + +[Git::Tag / @Author::KENTNL/tag_release] +branch = releases +tag_format = %v + +[UploadToCPAN / @Author::KENTNL/UploadToCPAN] + +[Twitter / @Author::KENTNL/Twitter] +hash_tags = #perl #cpan #git +tweet_url = https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}{{$TRIAL}}#whatsnew +url_shortener = none + +[Prereqs::Upgrade / @Author::KENTNL/Prereqs::Upgrade] +Dist::Zila::Plugin::MetaProvides::Package = 2.000000 +Dist::Zilla = 5 +ExtUtils::MakeMaker = 7.00 +File::ShareDir::Install = 0.10 +Moo = 1.000008 +Moose = 2.000 +Path::Tiny = 0.058 +Test::File::ShareDir = 1.000000 +Test::More = 0.99 + +[Prereqs::Recommend::MatchInstalled / @Author::KENTNL/always_latest_develop_bundle] +applyto_map = develop.suggests = develop.suggests +applyto_phase = develop +modules = Dist::Zilla::PluginBundle::Author::KENTNL +modules = Dist::Zilla::App::Command::bakeini + +[RemovePrereqs::Provided / @Author::KENTNL/RemovePrereqs::Provided] -[@Author::KENTNL] -:version = 2.012 -git_versions = 1 -normal_form = numify -mantissa = 6 -toolkit = eumm -toolkit_hardness = soft +[Prereqs / @Author::KENTNL/::Role::BundleDeps] ; version_major = 0 ; version_minor = 1 ; the following data denotes when this minor was minted @@ -22,7 +183,56 @@ toolkit_hardness = soft ; version_rel_day = 21 ; version_rel_hour = 5 ; version_rel_time_zone = Pacific/Auckland -twitter_hash_tags = #perl #cpan ; auto_prereqs_skip = File::Find +-phase = develop +-relationship = requires +Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002 +Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002 +Dist::Zilla::Plugin::Authority = 1.006 +Dist::Zilla::Plugin::AutoPrereqs = 0 +Dist::Zilla::Plugin::BumpVersionAfterRelease = 0 +Dist::Zilla::Plugin::ConfirmRelease = 0 +Dist::Zilla::Plugin::CopyFilesFromBuild = 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.004000 +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 = 1.004000 +Dist::Zilla::Plugin::MetaJSON = 0 +Dist::Zilla::Plugin::MetaProvides::Package = 1.14000001 +Dist::Zilla::Plugin::MetaTests = 0 +Dist::Zilla::Plugin::MetaYAML::Minimal = 0 +Dist::Zilla::Plugin::MinimumPerl = 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::AuthorDeps = 0 +Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled = 0 +Dist::Zilla::Plugin::Prereqs::Upgrade = 0 +Dist::Zilla::Plugin::Readme::Brief = 0 +Dist::Zilla::Plugin::ReadmeAnyFromPod = 0 +Dist::Zilla::Plugin::RemovePrereqs::Provided = 0 +Dist::Zilla::Plugin::RewriteVersion::Sanitized = 0 +Dist::Zilla::Plugin::RunExtraTests = 0 +Dist::Zilla::Plugin::Test::CPAN::Changes = 0 +Dist::Zilla::Plugin::Test::Compile::PerFile = 0.003902 +Dist::Zilla::Plugin::Test::EOL = 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 [Prereqs] diff --git a/dist.ini.meta b/dist.ini.meta new file mode 100644 index 0000000..aee6672 --- /dev/null +++ b/dist.ini.meta @@ -0,0 +1,32 @@ +; Generated by Dist::Zilla::Plugin::Author::KENTNL::DistINI version 2.007000 at Sat Dec 21 05:40:24 2013 +; vim: syntax=dosini +name = Git-Wrapper-Plus +author = Kent Fredric +license = Perl_5 +copyright_holder = Kent Fredric + +; Uncomment this to bootstrap via self +; [Bootstrap::lib] + +[@Author::KENTNL] +:version = 2.025020 +bump_versions = 1 +normal_form = numify +mantissa = 6 +toolkit = eumm +toolkit_hardness = soft +copy_files = LICENSE +src_readme = mkdn +twitter_extra_hash_tags = #git + +; version_major = 0 +; version_minor = 1 +; the following data denotes when this minor was minted +; version_rel_year = 2013 +; version_rel_month = 12 +; version_rel_day = 21 +; version_rel_hour = 5 +; version_rel_time_zone = Pacific/Auckland +; auto_prereqs_skip = File::Find + +[Prereqs] diff --git a/lib/Git/Wrapper/Plus.pm b/lib/Git/Wrapper/Plus.pm index 6cfbf2a..506fb9e 100644 --- a/lib/Git/Wrapper/Plus.pm +++ b/lib/Git/Wrapper/Plus.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus; -$Git::Wrapper::Plus::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A Toolkit for working with Git::Wrapper in an Object Oriented Way. our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -222,7 +223,7 @@ Git::Wrapper::Plus - A Toolkit for working with Git::Wrapper in an Object Orient =head1 VERSION -version 0.004010 +version 0.004011 =head1 DESCRIPTION @@ -340,11 +341,11 @@ Construction takes 4 Forms: =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Branches.pm b/lib/Git/Wrapper/Plus/Branches.pm index c5dced1..303e654 100644 --- a/lib/Git/Wrapper/Plus/Branches.pm +++ b/lib/Git/Wrapper/Plus/Branches.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Branches; -$Git::Wrapper::Plus::Branches::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Extract branches from Git our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -135,9 +136,7 @@ sub _current_branch_name { 128 => sub { return }, }, ); - for (@current_names) { - $_ =~ s{\A refs/heads/ }{}msx; - } + s{\A refs/heads/ }{}msx for @current_names; return @current_names; } @@ -181,7 +180,7 @@ Git::Wrapper::Plus::Branches - Extract branches from Git =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -275,11 +274,11 @@ B: A C Compatible object ( mostly for plumbi =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Ref.pm b/lib/Git/Wrapper/Plus/Ref.pm index 0caa7da..1c43313 100644 --- a/lib/Git/Wrapper/Plus/Ref.pm +++ b/lib/Git/Wrapper/Plus/Ref.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Ref; -$Git::Wrapper::Plus::Ref::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: An Abstract REF node our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -97,7 +98,7 @@ Git::Wrapper::Plus::Ref - An Abstract REF node =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -149,11 +150,11 @@ B: A C compatible object for resolving C internals =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Ref/Branch.pm b/lib/Git/Wrapper/Plus/Ref/Branch.pm index 84dfc33..8bad060 100644 --- a/lib/Git/Wrapper/Plus/Ref/Branch.pm +++ b/lib/Git/Wrapper/Plus/Ref/Branch.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Ref::Branch; -$Git::Wrapper::Plus::Ref::Branch::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A Branch object our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -145,7 +146,7 @@ Git::Wrapper::Plus::Ref::Branch - A Branch object =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -207,11 +208,11 @@ Note: C<$branch> will of course, still exist after this step =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Ref/Tag.pm b/lib/Git/Wrapper/Plus/Ref/Tag.pm index 52a03ed..0fd09a2 100644 --- a/lib/Git/Wrapper/Plus/Ref/Tag.pm +++ b/lib/Git/Wrapper/Plus/Ref/Tag.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Ref::Tag; -$Git::Wrapper::Plus::Ref::Tag::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A single tag object our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -117,7 +118,7 @@ Git::Wrapper::Plus::Ref::Tag - A single tag object =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -166,11 +167,11 @@ Returns C, in the form C<< refs/tags/B<< >> >> =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Refs.pm b/lib/Git/Wrapper/Plus/Refs.pm index 1908ec3..ef3d1e1 100644 --- a/lib/Git/Wrapper/Plus/Refs.pm +++ b/lib/Git/Wrapper/Plus/Refs.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Refs; -$Git::Wrapper::Plus::Refs::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Work with refs our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -167,7 +168,7 @@ Git::Wrapper::Plus::Refs - Work with refs =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -235,11 +236,11 @@ B: A Git::Wrapper compatible object =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support.pm b/lib/Git/Wrapper/Plus/Support.pm index 76e6e2b..6e8f3e8 100644 --- a/lib/Git/Wrapper/Plus/Support.pm +++ b/lib/Git/Wrapper/Plus/Support.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support; -$Git::Wrapper::Plus::Support::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Determine what versions of things support what our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -182,7 +183,7 @@ Git::Wrapper::Plus::Support - Determine what versions of things support what =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -277,11 +278,11 @@ object for data on git command argument support. =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/Arguments.pm b/lib/Git/Wrapper/Plus/Support/Arguments.pm index 6b111c3..6cf65fc 100644 --- a/lib/Git/Wrapper/Plus/Support/Arguments.pm +++ b/lib/Git/Wrapper/Plus/Support/Arguments.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::Arguments; -$Git::Wrapper::Plus::Support::Arguments::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Database of command argument support data our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -146,7 +147,7 @@ Git::Wrapper::Plus::Support::Arguments - Database of command argument support da =head1 VERSION -version 0.004010 +version 0.004011 =head1 METHODS @@ -215,11 +216,11 @@ C Was added in Git 1.0.0 =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/Behaviors.pm b/lib/Git/Wrapper/Plus/Support/Behaviors.pm index b7998d2..1c11792 100644 --- a/lib/Git/Wrapper/Plus/Support/Behaviors.pm +++ b/lib/Git/Wrapper/Plus/Support/Behaviors.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::Behaviors; -$Git::Wrapper::Plus::Support::Behaviors::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Database of Git Behavior Support our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -75,7 +76,7 @@ Git::Wrapper::Plus::Support::Behaviors - Database of Git Behavior Support =head1 VERSION -version 0.004010 +version 0.004011 =head1 SUPPORTED BEHAVIORS @@ -98,11 +99,11 @@ between the initial commit, and 0.99 =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/Commands.pm b/lib/Git/Wrapper/Plus/Support/Commands.pm index 3b98b68..c9e7baa 100644 --- a/lib/Git/Wrapper/Plus/Support/Commands.pm +++ b/lib/Git/Wrapper/Plus/Support/Commands.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::Commands; -$Git::Wrapper::Plus::Support::Commands::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Database of command support data our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -146,7 +147,7 @@ Git::Wrapper::Plus::Support::Commands - Database of command support data =head1 VERSION -version 0.004010 +version 0.004011 =head1 SUPPORTED COMMANDS @@ -202,11 +203,11 @@ Was present in the first git commit, 0.99 =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/Range.pm b/lib/Git/Wrapper/Plus/Support/Range.pm index 7a683b1..86d684c 100644 --- a/lib/Git/Wrapper/Plus/Support/Range.pm +++ b/lib/Git/Wrapper/Plus/Support/Range.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::Range; -$Git::Wrapper::Plus::Support::Range::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A record describing a range of supported versions our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -124,7 +125,7 @@ Git::Wrapper::Plus::Support::Range - A record describing a range of supported ve =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -180,15 +181,15 @@ The C this feature was added in. Annotative only, not used. The C this feature was removed in. Annotative only, not used. -=for Pod::Coverage::TrustPod BUILD +=for Pod::Coverage::TrustPod BUILD has_max has_max_sha1 has_max_tag has_min has_min_sha1 has_min_tag =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/RangeDictionary.pm b/lib/Git/Wrapper/Plus/Support/RangeDictionary.pm index 602b20f..7222660 100644 --- a/lib/Git/Wrapper/Plus/Support/RangeDictionary.pm +++ b/lib/Git/Wrapper/Plus/Support/RangeDictionary.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::RangeDictionary; -$Git::Wrapper::Plus::Support::RangeDictionary::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A key -> range list mapping for support features our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -158,7 +159,7 @@ Git::Wrapper::Plus::Support::RangeDictionary - A key -> range list mapping for s =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -223,11 +224,11 @@ For instance: =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Support/RangeSet.pm b/lib/Git/Wrapper/Plus/Support/RangeSet.pm index ee1a303..2fd62b7 100644 --- a/lib/Git/Wrapper/Plus/Support/RangeSet.pm +++ b/lib/Git/Wrapper/Plus/Support/RangeSet.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Support::RangeSet; -$Git::Wrapper::Plus::Support::RangeSet::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: A set of ranges of supported things our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -96,7 +97,7 @@ Git::Wrapper::Plus::Support::RangeSet - A set of ranges of supported things =head1 VERSION -version 0.004010 +version 0.004011 =head1 METHODS @@ -132,11 +133,11 @@ The series of L<< C<::Range>|Git::Wrapper::Plus::Support::Range >> objects that =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Tags.pm b/lib/Git/Wrapper/Plus/Tags.pm index 12d521a..5b6ed1a 100644 --- a/lib/Git/Wrapper/Plus/Tags.pm +++ b/lib/Git/Wrapper/Plus/Tags.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Tags; -$Git::Wrapper::Plus::Tags::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Extract all tags from a repository our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -225,7 +226,7 @@ Git::Wrapper::Plus::Tags - Extract all tags from a repository =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -331,11 +332,11 @@ B: Git::Wrapper::Plus::Refs instance, auto-built if not specified. =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Tester.pm b/lib/Git/Wrapper/Plus/Tester.pm index 4631642..f05d3c7 100644 --- a/lib/Git/Wrapper/Plus/Tester.pm +++ b/lib/Git/Wrapper/Plus/Tester.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Tester; -$Git::Wrapper::Plus::Tester::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Utility for testing things with a git repository our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -190,7 +191,7 @@ Git::Wrapper::Plus::Tester - Utility for testing things with a git repository =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -289,11 +290,11 @@ B. Defaults to C<< ->committer_email >> =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Util.pm b/lib/Git/Wrapper/Plus/Util.pm index ba7f556..f106a4f 100644 --- a/lib/Git/Wrapper/Plus/Util.pm +++ b/lib/Git/Wrapper/Plus/Util.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Util; -$Git::Wrapper::Plus::Util::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Misc plumbing tools for Git::Wrapper::Plus our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -60,15 +61,9 @@ sub exit_status_handler { catch { ## no critic (ErrorHandling::RequireUseOfExceptions) undef $return; - if ( not ref $_ ) { - die $_; - } - if ( not blessed $_ ) { - die $_; - } - if ( not $_->isa('Git::Wrapper::Exception') ) { - die $_; - } + die $_ unless ref; + die $_ unless blessed $_; + die $_ unless $_->isa('Git::Wrapper::Exception'); for my $status ( sort keys %{$status_map} ) { if ( $status == $_->status ) { $return = $status_map->{$status}->($_); @@ -95,7 +90,7 @@ Git::Wrapper::Plus::Util - Misc plumbing tools for Git::Wrapper::Plus =head1 VERSION -version 0.004010 +version 0.004011 =head1 FUNCTIONS @@ -131,11 +126,11 @@ Any other circumstances ( like a status code not existing in the map ) are simpl =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/lib/Git/Wrapper/Plus/Versions.pm b/lib/Git/Wrapper/Plus/Versions.pm index 9153b8e..dd7700a 100644 --- a/lib/Git/Wrapper/Plus/Versions.pm +++ b/lib/Git/Wrapper/Plus/Versions.pm @@ -1,10 +1,11 @@ -use 5.008; # utf8 +use 5.006; # our use strict; use warnings; -use utf8; package Git::Wrapper::Plus::Versions; -$Git::Wrapper::Plus::Versions::VERSION = '0.004010'; + +our $VERSION = '0.004011'; + # ABSTRACT: Analyze and compare git versions our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY @@ -109,7 +110,7 @@ Git::Wrapper::Plus::Versions - Analyze and compare git versions =head1 VERSION -version 0.004010 +version 0.004011 =head1 SYNOPSIS @@ -171,11 +172,11 @@ B: A Git::Wrapper compatible object. =head1 AUTHOR -Kent Fredric +Kent Fredric =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Kent Fredric . +This software is copyright (c) 2017 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/README.mkdn b/maint-travis-ci/README.mkdn deleted file mode 100644 index 80d1add..0000000 --- a/maint-travis-ci/README.mkdn +++ /dev/null @@ -1,53 +0,0 @@ -# ABOUT - -This repository contains a directory full of utilities to bolt on -to CPAN-targeting distributions, to add useful `travis-ci` features to those dists. - -# PREREQS - -All that is needed at present to get started, is a copy of `git` that provides `git subtree`, and a copy of `Path::FindDev` from `CPAN`. - -You don't need `Path::FindDev` during deployment, its just used to streamline -automated patching. - -# INSTALLING - -First, check out a copy of these scripts, it can be a temporary directory, -and you'll only need to do this once. - -```shell -$ mkdir /tmp/tci-scripts -$ cd /tmp/tci-scripts -$ git clone https://github.com/kentfredric/travis-scripts.git -``` - -Then, chdir to the root of your project - -```shell -$ chdir $PROJECT -``` - -And lastly, execute the installer - -```shell -$ /tmp/tci-scripts/sync_tree.pl -``` - -This will create the folder called `maint-travis-ci` within your distribution, -with a tree installed by `git subtree`, which will track this distribution. - -To update your copy of `/maint-travis-ci` to the latest, simply execute - -```shell -$ $PROJECT/maint-travis-ci/sync_tree.pl -``` - -While somewhere in your project. - -# CAVEATS - -Note, this tool uses `Path::FindDev`, and by proxy, `Path::IsDev` to find a development -root directory somewhere in the ancestry of `$CWD`. - -As such, you will likely need to appease `Path::IsDev` by having a file of some description that -marks the root of the development tree. diff --git a/maint-travis-ci/before_script.pl b/maint-travis-ci/before_script.pl deleted file mode 100644 index f852b51..0000000 --- a/maint-travis-ci/before_script.pl +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; -use tools; - -if ( not env_exists('STERILIZE_ENV') ) { - diag("\e[31mSTERILIZE_ENV \e[32munset\e[0m, skipping"); - exit 0; -} -if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) { - diag("before_script skipped, TRAVIS_BRANCH=master"); - exit 0; -} -else { - if ( -e './Build.PL' ) { - safe_exec( $^X, './Build.PL' ); - safe_exec("./Build"); - exit 0; - } - if ( -e './Makefile.PL' ) { - safe_exec( $^X, './Makefile.PL' ); - safe_exec("make"); - exit 0; - } - -} - diff --git a/maint-travis-ci/branch_reset.pl b/maint-travis-ci/branch_reset.pl deleted file mode 100644 index 0cc2257..0000000 --- a/maint-travis-ci/branch_reset.pl +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; -use tools; - -if ( not env_true('TRAVIS') ) { - diag('Is not running under travis!'); - exit 1; -} -diag("Resetting branch to \e[32m$ENV{TRAVIS_BRANCH}\e[0m @ \e[33m$ENV{TRAVIS_COMMIT}\e[0m"); -git( 'checkout', $ENV{TRAVIS_BRANCH} ); -git( 'reset', '--hard', $ENV{TRAVIS_COMMIT} ); -my $goodtag; -do { - my ( $output, $return ) = capture_stdout { - safe_exec_nonfatal( 'git', 'describe', '--tags', '--abbrev=0', $ENV{TRAVIS_BRANCH} ); - }; - ($goodtag) = split /\n/, $output; - if ( not $return ) { - diag("TIP Version tag is \e[32m$goodtag\e[0m"); - } -}; -my %good_tags; -do { - my $output = capture_stdout { - git( 'log', '--simplify-by-decoration', '--pretty=format:%d' ); - }; - for my $line ( split /\n/, $output ) { - if ( $line =~ /\(tag:\s+(.*)\)/ ) { - my $tag = $1; - diag("Good tag: \e[32m$tag\e[0m"); - $good_tags{$tag} = 1; - } - else { - diag("Line not matched regexp: <\e[31m$line\e[0m>"); - } - } -}; -do { - my $output = capture_stdout { - git('tag'); - }; - for my $line ( split /\n/, $output ) { - next if $good_tags{$line}; - diag("Bad tag: \e[31m$line\e[0m"); - git( 'tag', '-d', $line ); - } -}; diff --git a/maint-travis-ci/create_github_repo.pl b/maint-travis-ci/create_github_repo.pl deleted file mode 100755 index 3499778..0000000 --- a/maint-travis-ci/create_github_repo.pl +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 deleted file mode 100644 index 0664980..0000000 --- a/maint-travis-ci/install_deps.pl +++ /dev/null @@ -1,85 +0,0 @@ -#!/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; -} -if ( env_is( 'TRAVIS_BRANCH', 'master' ) and env_is( 'TRAVIS_PERL_VERSION', '5.8' ) ) { - diag("\e[31minstalldeps skipped on 5.8 on master, because \@Git, a dependency of \@Author::KENTNL, is unavailble on 5.8\e[0m"); - exit 0; -} -my (@params) = qw[ --quiet --notest --mirror http://cpan.metacpan.org/ --no-man-pages ]; -if ( env_true('DEVELOPER_DEPS') ) { - push @params, '--dev'; -} -if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) { - 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' ); - safe_exec( 'git', 'config', '--global', 'user.name', 'Travis CI ( On behalf of Kent Fredric )' ); - - my $stdout = capture_stdout { - safe_exec( 'dzil', 'authordeps', '--missing' ); - }; - - if ( $stdout !~ /^\s*$/msx ) { - cpanm( @params, split /\n/, $stdout ); - } - $stdout = capture_stdout { - safe_exec( 'dzil', 'listdeps', '--author', '--versions', '--missing' ); - }; - - if ( $stdout !~ /^\s*$/msx ) { - my @deps = split /\n/, $stdout; - my @parsedeps; - for my $dep ( split /\n/, $stdout ) { - diag("Missing: \e[31m$dep\e[0m"); - if ( $dep =~ /^\s*([^=\s]+)\s*=\s*(.*$)/ ) { - my ( $module, $version ) = ( $1, $2 ); - diag("Module: \e[31m$module\e[0m -> \e[32m$version\e[0m"); - if ( $version =~ /^\s*0\s*$/ ) { - push @parsedeps, $module; - next; - } - if ( $version =~ /^v?[0-9._]+/ ) { - push @parsedeps, "$module~>=$version"; - next; - } - push @parsedeps, "$module~$version"; - } - } - cpanm( @params, @parsedeps ); - } -} -else { - cpanm( @params, '--installdeps', '.' ); - if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) { - my $prereqs = parse_meta_json()->effective_prereqs; - my $reqs = $prereqs->requirements_for( 'develop', 'requires' ); - my @wanted; - - for my $want ( $reqs->required_modules ) { - my $module_requirement = $reqs->requirements_for_module($want); - if ( $module_requirement =~ /^\d/ ) { - push @wanted, $want . '~>=' . $module_requirement; - next; - } - push @wanted, $want . '~' . $module_requirement; - } - cpanm( @params, @wanted ); - - } -} - -exit 0; diff --git a/maint-travis-ci/install_deps_early.pl b/maint-travis-ci/install_deps_early.pl deleted file mode 100644 index 9a750df..0000000 --- a/maint-travis-ci/install_deps_early.pl +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 deleted file mode 100644 index 4d43163..0000000 --- a/maint-travis-ci/lib/tools.pm +++ /dev/null @@ -1,204 +0,0 @@ -use strict; -use warnings; - -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 (@_) { - print {$handle} $_; - } - print {$handle} "\n"; -} - -sub env_exists { - return exists $ENV{ $_[0] }; -} - -sub env_true { - return ( env_exists( $_[0] ) and $ENV{ $_[0] } ); -} -sub env_is { return ( env_exists( $_[0] ) and $ENV{ $_[0] } eq $_[1] ) } - -sub safe_exec_nonfatal { - my ( $command, @params ) = @_; - diag("running $command @params"); - my $exit = system( $command, @params ); - if ( $exit != 0 ) { - my $low = $exit & 0b11111111; - my $high = $exit >> 8; - warn "$command failed: $? $! and exit = $high , flags = $low"; - if ( $high != 0 ) { - return $high; - } - else { - return 1; - } - - } - return 0; -} - -sub safe_exec { - my ( $command, @params ) = @_; - my $exit_code = safe_exec_nonfatal( $command, @params ); - if ( $exit_code != 0 ) { - exit $exit_code; - } - return 1; -} - -sub cpanm { - my (@params) = @_; - my $cpanm_lines = 4000; - my $exit_code = safe_exec_nonfatal( 'cpanm', @params ); - if ( $exit_code != 0 ) { - 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; -} - -sub git { - my (@params) = @_; - safe_exec( 'git', @params ); -} - -my $got_fixes; - -sub get_fixes { - return if $got_fixes; - my $cwd = cwd(); - chdir '/tmp'; - safe_exec( 'git', 'clone', 'https://github.com/kentfredric/cpan-fixes.git' ); - chdir $cwd; - $got_fixes = 1; -} - -my $got_sterile; - -sub get_sterile { - return if $got_sterile; - my $cwd = cwd(); - chdir '/tmp'; - my $version = $]; - safe_exec( - 'git', 'clone', '--depth=1', - '--branch=' . $version, - 'https://github.com/kentfredric/perl5-sterile.git', - 'perl5-sterile' - ); - chdir $cwd; - $got_sterile = 1; -} -my $fixed_up; - -sub fixup_sterile { - return if $fixed_up; - get_sterile(); - my $cwd = cwd(); - chdir '/tmp/perl5-sterile'; - safe_exec( 'bash', 'patch_fixlist.sh', '/home/travis/perl5/perlbrew/perls/' . $ENV{TRAVIS_PERL_VERSION} ); - chdir $cwd; - $fixed_up = 1; -} -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$/; - 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[31mRsyncing over $value\e[0m"); - $clean_path =~ s{/?$}{/}; - $value =~ s{/?$}{/}; - 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 { - my (@params) = @_; - get_fixes(); - my $cwd = cwd(); - chdir '/tmp/cpan-fixes'; - cpanm(@params); - chdir $cwd; -} - -sub parse_meta_json { - $_[0] ||= 'META.json'; - require CPAN::Meta; - return CPAN::Meta->load_file( $_[0] ); -} - -sub import { - my ( $self, @args ) = @_; - - my $caller = [caller]->[0]; - - my $caller_stash = do { - no strict 'refs'; - *{ $caller . '::' }; - }; - - $caller_stash->{diag} = *diag; - $caller_stash->{env_exists} = *env_exists; - $caller_stash->{env_true} = *env_true; - $caller_stash->{env_is} = *env_is; - $caller_stash->{safe_exec_nonfatal} = *safe_exec_nonfatal; - $caller_stash->{safe_exec} = *safe_exec; - $caller_stash->{cpanm} = *cpanm; - $caller_stash->{git} = *git; - $caller_stash->{get_fixes} = *get_fixes; - $caller_stash->{cpanm_fix} = *cpanm_fix; - $caller_stash->{parse_meta_json} = *parse_meta_json; - $caller_stash->{capture_stdout} = *capture_stdout; - $caller_stash->{deploy_sterile} = *deploy_sterile; -} - -1; diff --git a/maint-travis-ci/merge_travis_yml.pl b/maint-travis-ci/merge_travis_yml.pl deleted file mode 100644 index 3dd5ae6..0000000 --- a/maint-travis-ci/merge_travis_yml.pl +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; -use utf8; - -use Path::FindDev qw( find_dev ); - -my $hashref = {}; - -my $template = find_dev('./')->child('.travis-template.yml'); -my $target = find_dev('./')->child('.travis.yml'); - -if ( -f -e $template ) { - require YAML::Loader; - my $loader = YAML::Loader->new(); - $hashref = $loader->load( $template->slurp ); -} - -if ( not exists $hashref->{language} ) { - $hashref->{language} = 'perl'; -} -if ( not exists $hashref->{perl} ) { - $hashref->{perl} = [ '5.18', '5.19' ]; -} - -use Data::Dump qw(pp); -pp($hashref); -require YAML::Dumper; -my $dumper = YAML::Dumper->new(); -$target->spew( $dumper->dump($hashref) ); diff --git a/maint-travis-ci/report_fail_ctx.pl b/maint-travis-ci/report_fail_ctx.pl deleted file mode 100644 index 8709ca0..0000000 --- a/maint-travis-ci/report_fail_ctx.pl +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; -use utf8; - -use FindBin; -use lib "$FindBin::Bin/lib"; -use tools; - -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 deleted file mode 100644 index 2d9cc88..0000000 --- a/maint-travis-ci/script.pl +++ /dev/null @@ -1,34 +0,0 @@ -#!/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[31mSTERILIZE_ENV is not set, skipping, because this is probably Travis's Default ( and unwanted ) target"); - exit 0; -} -if ( env_is( 'TRAVIS_BRANCH', 'master' ) and env_is( 'TRAVIS_PERL_VERSION', '5.8' ) ) { - diag("\e[31mscript skipped on 5.8 on master\e[32m, because \@Git, a dependency of \@Author::KENTNL, is unavailble on 5.8\e[0m"); - exit 0; -} -if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) { - $ENV{HARNESS_OPTIONS} = 'j100:c'; - safe_exec( 'dzil', 'test', '--release' ); -} -else { - my @paths = './t'; - - if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) { - push @paths, './xt'; - } - safe_exec( 'prove', '--blib', '--shuffle', '--color', '--recurse', '--timer', '--jobs', 30, @paths ); -} diff --git a/maint-travis-ci/sterilize_env.pl b/maint-travis-ci/sterilize_env.pl deleted file mode 100644 index df9dc09..0000000 --- a/maint-travis-ci/sterilize_env.pl +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; -use tools; - -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; -} -if ( not env_true('STERILIZE_ENV') ) { - diag('STERILIZE_ENV unset or false, not sterilizing'); - exit 0; -} - -if ( not env_true('TRAVIS') ) { - diag('Is not running under travis!'); - exit 1; -} - -deploy_sterile(); diff --git a/maint-travis-ci/sync_tree.pl b/maint-travis-ci/sync_tree.pl deleted file mode 100755 index cfe40e7..0000000 --- a/maint-travis-ci/sync_tree.pl +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; -use tools; - -use Path::FindDev qw( find_dev ); -my $root = find_dev('./'); - -chdir "$root"; - -sub git_subtree { - safe_exec( 'git', 'subtree', @_ ); -} - -my $travis = 'https://github.com/kentfredric/travis-scripts.git'; -my $prefix = 'maint-travis-ci'; - -my $opts = { pushas => 'incomming' }; - -for my $id ( 0 .. $#ARGV ) { - my ($field) = $ARGV[$id]; - next unless $field; - next unless $field =~ /^-+(.*?$)/; - my ($field_name) = $1; - my ($value) = $ARGV[ $id + 1 ]; - undef $ARGV[$id]; - undef $ARGV[ $id + 1 ]; - if ( $field_name eq 'push' ) { - $opts->{push} = 1; - $opts->{push_to} = $value; - next; - } - if ( $field_name eq 'pushas' ) { - $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', '--squash', '--prefix=' . $prefix, $travis, $commitish ); - } - else { - git_subtree( 'pull', '--squash', '-m', 'Synchronise git subtree maint-travis-ci', '--prefix=' . $prefix, $travis, - $commitish ); - } -} -else { - 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 deleted file mode 100755 index a6b902b..0000000 --- a/maint-travis-ci/travis_enable.pl +++ /dev/null @@ -1,88 +0,0 @@ -#!/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/sterile.mkdn b/maint-travis-ci/yamls/sterile.mkdn deleted file mode 100644 index 2091483..0000000 --- a/maint-travis-ci/yamls/sterile.mkdn +++ /dev/null @@ -1,54 +0,0 @@ -## ABOUT - - sterile.yaml - -## Tests - -### Version conformance tests - -Every version of Perl that can be tested on travis is tested. - - - perl: - env: STERILIZE_ENV=0 - -This is to test simply that the code works on that platform - -### Installable tests - -This tests both the maximum and minimum perls on travis to ensure -that: - - a. All dependencies are installable on all versions of Perl - b. No dependencies are inherently required by the code which are not specified. - - - perl: - env: STERILIZE_ENV=1 - -Tree sterilization occurs here to ensure that only the versions of things -that are provided by that version of perl exists prior to installing dependencies. - -### Pending upstream breakage - -This tests that of all the listed direct dependencies, that the code works as expected -after upgrading to the latest version of all direct dependencies. - -Presently this only runs on the newest `perl` on travis, because it is seemed that -if "-dev" versions are going to be a problem, they'll exhibit the same problems on all perls. - -Tree sterilization is not performed here, though may be in future, because that will reveal breakages -between downstream dependencies. - - - perl: - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - -### Author Testing - -This is the most dependency expensive method, as this mode pulls in all dependencies -listed in `develop.requires`, and additionally runs `xt/*` - -This is presently only performed on the latest perl due to the time expensiveness -of this, requiring significantly more dependencies to perform tests. - - - perl: - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - diff --git a/maint-travis-ci/yamls/sterile.yaml b/maint-travis-ci/yamls/sterile.yaml deleted file mode 100644 index d32f20d..0000000 --- a/maint-travis-ci/yamls/sterile.yaml +++ /dev/null @@ -1,42 +0,0 @@ -language: perl -matrix: - include: - - perl: "5.8" - env: STERILIZE_ENV=0 - - perl: "5.10" - env: STERILIZE_ENV=0 - - perl: "5.12" - env: STERILIZE_ENV=0 - - perl: "5.14" - env: STERILIZE_ENV=0 - - perl: "5.16" - env: STERILIZE_ENV=0 - - perl: "5.18" - env: STERILIZE_ENV=0 - - perl: "5.19" - env: STERILIZE_ENV=0 - - perl: "5.12" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - - perl: "5.19" - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 -before_install: - - perlbrew list - - time perl ./maint-travis-ci/branch_reset.pl - - time perl ./maint-travis-ci/sterilize_env.pl -install: - - time perl ./maint-travis-ci/install_deps.pl -before_script: - - time perl ./maint-travis-ci/before_script.pl -script: - - time perl ./maint-travis-ci/script.pl -after_failure: - - perl ./maint-travis-ci/report_fail_ctx.pl -branches: - only: - - "build/master" - - "releases" - diff --git a/maint-travis-ci/yamls/sterile2.yaml b/maint-travis-ci/yamls/sterile2.yaml deleted file mode 100644 index d0a6ce1..0000000 --- a/maint-travis-ci/yamls/sterile2.yaml +++ /dev/null @@ -1,50 +0,0 @@ -language: perl -matrix: - allow_failures: - - perl: "5.8" - - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - include: - - perl: "5.8" - env: STERILIZE_ENV=0 - - perl: "5.10" - env: STERILIZE_ENV=0 - - perl: "5.12" - env: STERILIZE_ENV=0 - - perl: "5.14" - env: STERILIZE_ENV=0 - - perl: "5.16" - env: STERILIZE_ENV=0 - - perl: "5.18" - env: STERILIZE_ENV=0 - - perl: "5.19" - env: STERILIZE_ENV=0 - - perl: "5.8" - env: STERILIZE_ENV=1 - - perl: "5.10" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=1 - - perl: "5.19" - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - - perl: "5.19" - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 -before_install: - - perlbrew list - - 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 -script: - - time perl ./maint-travis-ci/script.pl -after_failure: - - perl ./maint-travis-ci/report_fail_ctx.pl -branches: - only: - - "master" - - "build/master" - - "releases" - diff --git a/maint/perlcritic.rc.gen.pl b/maint/perlcritic.rc.gen.pl new file mode 100644 index 0000000..5535e5e --- /dev/null +++ b/maint/perlcritic.rc.gen.pl @@ -0,0 +1,49 @@ +#!/usr/bin/env perl +# 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; + +our $VERSION = 0.001; + +use Carp qw( croak carp ); +use Perl::Critic::ProfileCompiler::Util qw( create_bundle ); +use Path::Tiny qw(path); + +## no critic (ErrorHandling::RequireUseOfExceptions) +my $bundle = create_bundle('Example::Author::KENTNL'); +$bundle->configure; + +my @stopwords = (qw( rc )); +for my $var (@stopwords) { + $bundle->add_or_append_policy_field( 'Documentation::PodSpelling' => ( 'stop_words' => $var ) ); +} +$bundle->remove_policy('ErrorHandling::RequireCarping'); +$bundle->remove_policy('NamingConventions::Capitalization'); + +my $inf = $bundle->actionlist->get_inflated; + +my $config = $inf->apply_config; + +{ + my $rcfile = path('./perlcritic.rc')->openw_utf8; + $rcfile->print( $config->as_ini, "\n" ); + close $rcfile or croak 'Something fubared closing perlcritic.rc'; +} +my $deps = $inf->own_deps; +{ + my $target = path('./misc'); + $target->mkpath if not $target->is_dir; + + my $depsfile = $target->child('perlcritic.deps')->openw_utf8; + 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/Changes.deps b/misc/Changes.deps similarity index 58% rename from Changes.deps rename to misc/Changes.deps index c0cbc1f..1c62d67 100644 --- a/Changes.deps +++ b/misc/Changes.deps @@ -1,19 +1,36 @@ -0.004010 - [Added / configure recommends] - - ExtUtils::MakeMaker 6.86 +This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) +0.004011 [Added / configure requires] - - ExtUtils::MakeMaker 6.30 - - [Added / test recommends] - - ExtUtils::MakeMaker 6.86 - - Test::More 1.001002 + - perl 5.006 [Added / test requires] + - File::Spec + - perl 5.006 + + [Changed / configure requires] + - ExtUtils::MakeMaker 6.30 → 0 + + [Changed / runtime requires] + - perl 5.008 → 5.006 + + [Changed / test requires] + - Test::More 0.89 → 0 + + [Removed / runtime requires] + - utf8 + + [Removed / test requires] + - File::Spec::Functions + - List::Util - version - [Changed / test recommends] - - CPAN::Meta::Requirements 0 → 2.120900 +0.004010 2014-01-31T02:56:20Z + [Added / configure requires] + - ExtUtils::MakeMaker 6.30 + + [Added / test requires] + - version [Changed / test requires] - Test::More 1.001002 → 0.89 @@ -25,10 +42,6 @@ - Module::Build 0.4204 0.004000 2014-01-15T19:32:07Z - [Added / test recommends] - - CPAN::Meta - - CPAN::Meta::Requirements - [Added / test requires] - ExtUtils::MakeMaker - File::Spec::Functions @@ -51,4 +64,3 @@ 0.002000 2013-12-25T13:48:24Z [Added / runtime requires] - Sub::Exporter::Progressive - diff --git a/misc/Changes.deps.all b/misc/Changes.deps.all new file mode 100644 index 0000000..e4fc92e --- /dev/null +++ b/misc/Changes.deps.all @@ -0,0 +1,171 @@ +This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) + +0.004011 + [Added / configure requires] + - perl 5.006 + + [Added / develop recommends] + - Test::More 0.99 + + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.004002 + - Dist::Zilla::Plugin::Author::KENTNL::TravisCI 0.001002 + - Dist::Zilla::Plugin::BumpVersionAfterRelease + - Dist::Zilla::Plugin::CopyFilesFromBuild + - Dist::Zilla::Plugin::Git::Contributors 0.006 + - Dist::Zilla::Plugin::MetaYAML::Minimal + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Upgrade + - Dist::Zilla::Plugin::Readme::Brief + - Dist::Zilla::Plugin::RemovePrereqs::Provided + - Dist::Zilla::Plugin::RewriteVersion::Sanitized + - Dist::Zilla::Plugin::Test::EOL + - English + - Software::License::Perl_5 + - Test::EOL + - Test::MinimumVersion + - Test::More 0.96 + + [Added / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.002006 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.025021 + + [Added / runtime recommends] + - Moo 1.000008 + - Path::Tiny 0.058 + + [Added / test requires] + - File::Spec + - perl 5.006 + + [Changed / configure recommends] + - ExtUtils::MakeMaker 6.86 → 7.00 + + [Changed / configure requires] + - ExtUtils::MakeMaker 6.30 → 0 + + [Changed / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease 0 → 0.004000 + - Dist::Zilla::Plugin::MetaData::BuiltWith 0 → 1.004000 + - Dist::Zilla::Plugin::Test::Compile::PerFile 0 → 0.003902 + - Test::Kwalitee 1.12 → 1.21 + + [Changed / runtime requires] + - perl 5.008 → 5.006 + + [Changed / test recommends] + - CPAN::Meta 0 → 2.120900 + - ExtUtils::MakeMaker 6.86 → 7.00 + - Test::More 1.001002 → 0.99 + + [Changed / test requires] + - Test::More 0.89 → 0 + + [Removed / develop requires] + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::Git::NextVersion::Sanitized + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::PkgVersion + - Dist::Zilla::Plugin::ReadmeFromPod + - Dist::Zilla::PluginBundle::Author::KENTNL 2.012000 + + [Removed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 + + [Removed / runtime requires] + - utf8 + + [Removed / test recommends] + - CPAN::Meta::Requirements 2.120900 + + [Removed / test requires] + - File::Spec::Functions + - List::Util + - version + +0.004010 2014-01-31T02:56:20Z + [Added / configure recommends] + - ExtUtils::MakeMaker 6.86 + + [Added / configure requires] + - ExtUtils::MakeMaker 6.30 + + [Added / develop requires] + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + + [Added / test recommends] + - ExtUtils::MakeMaker 6.86 + - Test::More 1.001002 + + [Added / test requires] + - version + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.010000 → 2.012000 + + [Changed / test recommends] + - CPAN::Meta::Requirements 0 → 2.120900 + + [Changed / test requires] + - Test::More 1.001002 → 0.89 + + [Removed / build requires] + - Module::Build 0.4204 + + [Removed / configure requires] + - Module::Build 0.4204 + + [Removed / develop requires] + - Dist::Zilla::Plugin::ModuleBuild + - Dist::Zilla::Plugin::Prereqs::MatchInstalled + +0.004000 2014-01-15T19:32:07Z + [Added / develop requires] + - Dist::Zilla::Plugin::Test::ReportPrereqs + + [Added / test recommends] + - CPAN::Meta + - CPAN::Meta::Requirements + + [Added / test requires] + - ExtUtils::MakeMaker + - File::Spec::Functions + - List::Util + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.009000 → 2.010000 + + [Removed / develop requires] + - Dist::Zilla::Plugin::ReportVersions::Tiny + - version 0.9901 + +0.003101 2014-01-14T07:00:13Z + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.008000 → 2.009000 + +0.003100 2014-01-12T19:51:57Z + +0.003000 2014-01-12T18:38:52Z + [Added / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease + + [Added / test requires] + - Test::Requires + + [Changed / build requires] + - Module::Build 0.4203 → 0.4204 + + [Changed / configure requires] + - Module::Build 0.4203 → 0.4204 + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.007000 → 2.008000 + + [Removed / develop requires] + - Dist::Zilla::Plugin::NextRelease + +0.002000 2013-12-25T13:48:24Z + [Added / runtime requires] + - Sub::Exporter::Progressive diff --git a/misc/Changes.deps.dev b/misc/Changes.deps.dev new file mode 100644 index 0000000..c5a0133 --- /dev/null +++ b/misc/Changes.deps.dev @@ -0,0 +1,87 @@ +This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) + +0.004011 + [Added / develop recommends] + - Test::More 0.99 + + [Added / develop requires] + - Dist::Zilla 5 + - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.004002 + - Dist::Zilla::Plugin::Author::KENTNL::TravisCI 0.001002 + - Dist::Zilla::Plugin::BumpVersionAfterRelease + - Dist::Zilla::Plugin::CopyFilesFromBuild + - Dist::Zilla::Plugin::Git::Contributors 0.006 + - Dist::Zilla::Plugin::MetaYAML::Minimal + - Dist::Zilla::Plugin::Prereqs::AuthorDeps + - Dist::Zilla::Plugin::Prereqs::Upgrade + - Dist::Zilla::Plugin::Readme::Brief + - Dist::Zilla::Plugin::RemovePrereqs::Provided + - Dist::Zilla::Plugin::RewriteVersion::Sanitized + - Dist::Zilla::Plugin::Test::EOL + - English + - Software::License::Perl_5 + - Test::EOL + - Test::MinimumVersion + - Test::More 0.96 + + [Added / develop suggests] + - Dist::Zilla::App::Command::bakeini 0.002006 + - Dist::Zilla::PluginBundle::Author::KENTNL 2.025021 + + [Changed / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease 0 → 0.004000 + - Dist::Zilla::Plugin::MetaData::BuiltWith 0 → 1.004000 + - Dist::Zilla::Plugin::Test::Compile::PerFile 0 → 0.003902 + - Test::Kwalitee 1.12 → 1.21 + + [Removed / develop requires] + - Dist::Zilla::Plugin::EOLTests + - Dist::Zilla::Plugin::Git::NextVersion::Sanitized + - Dist::Zilla::Plugin::MetaYAML + - Dist::Zilla::Plugin::PkgVersion + - Dist::Zilla::Plugin::ReadmeFromPod + - Dist::Zilla::PluginBundle::Author::KENTNL 2.012000 + + [Removed / develop suggests] + - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 + +0.004010 2014-01-31T02:56:20Z + [Added / develop requires] + - Dist::Zilla::Plugin::MakeMaker + - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.010000 → 2.012000 + + [Removed / develop requires] + - Dist::Zilla::Plugin::ModuleBuild + - Dist::Zilla::Plugin::Prereqs::MatchInstalled + +0.004000 2014-01-15T19:32:07Z + [Added / develop requires] + - Dist::Zilla::Plugin::Test::ReportPrereqs + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.009000 → 2.010000 + + [Removed / develop requires] + - Dist::Zilla::Plugin::ReportVersions::Tiny + - version 0.9901 + +0.003101 2014-01-14T07:00:13Z + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.008000 → 2.009000 + +0.003100 2014-01-12T19:51:57Z + +0.003000 2014-01-12T18:38:52Z + [Added / develop requires] + - Dist::Zilla::Plugin::Git::NextRelease + + [Changed / develop requires] + - Dist::Zilla::PluginBundle::Author::KENTNL 2.007000 → 2.008000 + + [Removed / develop requires] + - Dist::Zilla::Plugin::NextRelease + +0.002000 2013-12-25T13:48:24Z diff --git a/misc/Changes.deps.opt b/misc/Changes.deps.opt new file mode 100644 index 0000000..f462a6b --- /dev/null +++ b/misc/Changes.deps.opt @@ -0,0 +1,41 @@ +This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) + +0.004011 + [Added / runtime recommends] + - Moo 1.000008 + - Path::Tiny 0.058 + + [Changed / configure recommends] + - ExtUtils::MakeMaker 6.86 → 7.00 + + [Changed / test recommends] + - CPAN::Meta 0 → 2.120900 + - ExtUtils::MakeMaker 6.86 → 7.00 + - Test::More 1.001002 → 0.99 + + [Removed / test recommends] + - CPAN::Meta::Requirements 2.120900 + +0.004010 2014-01-31T02:56:20Z + [Added / configure recommends] + - ExtUtils::MakeMaker 6.86 + + [Added / test recommends] + - ExtUtils::MakeMaker 6.86 + - Test::More 1.001002 + + [Changed / test recommends] + - CPAN::Meta::Requirements 0 → 2.120900 + +0.004000 2014-01-15T19:32:07Z + [Added / test recommends] + - CPAN::Meta + - CPAN::Meta::Requirements + +0.003101 2014-01-14T07:00:13Z + +0.003100 2014-01-12T19:51:57Z + +0.003000 2014-01-12T18:38:52Z + +0.002000 2013-12-25T13:48:24Z diff --git a/misc/built_with.json b/misc/built_with.json new file mode 100644 index 0000000..90cbea7 --- /dev/null +++ b/misc/built_with.json @@ -0,0 +1,97 @@ +{ + "modules" : { + "CPAN::Meta" : "2.150010", + "Carp" : "1.42", + "Dist::Zilla" : "6.009", + "Dist::Zilla::App::Command::bakeini" : "0.002006", + "Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes" : "0.005004", + "Dist::Zilla::Plugin::Author::KENTNL::TravisCI" : "0.001004", + "Dist::Zilla::Plugin::Authority" : "1.009", + "Dist::Zilla::Plugin::AutoPrereqs" : "6.009", + "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0.015", + "Dist::Zilla::Plugin::ConfirmRelease" : "6.009", + "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0.163040", + "Dist::Zilla::Plugin::Git::Check" : "2.041", + "Dist::Zilla::Plugin::Git::Commit" : "2.041", + "Dist::Zilla::Plugin::Git::CommitBuild" : "2.041", + "Dist::Zilla::Plugin::Git::Contributors" : "0.029", + "Dist::Zilla::Plugin::Git::GatherDir" : "2.041", + "Dist::Zilla::Plugin::Git::NextRelease" : "0.004000", + "Dist::Zilla::Plugin::Git::Tag" : "2.041", + "Dist::Zilla::Plugin::GithubMeta" : "0.54", + "Dist::Zilla::Plugin::License" : "6.009", + "Dist::Zilla::Plugin::MakeMaker" : "6.009", + "Dist::Zilla::Plugin::Manifest" : "6.009", + "Dist::Zilla::Plugin::ManifestSkip" : "6.009", + "Dist::Zilla::Plugin::MetaConfig" : "6.009", + "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.004005", + "Dist::Zilla::Plugin::MetaJSON" : "6.009", + "Dist::Zilla::Plugin::MetaProvides::Package" : "2.004003", + "Dist::Zilla::Plugin::MetaTests" : "6.009", + "Dist::Zilla::Plugin::MetaYAML::Minimal" : "0.001001", + "Dist::Zilla::Plugin::MinimumPerl" : "1.006", + "Dist::Zilla::Plugin::PodCoverageTests" : "6.009", + "Dist::Zilla::Plugin::PodSyntaxTests" : "6.009", + "Dist::Zilla::Plugin::PodWeaver" : "4.008", + "Dist::Zilla::Plugin::Prereqs" : "6.009", + "Dist::Zilla::Plugin::Prereqs::AuthorDeps" : "0.006", + "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.003002", + "Dist::Zilla::Plugin::Prereqs::Upgrade" : "0.001001", + "Dist::Zilla::Plugin::Readme::Brief" : "0.003001", + "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.163250", + "Dist::Zilla::Plugin::RemovePrereqs::Provided" : "0.001001", + "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001006", + "Dist::Zilla::Plugin::RunExtraTests" : "0.029", + "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.012", + "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.004000", + "Dist::Zilla::Plugin::Test::EOL" : "0.19", + "Dist::Zilla::Plugin::Test::Kwalitee" : "2.12", + "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000007", + "Dist::Zilla::Plugin::Test::Perl::Critic" : "3.000", + "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.025", + "Dist::Zilla::Plugin::TestRelease" : "6.009", + "Dist::Zilla::Plugin::Twitter" : "0.026", + "Dist::Zilla::Plugin::UploadToCPAN" : "6.009", + "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.025021", + "English" : "1.10", + "ExtUtils::MakeMaker" : "7.24", + "File::Spec" : "3.66", + "Git::Wrapper" : "0.047", + "Moo" : "2.003000", + "Path::Tiny" : "0.104", + "Pod::Coverage::TrustPod" : "0.100003", + "Scalar::Util" : "1.46_02", + "Software::License::Perl_5" : "0.103012", + "Sort::Versions" : "1.62", + "Sub::Exporter::Progressive" : "0.001013", + "Test::CPAN::Changes" : "0.400002", + "Test::CPAN::Meta" : "0.25", + "Test::EOL" : "1.6", + "Test::Fatal" : "0.014", + "Test::Kwalitee" : "1.25", + "Test::MinimumVersion" : "0.101082", + "Test::More" : "1.302073", + "Test::Pod" : "1.51", + "Test::Pod::Coverage" : "1.10", + "Test::Requires" : "0.10", + "Try::Tiny" : "0.28", + "strict" : "1.11", + "warnings" : "1.37" + }, + "perl" : { + "original" : "v5.25.10", + "qv" : 1, + "version" : [ + 5, + 25, + 10 + ] + }, + "perl-config" : { + "gccversion" : "5.4.0", + "myarchname" : "x86_64-linux", + "osname" : "linux" + }, + "platform" : "linux", + "uname" : "Linux 4.8.5-gentoo x86_64 GenuineIntel GNU/Linux" +} diff --git a/misc/perlcritic.deps b/misc/perlcritic.deps new file mode 100644 index 0000000..7152ec0 --- /dev/null +++ b/misc/perlcritic.deps @@ -0,0 +1,15 @@ +Perl::Critic::Policy::Documentation::PodSpelling~0 +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 84048ae..7a71c28 100644 --- a/perlcritic.rc +++ b/perlcritic.rc @@ -1,2209 +1,462 @@ -# Globals -severity = 1 -# force = 0 -only = 1 -# allow-unsafe = 0 -profile-strictness = quiet color = 1 -# pager = -# top = 0 -verbose = 9 -# include = -# exclude = -# single-policy = -# theme = -# color-severity-highest = bold red -# color-severity-high = magenta -color-severity-medium = yellow color-severity-low = green -# color-severity-lowest = -# program-extensions = +color-severity-medium = yellow +only = 1 +severity = 1 +verbose = 9 -# Bitwise operators are usually accidentally used instead of logical boolean operators. [Bangs::ProhibitBitwiseOperators] -# set_themes = bugs core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Commented-out code is usually noise. It should be removed. [Bangs::ProhibitCommentedOutCode] -# set_themes = bangs maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# Regular expression to use to look for code in comments. -# commentedcoderegex = \$[A-Za-z_].*= - - -# Prohibit loading of debugging modules like Data::Dumper [Bangs::ProhibitDebuggingModules] -# set_themes = bangs maintenance -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Module names which are considered to be banned debugging modules. -# Values that are always included: DDP, DDS, Data::Dump, Data::Dump::Filtered, Data::Dump::Streamer, Data::Dump::Trace, Data::Dumper, Data::Dumper::Concise, Data::Dumper::Concise::Sugar, Data::Dumper::EasyOO, Data::Dumper::Names, Data::Dumper::Simple, Data::PrettyPrintObjects, Data::Printer, Data::Skeleton, Data::TreeDumper, Devel::Dwarn. -# debugging_modules = - -# Don't use XXX, TODO, or FIXME. [-Bangs::ProhibitFlagComments] -# set_themes = bangs maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Words to prohibit in comments. -# keywords = XXX FIXME TODO - -# Know what you're going to test. [Bangs::ProhibitNoPlan] -# set_themes = bangs tests -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Prohibit variables differentiated by trailing numbers. [Bangs::ProhibitNumberedNames] -# set_themes = bangs maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Things to allow in variable names. -# exceptions = md5 x11 utf8 - -# Additional things to allow in variable names. -# add_exceptions = - -# Create a `clone()' method if you need copies of objects. [Bangs::ProhibitRefProtoOrProto] -# set_themes = bangs complexity -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Adding modifiers to a regular expression made up entirely of a variable created with qr() is usually not doing what you expect. [Bangs::ProhibitUselessRegexModifiers] -# set_themes = bangs bugs -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Don't use generic variable names. [Bangs::ProhibitVagueNames] -# set_themes = bangs readability -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Words to prohibit as variable names. -# names = data info var obj object tmp temp - -# Additional words to prohibit as variable names. -# add_names = - -# Use `List::MoreUtils::any' instead of `grep' in boolean context. [BuiltinFunctions::ProhibitBooleanGrep] -# set_themes = certrec core pbp performance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Map blocks should have a single statement. [BuiltinFunctions::ProhibitComplexMappings] -# set_themes = complexity core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum number of statements to allow within a map block. -# Minimum value 1. No maximum. -# max_statements = 1 - -# Use 4-argument `substr' instead of writing `substr($foo, 2, 6) = $bar'. [BuiltinFunctions::ProhibitLvalueSubstr] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Forbid $b before $a in sort blocks. [BuiltinFunctions::ProhibitReverseSortBlock] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Use Time::HiRes instead of something like `select(undef, undef, undef, .05)'. [BuiltinFunctions::ProhibitSleepViaSelect] -# set_themes = bugs core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Write `eval { my $foo; bar($foo) }' instead of `eval "my $foo; bar($foo);"'. [BuiltinFunctions::ProhibitStringyEval] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Allow eval of "use" and "require" strings. allow_includes = 1 - -# Write `split /-/, $string' instead of `split '-', $string'. [BuiltinFunctions::ProhibitStringySplit] -# set_themes = certrule core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `eval { $foo->can($name) }' instead of `UNIVERSAL::can($foo, $name)'. [BuiltinFunctions::ProhibitUniversalCan] -# set_themes = certrule core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `eval { $foo->isa($pkg) }' instead of `UNIVERSAL::isa($foo, $pkg)'. [BuiltinFunctions::ProhibitUniversalIsa] -# set_themes = certrule core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit +[BuiltinFunctions::ProhibitUselessTopic] -# Don't use `grep' in void contexts. [BuiltinFunctions::ProhibitVoidGrep] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Don't use `map' in void contexts. [BuiltinFunctions::ProhibitVoidMap] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `grep { $_ =~ /$pattern/ } @list' instead of `grep /$pattern/, @list'. [BuiltinFunctions::RequireBlockGrep] -# set_themes = bugs core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Write `map { $_ =~ /$pattern/ } @list' instead of `map /$pattern/, @list'. [BuiltinFunctions::RequireBlockMap] -# set_themes = bugs core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Use `glob q{*}' instead of <*>. [BuiltinFunctions::RequireGlobFunction] -# set_themes = bugs core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Sort blocks should have a single statement. [BuiltinFunctions::RequireSimpleSortBlock] -# set_themes = complexity core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# AUTOLOAD methods should be avoided. [ClassHierarchies::ProhibitAutoloading] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Employ `use base' instead of `@ISA'. [ClassHierarchies::ProhibitExplicitISA] -# set_themes = certrec core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `bless {}, $class;' instead of just `bless {};'. [ClassHierarchies::ProhibitOneArgBless] -# set_themes = bugs core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# keep a fat comma on the same line as its quoted word [CodeLayout::ProhibitFatCommaNewline] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Use spaces instead of tabs. [CodeLayout::ProhibitHardTabs] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Allow hard tabs before first non-whitespace character. -# allow_leading_tabs = 1 - -# [-CodeLayout::ProhibitHashBarewords] -# set_themes = itch -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# don't put if after if on same line [CodeLayout::ProhibitIfIfSameLine] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `open $handle, $path' instead of `open($handle, $path)'. [CodeLayout::ProhibitParensWithBuiltins] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Write `qw(foo bar baz)' instead of `('foo', 'bar', 'baz')'. [CodeLayout::ProhibitQuotedWordLists] -# set_themes = core cosmetic -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The minimum number of words in a list that will be complained about. -# Minimum value 1. No maximum. -# min_elements = 2 - -# Complain even if there are non-word characters in the values. -# strict = 0 - -# Don't use whitespace at the end of lines. [CodeLayout::ProhibitTrailingWhitespace] -# set_themes = core maintenance -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Disallow high-bit characters. [-CodeLayout::RequireASCII] -# set_themes = more notrecommended -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Use the same newline through the source. [CodeLayout::RequireConsistentNewlines] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# require a semicolon at the end of code blocks [CodeLayout::RequireFinalSemicolon] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Whether to allow no semicolon at the end of blocks with the } closing brace on the same line as the last statement. -# except_same_line = 1 -# Whether to allow no semicolon at the end of do{} expression blocks. -# except_expression_blocks = 1 - - -# Must run code through perltidy. [-CodeLayout::RequireTidyCode] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# The Perl::Tidy configuration file to use, if any. -# perltidyrc = - -# comma at end of list at newline [CodeLayout::RequireTrailingCommaAtNewline] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Don't demand a trailing comma in function call argument lists. -# except_function_calls = 0 - -# Put a comma at the end of every multi-line list declaration, including the last one. [CodeLayout::RequireTrailingCommas] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit +[-CodeLayout::RequireUseUTF8] -# Require that all modules have a `use utf8;' statement. -[CodeLayout::RequireUseUTF8] -# set_themes = swift unicode -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - - -# new enough "constant" module for leading underscores [Compatibility::ConstantLeadingUnderscore] -# set_themes = compatibility pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# new enough "constant" module for multiple constants [Compatibility::ConstantPragmaHash] -# set_themes = compatibility pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# new enough Gtk2 version for its constants [Compatibility::Gtk2Constants] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# explicit Perl version for features used [Compatibility::PerlMinimumVersionAndWhy] -# set_themes = compatibility pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# Check only things above this version of Perl. -# above_version = - -# Version checks to skip (space separated list). -# skip_checks = - - -# check Perl version declared against POD features used [-Compatibility::PodMinimumVersion] -# set_themes = compatibility pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# Check only things above this version of Perl. -# above_version = - - -# Don't allow three-argument open unless the code uses a version of perl that supports it. [Compatibility::ProhibitThreeArgumentOpen] -# set_themes = compatibility -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# don't use explicit /dev/null [Compatibility::ProhibitUnixDevNull] -# set_themes = bugs pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `for(0..20)' instead of `for($i=0; $i<=20; $i++)'. [ControlStructures::ProhibitCStyleForLoops] -# set_themes = core maintenance pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Don't write long "if-elsif-elsif-elsif-elsif...else" chains. [ControlStructures::ProhibitCascadingIfElse] -# set_themes = complexity core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum number of alternatives that will be allowed. -# Minimum value 1. No maximum. -# max_elsif = 2 - -# Don't write deeply nested loops and conditionals. [ControlStructures::ProhibitDeepNests] -# set_themes = complexity core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum number of nested constructs to allow. -# Minimum value 1. No maximum. -# max_nests = 5 - -# Don't use labels that are the same as the special block names. [ControlStructures::ProhibitLabelsWithSpecialBlockNames] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Don't modify `$_' in list functions. [ControlStructures::ProhibitMutatingListFunctions] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# The base set of functions to check. -# list_funcs = map grep List::Util::first List::MoreUtils::any List::MoreUtils::all List::MoreUtils::none List::MoreUtils::notall List::MoreUtils::true List::MoreUtils::false List::MoreUtils::firstidx List::MoreUtils::first_index List::MoreUtils::lastidx List::MoreUtils::last_index List::MoreUtils::insert_after List::MoreUtils::insert_after_string -# The set of functions to check, in addition to those given in list_funcs. -# add_list_funcs = - - -# Don't use operators like `not', `!~', and `le' within `until' and `unless'. [ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `if($condition){ do_something() }' instead of `do_something() if $condition'. [-ControlStructures::ProhibitPostfixControls] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# The permitted postfix controls. -# Valid values: for, foreach, if, unless, until, when, while. -# allow = - -# The exempt flow control functions. -# flowcontrol = carp cluck confess croak die exit goto warn - - -# Write `if(! $condition)' instead of `unless($condition)'. [ControlStructures::ProhibitUnlessBlocks] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Don't write code after an unconditional `die, exit, or next'. [ControlStructures::ProhibitUnreachableCode] -# set_themes = bugs certrec core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Write `while(! $condition)' instead of `until($condition)'. [ControlStructures::ProhibitUntilBlocks] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Check your spelling. [Documentation::PodSpelling] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# The command to invoke to check spelling. -spell_command = aspell list --lang=en_US - -# The words to not consider as misspelled. -stop_words = metadata KiokuDB KENTNL KENTNL's CPAN blogged CPANized PluginBundles CPANID's CPANID dists DPCHRIST everyones irc cpan Doherty Gorwit namespace Gorwits blog PluginBundle Lesperance Ghedini Stauner Ilmari Vacklin Yanick Champoux Znamensky MinimumPerl Plugin minperl Alessandro ini +spell_command = aspell list --lang en_US +stop_words = rc -# A file containing words to not consider as misspelled. -# stop_words_file = - - -# consecutive L<> links [Documentation::ProhibitAdjacentLinks] -# set_themes = cosmetic pulp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# don't use C<> markup in a NAME section [Documentation::ProhibitBadAproposMarkup] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# don't duplicate =head names [Documentation::ProhibitDuplicateHeadings] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The scope for headings names, meaning to what extent they must not be duplicates. Choices nested, all. -# uniqueness = default - -# don't duplicate L<> links in SEE ALSO [Documentation::ProhibitDuplicateSeeAlso] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# don't L<> link to own POD [Documentation::ProhibitLinkToSelf] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# avoid comma at end of section [Documentation::ProhibitParagraphEndComma] -# set_themes = cosmetic pulp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# don't end a paragraph with two dots [Documentation::ProhibitParagraphTwoDots] -# set_themes = cosmetic pulp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# don't leave an open bracket or paren [Documentation::ProhibitUnbalancedParens] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# unexpanded C<> etc markup in POD verbatim paras [Documentation::ProhibitVerbatimMarkup] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# require __END__ before POD at end of file [Documentation::RequireEndBeforeLastPod] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = 1 +[Documentation::RequireFilenameMarkup] -# end POD with =cut directive [Documentation::RequireFinalCut] -# set_themes = cosmetic pulp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# use L<> markup on URLs in POD [Documentation::RequireLinkedURLs] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Require that all modules that contain POD have a `=encoding utf8' declaration. [-Documentation::RequirePODUseEncodingUTF8] -# set_themes = swift unicode -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The `=head1 NAME' section should match the package. [Documentation::RequirePackageMatchesPodName] -# set_themes = core cosmetic -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# All POD should be after `__END__'. [Documentation::RequirePodAtEnd] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - - -# Provide text to display with your pod links. -[Documentation::RequirePodLinksIncludeText] -# set_themes = core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Allow external sections without text. -# allow_external_sections = 1 -# Allow internal sections without text. -# allow_internal_sections = 1 +[-Documentation::RequirePodLinksIncludeText] - -# Organize your POD into the customary sections. [-Documentation::RequirePodSections] -# set_themes = core maintenance pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The sections to require for modules (separated by qr/\s* [|] \s*/xms). -# lib_sections = - -# The sections to require for programs (separated by qr/\s* [|] \s*/xms). -# script_sections = - -# The origin of sections to use. -# Valid values: book, book_first_edition, module_starter_pbp, module_starter_pbp_0_0_3. -# source = book_first_edition - -# The spelling of sections to use. -# Valid values: en_AU, en_US. -# language = - -# Per-file editor settings. [-Editor::RequireEmacsFileVariables] -# set_themes = editor more readability -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Use functions from Carp instead of `warn' or `die'. [-ErrorHandling::RequireCarping] -# set_themes = certrule core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Don't complain about die or warn if the message ends in a newline. -# allow_messages_ending_with_newlines = 1 - -# Don't complain about die or warn in main::, unless in a subroutine. -# allow_in_main_unless_in_subroutine = 0 - -# You can't depend upon the value of `$@'/`$EVAL_ERROR' to tell whether an `eval' failed. [ErrorHandling::RequireCheckingReturnValueOfEval] -# set_themes = bugs core -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Use exceptions instead of `die', `croak', or `confess'. [ErrorHandling::RequireUseOfExceptions] -# set_themes = maintenance more -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Discourage stuff like `@files = `ls $directory`'. [InputOutput::ProhibitBacktickOperators] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Allow backticks everywhere except in void contexts. -# only_in_void_context = - -# Write `open my $fh, q{<}, $filename;' instead of `open FH, q{<}, $filename;'. [InputOutput::ProhibitBarewordFileHandles] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Use "<>" or "" or a prompting module instead of "". [InputOutput::ProhibitExplicitStdin] -# set_themes = core maintenance pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Use prompt() instead of -t. [InputOutput::ProhibitInteractiveTest] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Use `local $/ = undef' or File::Slurp instead of joined readline. [InputOutput::ProhibitJoinedReadline] -# set_themes = core pbp performance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Never write `select($fh)'. [InputOutput::ProhibitOneArgSelect] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Write `while( $line = <> ){...}' instead of `for(<>){...}'. [InputOutput::ProhibitReadlineInForLoop] -# set_themes = bugs core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Write `open $fh, q{<}, $filename;' instead of `open $fh, "<$filename";'. [InputOutput::ProhibitTwoArgOpen] -# set_themes = bugs certrule core pbp security -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Write `print {$FH} $foo, $bar;' instead of `print $FH $foo, $bar;'. [InputOutput::RequireBracedFileHandleWithPrint] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Close filehandles as soon as possible after opening them. [InputOutput::RequireBriefOpen] -# set_themes = core maintenance pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit -# The maximum number of lines between an open() and a close(). -# Minimum value 1. No maximum. -# lines = 9 - - -# Write `my $error = close $fh;' instead of `close $fh;'. [InputOutput::RequireCheckedClose] -# set_themes = certrule core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `my $error = open $fh, $mode, $filename;' instead of `open $fh, $mode, $filename;'. [InputOutput::RequireCheckedOpen] -# set_themes = certrule core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Return value of flagged function ignored. [InputOutput::RequireCheckedSyscalls] -# set_themes = certrule core maintenance -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# The set of functions to require checking the return value of. -# functions = open close print say - -# The set of functions to not require checking the return value of. -# exclude_functions = - -# Write `open $fh, q{<:encoding(UTF-8)}, $filename;' instead of `open $fh, q{{<:utf8}, $filename;'. [InputOutput::RequireEncodingWithUTF8Layer] -# set_themes = bugs core security -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# prohibit multiline maps, not multistatement maps [Lax::ProhibitComplexMappings::LinesNotStatements] -# set_themes = complexity lax -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# empty quotes are okay as the fallback on the rhs of || [Lax::ProhibitEmptyQuotes::ExceptAsFallback] -# set_themes = lax -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# leading zeroes are okay as the first arg to chmod [Lax::ProhibitLeadingZeros::ExceptChmod] -# set_themes = bugs lax -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# stringy eval is bad, but it's okay just to "require" [Lax::ProhibitStringyEval::ExceptForRequire] -# set_themes = danger -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# ending your package with a simple, fun true value is okay [Lax::RequireEndWithTrueConst] -# set_themes = lax -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# you can put strict and warnings before "package" [Lax::RequireExplicitPackage::ExceptForPragmata] -# set_themes = risky -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Names of pragmata that are permitted before package declaration. allowed_pragmata = diagnostics feature perlversion strict warnings utf8 -# Don't require programs to have a package statement. -# exempt_scripts = 1 - - -# Do not use `format'. [Miscellanea::ProhibitFormats] -# set_themes = certrule core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Do not use `tie'. [Miscellanea::ProhibitTies] -# set_themes = core maintenance pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Forbid a bare `## no critic' [Miscellanea::ProhibitUnrestrictedNoCritic] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Remove ineffective "## no critic" annotations. [-Miscellanea::ProhibitUselessNoCritic] -# set_themes = core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Put source-control keywords in every file. [-Miscellanea::RequireRcsKeywords] -# set_themes = cosmetic deprecated pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The keywords to require in all files. -# keywords = - -# check placeholder names in Locale::TextDomain calls [Miscellanea::TextDomainPlaceholders] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# check for Locale::TextDomain imported but unused [Miscellanea::TextDomainUnused] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Enforce backward compatible code. [Modules::PerlMinimumVersion] -# set_themes = compatibility more -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Version of perl to be compatible with. -# version = - -# Export symbols via `@EXPORT_OK' or `%EXPORT_TAGS' instead of `@EXPORT'. [Modules::ProhibitAutomaticExportation] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Avoid putting conditional logic around compile-time includes. [Modules::ProhibitConditionalUseStatements] -# set_themes = bugs core -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Ban modules that aren't blessed by your shop. [Modules::ProhibitEvilModules] -# set_themes = bugs certrule core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit -# The names of or patterns for modules to forbid. -# modules = Class::ISA {Found use of Class::ISA. This module is deprecated by the Perl 5 Porters.} Pod::Plainer {Found use of Pod::Plainer. This module is deprecated by the Perl 5 Porters.} Shell {Found use of Shell. This module is deprecated by the Perl 5 Porters.} Switch {Found use of Switch. This module is deprecated by the Perl 5 Porters.} - -# A file containing names of or patterns for modules to forbid. -# modules_file = - - -# Minimize complexity in code that is outside of subroutines. [Modules::ProhibitExcessMainComplexity] -# set_themes = complexity core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum complexity score allowed. -# Minimum value 1. No maximum. -# max_mccabe = 20 - -# don't put a #! line at the start of a module file [Modules::ProhibitModuleShebang] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = 1 -# Whether to allow #!/bin/false. -# allow_bin_false = 1 - - -# Put packages (especially subclasses) in separate files. [Modules::ProhibitMultiplePackages] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# don't import the whole of POSIX into a module [Modules::ProhibitPOSIXimport] -# set_themes = efficiency pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# avoid quoted version number string in a "use" statement [Modules::ProhibitUseQuotedVersion] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `require Module' instead of `require 'Module.pm''. [Modules::RequireBarewordIncludes] -# set_themes = core portability -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# End each module with an explicitly `1;' instead of some funky expression. [Modules::RequireEndWithOne] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# [-Modules::RequireExplicitInclusion] -# set_themes = bugs strictersubs -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Always make the `package' explicit. [-Modules::RequireExplicitPackage] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = 1 - -# Don't require programs to contain a package statement. -# exempt_scripts = 1 - -# Allow the specified modules to be imported outside a package. -allow_import_of = strict warnings 5.008 utf8 - -# Package declaration must match filename. [Modules::RequireFilenameMatchesPackage] -# set_themes = bugs core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# `use English' must be passed a `-no_match_vars' argument. [Modules::RequireNoMatchVarsWithUseEnglish] -# set_themes = core performance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Require a `use 5.006;' or similar. [Modules::RequirePerlVersion] -# set_themes = compatibility more -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Give every module a `$VERSION' number. [Modules::RequireVersionVar] -# set_themes = core pbp readability -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit +[-Moose::ProhibitMultipleWiths] -# Require role composition -[Moose::ProhibitMultipleWiths] -# set_themes = bugs moose roles -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - - -# Don't override Moose's standard constructors. [Moose::ProhibitNewMethod] -# set_themes = bugs moose -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Require removing implementation details from you packages. [Moose::RequireCleanNamespace] -# set_themes = maintenance moose -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# The modules that need to be unimported. -# modules = Moose Moose::Role Moose::Util::TypeConstraints - - -# Make your Moose code fast. [Moose::RequireMakeImmutable] -# set_themes = moose performance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Distinguish different program components by case. [-NamingConventions::Capitalization] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# How package name components should be capitalized. Valid values are :single_case, :all_lower, :all_upper:, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# packages = :starts_with_upper - -# Package names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# package_exemptions = main - -# How subroutine names should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# subroutines = :single_case - -# Subroutine names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# subroutine_exemptions = AUTOLOAD BUILD BUILDARGS CLEAR CLOSE DELETE DEMOLISH DESTROY EXISTS EXTEND FETCH FETCHSIZE FIRSTKEY GETC NEXTKEY POP PRINT PRINTF PUSH READ READLINE SCALAR SHIFT SPLICE STORE STORESIZE TIEARRAY TIEHANDLE TIEHASH TIESCALAR UNSHIFT UNTIE WRITE - -# How local lexical variables names should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# local_lexical_variables = :single_case - -# Local lexical variable names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# local_lexical_variable_exemptions = - -# How lexical variables that are scoped to a subset of subroutines, should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# scoped_lexical_variables = :single_case - -# Names for variables in anonymous blocks that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# scoped_lexical_variable_exemptions = - -# How lexical variables at the file level should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# file_lexical_variables = :single_case - -# File-scope lexical variable names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# file_lexical_variable_exemptions = - -# How global (package) variables should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# global_variables = :single_case - -# Global variable names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# global_variable_exemptions = \$VERSION @ISA @EXPORT(?:_OK)? %EXPORT_TAGS \$AUTOLOAD %ENV %SIG \$TODO - -# How constant names should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# constants = :all_upper -# Constant names that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# constant_exemptions = - -# How labels should be capitalized. Valid values are :single_case, :all_lower, :all_upper, :starts_with_lower, :starts_with_upper, :no_restriction, or a regex. -# labels = :all_upper - -# Labels that are exempt from capitalization rules. The values here are regexes that will be surrounded by \A and \z. -# label_exemptions = - - -# Don't use vague variable or subroutine names like 'last' or 'record'. [NamingConventions::ProhibitAmbiguousNames] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The variable names that are not to be allowed. -# forbid = abstract bases close contract last left no record right second set - -# Write `sub my_function{}' instead of `sub MyFunction{}'. [NamingConventions::ProhibitMixedCaseSubs] -# set_themes = cosmetic deprecated pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Write `$my_variable = 42' instead of `$MyVariable = 42'. [NamingConventions::ProhibitMixedCaseVars] -# set_themes = cosmetic deprecated pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Prohibit indirect object call syntax. [Objects::ProhibitIndirectSyntax] -# set_themes = certrule core maintenance pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Indirect method syntax is forbidden for these methods. -# Values that are always included: new. -# forbid = - -# Write `@{ $array_ref }' instead of `@$array_ref'. [References::ProhibitDoubleSigils] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Capture variable used outside conditional. [RegularExpressions::ProhibitCaptureWithoutTest] -# set_themes = certrule core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Names of ways to generate exceptions. -# Values that are always included: confess, croak, die. -# exception_source = - - -# Split long regexps into smaller `qr//' chunks. [RegularExpressions::ProhibitComplexRegexes] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum number of characters to allow in a regular expression. -# Minimum value 1. No maximum. -# max_characters = 60 - -# Use named character classes instead of explicit character lists. [RegularExpressions::ProhibitEnumeratedClasses] -# set_themes = core cosmetic pbp unicode -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Use character classes for literal meta-characters instead of escapes. [RegularExpressions::ProhibitEscapedMetacharacters] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Use `eq' or hash instead of fixed-pattern regexps. [RegularExpressions::ProhibitFixedStringMatches] -# set_themes = core pbp performance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Use `[abc]' instead of `a|b|c'. [RegularExpressions::ProhibitSingleCharAlternation] -# set_themes = core pbp performance -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Only use a capturing group if you plan to use the captured value. [RegularExpressions::ProhibitUnusedCapture] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Use only `//' or `{}' to delimit regexps. [RegularExpressions::ProhibitUnusualDelimiters] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit -# In addition to allowing '{}', allow '()', '[]', and '{}'. -# allow_all_brackets = +[RegularExpressions::ProhibitUselessTopic] - -# Use `{' and `}' to delimit multi-line regexps. [RegularExpressions::RequireBracesForMultiline] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# In addition to allowing '{}', allow '()', '[]', and '{}'. -# allow_all_brackets = - -# Always use the `/s' modifier with regular expressions. [RegularExpressions::RequireDotMatchAnything] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Always use the `/x' modifier with regular expressions. [RegularExpressions::RequireExtendedFormatting] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The number of characters that a regular expression must contain before this policy will complain. -# Minimum value 0. No maximum. -# minimum_regex_length_to_complain_about = 0 - -# Should regexes that only contain whitespace and word characters be complained about?. -# strict = 0 - - -# Always use the `/m' modifier with regular expressions. -[RegularExpressions::RequireLineBoundaryMatching] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit +[-RegularExpressions::RequireLineBoundaryMatching] -# Don't call functions with a leading ampersand sigil. [Subroutines::ProhibitAmpersandSigils] -# set_themes = core maintenance pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Don't declare your own `open' function. [Subroutines::ProhibitBuiltinHomonyms] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# [Subroutines::ProhibitCallsToUndeclaredSubs] -# set_themes = bugs strictersubs -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. -exempt_subs = String::Formatter::str_rf - -# -[Subroutines::ProhibitCallsToUnexportedSubs] -# set_themes = bugs strictersubs -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. +[Subroutines::ProhibitCallsToUnexportedSubs] -# Minimize complexity by factoring code into smaller subroutines. [Subroutines::ProhibitExcessComplexity] -# set_themes = complexity core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The maximum complexity score allowed. -# Minimum value 1. No maximum. -# max_mccabe = 20 +[-Subroutines::ProhibitExplicitReturnUndef] -# Return failure with bare `return' instead of `return undef'. -[Subroutines::ProhibitExplicitReturnUndef] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - - -# [Subroutines::ProhibitExportingUndeclaredSubs] -# set_themes = bugs strictersubs -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Too many arguments. [Subroutines::ProhibitManyArgs] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# The maximum number of arguments to allow a subroutine to have. -# Minimum value 1. No maximum. -# max_arguments = 5 - - -# `sub never { sub correct {} }'. [Subroutines::ProhibitNestedSubs] -# set_themes = bugs core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# [Subroutines::ProhibitQualifiedSubDeclarations] -# set_themes = bugs strictersubs -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Behavior of `sort' is not defined if called in scalar context. [Subroutines::ProhibitReturnSort] -# set_themes = bugs certrule core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Don't write `sub my_function (@@) {}'. [Subroutines::ProhibitSubroutinePrototypes] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Prevent unused private subroutines. [Subroutines::ProhibitUnusedPrivateSubroutines] -# set_themes = certrec core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Pattern that determines what a private subroutine is. private_name_regex = _(?!build_)\w -# Subroutines matching the private name regex to allow under this policy. -# allow = - - -# Prevent access to private subs in other packages. [Subroutines::ProtectPrivateSubs] -# set_themes = certrule core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Pattern that determines what a private subroutine is. -# private_name_regex = \b_\w+\b - -# Subroutines matching the private name regex to allow under this policy. -# Values that are always included: POSIX::_PC_CHOWN_RESTRICTED, POSIX::_PC_LINK_MAX, POSIX::_PC_MAX_CANON, POSIX::_PC_MAX_INPUT, POSIX::_PC_NAME_MAX, POSIX::_PC_NO_TRUNC, POSIX::_PC_PATH_MAX, POSIX::_PC_PIPE_BUF, POSIX::_PC_VDISABLE, POSIX::_POSIX_ARG_MAX, POSIX::_POSIX_CHILD_MAX, POSIX::_POSIX_CHOWN_RESTRICTED, POSIX::_POSIX_JOB_CONTROL, POSIX::_POSIX_LINK_MAX, POSIX::_POSIX_MAX_CANON, POSIX::_POSIX_MAX_INPUT, POSIX::_POSIX_NAME_MAX, POSIX::_POSIX_NGROUPS_MAX, POSIX::_POSIX_NO_TRUNC, POSIX::_POSIX_OPEN_MAX, POSIX::_POSIX_PATH_MAX, POSIX::_POSIX_PIPE_BUF, POSIX::_POSIX_SAVED_IDS, POSIX::_POSIX_SSIZE_MAX, POSIX::_POSIX_STREAM_MAX, POSIX::_POSIX_TZNAME_MAX, POSIX::_POSIX_VDISABLE, POSIX::_POSIX_VERSION, POSIX::_SC_ARG_MAX, POSIX::_SC_CHILD_MAX, POSIX::_SC_CLK_TCK, POSIX::_SC_JOB_CONTROL, POSIX::_SC_NGROUPS_MAX, POSIX::_SC_OPEN_MAX, POSIX::_SC_PAGESIZE, POSIX::_SC_SAVED_IDS, POSIX::_SC_STREAM_MAX, POSIX::_SC_TZNAME_MAX, POSIX::_SC_VERSION, POSIX::_exit. -# allow = - - -# Always unpack `@_' first. -[Subroutines::RequireArgUnpacking] -# set_themes = core maintenance pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# The number of statements to allow without unpacking. -# Minimum value 0. No maximum. -# short_subroutine_statements = 0 -# Should unpacking from array slices and elements be allowed?. -# allow_subscripts = 0 +[-Subroutines::RequireArgUnpacking] -# Allow the usual delegation idiom to these namespaces/subroutines. -# Values that are always included: NEXT::, SUPER::. -# allow_delegation_to = +[-Subroutines::RequireFinalReturn] - -# End every path through a subroutine with an explicit `return' statement. -[Subroutines::RequireFinalReturn] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# The additional subroutines to treat as terminal. -# Values that are always included: Carp::confess, Carp::croak, confess, croak, die, exec, exit, throw. -# terminal_funcs = - - -# Prohibit various flavors of `no strict'. [TestingAndDebugging::ProhibitNoStrict] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Allow vars, subs, and/or refs. -# allow = - -# Prohibit various flavors of `no warnings'. [TestingAndDebugging::ProhibitNoWarnings] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Permitted warning categories. -# allow = - -# Allow "no warnings" if it restricts the kinds of warnings that are turned off. -# allow_with_category_restriction = 0 - -# Don't turn off strict for large blocks of code. [TestingAndDebugging::ProhibitProlongedStrictureOverride] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# The maximum number of statements in a no strict block. -# Minimum value 1. No maximum. -# statements = 3 - -# Tests should all have labels. [TestingAndDebugging::RequireTestLabels] -# set_themes = core maintenance tests -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# The additional modules to require labels for. -# Values that are always included: Test::More. -# modules = - - -# Always `use strict'. [TestingAndDebugging::RequireUseStrict] -# set_themes = bugs certrec certrule core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = 1 - -# The additional modules to treat as equivalent to "strict". -# Values that are always included: Moose, Moose::Role, Moose::Util::TypeConstraints, strict. -equivalent_modules = Moose +equivalent_modules = Moose Moo - -# Always `use warnings'. [TestingAndDebugging::RequireUseWarnings] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = 1 - -# The additional modules to treat as equivalent to "warnings". -# Values that are always included: Moose, Moose::Role, Moose::Util::TypeConstraints, warnings. -equivalent_modules = Moose +equivalent_modules = Moose Moo - -# 80 x 40 for life! [Tics::ProhibitLongLines] -# set_themes = tics -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# No description available. base_max = 130 -# No description available. -# hard_max = - -# No description available. -# pct_allowed = - - -# (this => is => not => good) [Tics::ProhibitManyArrows] -# set_themes = tics -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# No description available. -# max_allowed = - -# do not use base.pm [Tics::ProhibitUseBase] -# set_themes = tics -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# Cannot programmatically discover what parameters this policy takes. - -# disallow bareword before < [ValuesAndExpressions::ConstantBeforeLt] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# logical not used with compare [ValuesAndExpressions::NotWithCompare] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# don't assign an anonymous arrayref to an array [ValuesAndExpressions::ProhibitArrayAssignAref] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# don't use Foo:: style barewords [ValuesAndExpressions::ProhibitBarewordDoubleColon] -# set_themes = cosmetic pulp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit -# Whether to allow double-colon in indirect object syntax "new Foo:: arg,arg". -# allow_indirect_syntax = 1 - - -# Don't use the comma operator as a statement separator. [ValuesAndExpressions::ProhibitCommaSeparatedStatements] -# set_themes = bugs certrule core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Allow map and grep blocks to return lists. -# allow_last_statement_to_be_comma_separated_in_map_and_grep = 0 - -# Prohibit version values from outside the module. [ValuesAndExpressions::ProhibitComplexVersion] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Make "use version; our $VERSION = qv('1.2.3');" a violation of this policy. -# forbid_use_version = 0 - -# Don't `use constant FOO => 15'. -[ValuesAndExpressions::ProhibitConstantPragma] -# set_themes = bugs core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit +[-ValuesAndExpressions::ProhibitConstantPragma] - -# disallow duplicate literal hash keys [ValuesAndExpressions::ProhibitDuplicateHashKeys] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# disallow empty consecutive commas [-ValuesAndExpressions::ProhibitEmptyCommas] -# set_themes = cosmetic pulp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `q{}' instead of `'''. [ValuesAndExpressions::ProhibitEmptyQuotes] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `"\N{DELETE}"' instead of `"\x7F"', etc. [ValuesAndExpressions::ProhibitEscapedCharacters] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# don't use the -f file test [ValuesAndExpressions::ProhibitFiletest_f] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Use concatenation or HEREDOCs instead of literal line breaks in strings. [ValuesAndExpressions::ProhibitImplicitNewlines] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Always use single quotes for literal strings. [ValuesAndExpressions::ProhibitInterpolationOfLiterals] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# Kinds of delimiters to permit, e.g. "qq{", "qq(", "qq[", "qq/". -# allow = -# If the string contains ' characters, allow "" to quote it. -# allow_if_string_contains_single_quote = 0 - - -# Write `oct(755)' instead of `0755'. [ValuesAndExpressions::ProhibitLeadingZeros] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Don't allow any leading zeros at all. Otherwise builtins that deal with Unix permissions, e.g. chmod, don't get flagged. -# strict = 0 - -# Long chains of method calls indicate tightly coupled code. [ValuesAndExpressions::ProhibitLongChainsOfMethodCalls] -# set_themes = core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The number of chained calls to allow. -# Minimum value 1. No maximum. -# max_chain_length = 3 - -# Don't use values that don't explain themselves. [-ValuesAndExpressions::ProhibitMagicNumbers] -# set_themes = certrec core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = 10 - -# Individual and ranges of values to allow, and/or "all_integers". -# allowed_values = 0 1 2 - -# Kind of literals to allow. -# Valid values: Binary, Exp, Float, Hex, Octal. -# allowed_types = Float -# Should anything to the right of a "=>" be allowed?. -# allow_to_the_right_of_a_fat_comma = 1 - -# Names of subroutines that create constants. -# Values that are always included: Readonly, Readonly::Array, Readonly::Hash, Readonly::Scalar, const. -# constant_creator_subroutines = - - -# Don't mix numeric operators with string operands, or vice-versa. [ValuesAndExpressions::ProhibitMismatchedOperators] -# set_themes = bugs certrule core -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write ` !$foo && $bar || $baz ' instead of ` not $foo && $bar or $baz'. [ValuesAndExpressions::ProhibitMixedBooleanOperators] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Use `q{}' or `qq{}' instead of quotes for awkward-looking strings. [ValuesAndExpressions::ProhibitNoisyQuotes] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# disallow empty statements (stray semicolons) [ValuesAndExpressions::ProhibitNullStatements] -# set_themes = cosmetic pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Whether to allow Perl 4 style ";#" comments. -# allow_perl4_semihash = 0 - - -# Don't use quotes (`'', `"', ``') as delimiters for the quote-like operators. [ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The operators to allow single-quotes as delimiters for. -# Valid values: m, q, qq, qr, qw, qx, s, tr, y. -# single_quote_allowed_operators = m s qr qx - -# The operators to allow double-quotes as delimiters for. -# Valid values: m, q, qq, qr, qw, qx, s, tr, y. -# double_quote_allowed_operators = - -# The operators to allow back-quotes (back-ticks) as delimiters for. -# Valid values: m, q, qq, qr, qw, qx, s, tr, y. -# back_quote_allowed_operators = - -# Don't write ` print <<'__END__' '. [ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator] -# set_themes = core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# don't use undefined backslash forms [ValuesAndExpressions::ProhibitUnknownBackslash] -# set_themes = cosmetic pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Checking of single-quote strings. -# single = none - -# Checking of double-quote strings. -# double = all - -# Checking of interpolated here-documents. -# heredoc = all - -# Don't use strings like `v1.4' or `1.4.5' when including other modules. [ValuesAndExpressions::ProhibitVersionStrings] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Putting the constant value on the left side of an equality exposes typos. [ValuesAndExpressions::RequireConstantOnLeftSideOfEquality] -# set_themes = more -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Require $VERSION to be a constant rather than a computed value. [ValuesAndExpressions::RequireConstantVersion] -# set_themes = core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Allow qv() and version->new() without a 'use version' on the same line. -# allow_version_without_use_on_same_line = 0 - -# Warns that you might have used single quotes when you really wanted double-quotes. [ValuesAndExpressions::RequireInterpolationOfMetachars] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 1 -# maximum_violations_per_document = no_limit - -# RCS keywords to ignore in potential interpolation. -# rcs_keywords = - -# Write ` 141_234_397.0145 ' instead of ` 141234397.0145 '. [ValuesAndExpressions::RequireNumberSeparators] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The minimum absolute value to require separators in. -# Minimum value 10. No maximum. -# min_value = 10_000 - -# $VERSION a plain number [ValuesAndExpressions::RequireNumericVersion] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write ` print <<'THE_END' ' or ` print <<"THE_END" '. [ValuesAndExpressions::RequireQuotedHeredocTerminator] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write ` <<'THE_END'; ' instead of ` <<'theEnd'; '. [ValuesAndExpressions::RequireUpperCaseHeredocTerminator] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Stop mixing long strings with code. [ValuesAndExpressions::RestrictLongStrings] -# set_themes = more readability -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit -# The maximum line length to allow. -# Minimum value 1. No maximum. -# max_length = 78 - - -# specials like __PACKAGE__ used literally [ValuesAndExpressions::UnexpandedSpecialLiteral] -# set_themes = bugs pulp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Do not write ` my $foo .= 'bar'; '. [Variables::ProhibitAugmentedAssignmentInDeclaration] -# set_themes = bugs core -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Do not write ` my $foo = $bar if $baz; '. [Variables::ProhibitConditionalDeclarations] -# set_themes = bugs core -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit +[Variables::ProhibitEvilVariables] -# Use `my' instead of `local', except when you have to. [Variables::ProhibitLocalVars] -# set_themes = core maintenance pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Avoid `$`', `$&', `$'' and their English equivalents. [Variables::ProhibitMatchVars] -# set_themes = core pbp performance -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Eliminate globals declared with `our' or `use vars'. [Variables::ProhibitPackageVars] -# set_themes = core maintenance pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The base set of packages to allow variables for. -# packages = Data::Dumper File::Find FindBin Log::Log4perl - -# The set of packages to allow variables for, in addition to those given in "packages". -# add_packages = - -# Use double colon (::) to separate package name components instead of single quotes ('). [Variables::ProhibitPerl4PackageNames] -# set_themes = certrec core maintenance -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# Write `$EVAL_ERROR' instead of `$@'. [-Variables::ProhibitPunctuationVars] -# set_themes = core cosmetic pbp -# add_themes = -# severity = 2 -# maximum_violations_per_document = no_limit - -# The additional variables to allow. -# Values that are always included: $1, $2, $3, $4, $5, $6, $7, $8, $9, $], $_, @_, _. -# allow = -# Controls checking interpolated strings for punctuation variables. -# Valid values: disable, simple, thorough. -# string_mode = thorough - - -# Do not reuse a variable name in a lexical scope [Variables::ProhibitReusedNames] -# set_themes = bugs core -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# The variables to not consider as duplicates. -# allow = $self $class - -# Don't ask for storage you don't need. [Variables::ProhibitUnusedVariables] -# set_themes = certrec core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Don't ask for storage you don't need. [Variables::ProhibitUnusedVarsStricter] -# set_themes = maintenance trw -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit -# Allow if computed by one of these. -# allow_if_computed_by = - -# Prohibit reference-only variables. -# prohibit_reference_only_variables = 0 - -# Allow unused subroutine arguments. -# allow_unused_subroutine_arguments = 0 - - -# Prevent access to private vars in other packages. [Variables::ProtectPrivateVars] -# set_themes = certrule core maintenance -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `local $foo = $bar;' instead of just `local $foo;'. [Variables::RequireInitializationForLocalVars] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 3 -# maximum_violations_per_document = no_limit - -# Write `for my $element (@list) {...}' instead of `for $element (@list) {...}'. [Variables::RequireLexicalLoopIterators] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 5 -# maximum_violations_per_document = no_limit - -# Magic variables should be assigned as "local". [Variables::RequireLocalizedPunctuationVars] -# set_themes = bugs certrec core pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - -# Global variables to exclude from this policy. -# Values that are always included: $ARG, $_, @_. -# allow = - -# Negative array index should be used. [Variables::RequireNegativeIndices] -# set_themes = core maintenance pbp -# add_themes = -# severity = 4 -# maximum_violations_per_document = no_limit - - diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t index a89f28d..4bc265c 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Branches.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Branches.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t index 9923fb3..7e18f51 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Ref/Branch.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Ref/Branch.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Ref_Tag_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Ref_Tag_pm.t index 15019e1..f570c0d 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Ref_Tag_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Ref_Tag_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Ref/Tag.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Ref/Tag.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Ref_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Ref_pm.t index 214b4ea..b66248b 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Ref_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Ref_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Ref.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Ref.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Refs_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Refs_pm.t index 89e6ed8..62eacdf 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Refs_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Refs_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Refs.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Refs.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_Arguments_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_Arguments_pm.t index 8dc99d9..a6f2daa 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_Arguments_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_Arguments_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/Arguments.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/Arguments.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_Behaviors_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_Behaviors_pm.t index 456e565..9af6d57 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_Behaviors_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_Behaviors_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/Behaviors.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/Behaviors.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_Commands_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_Commands_pm.t index 82e4baf..483b7e8 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_Commands_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_Commands_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/Commands.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/Commands.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeDictionary_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeDictionary_pm.t index bb65c6f..6b6879f 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeDictionary_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeDictionary_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/RangeDictionary.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/RangeDictionary.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeSet_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeSet_pm.t index 9a82344..a5f8480 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeSet_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_RangeSet_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/RangeSet.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/RangeSet.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_Range_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_Range_pm.t index 826a598..8623ce9 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_Range_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_Range_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support/Range.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support/Range.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Support_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Support_pm.t index f03ad6a..0434fe4 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Support_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Support_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Support.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Support.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Tags_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Tags_pm.t index 22b1118..f2d540a 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Tags_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Tags_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Tags.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Tags.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Tester_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Tester_pm.t index 8e8847c..59ad146 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Tester_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Tester_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Tester.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Tester.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Util_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Util_pm.t index a40ecf7..f4bc3b3 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Util_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Util_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Util.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Util.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t index 846276a..fd2b761 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus/Versions.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus/Versions.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-compile/lib_Git_Wrapper_Plus_pm.t b/t/00-compile/lib_Git_Wrapper_Plus_pm.t index fcf8383..465aab9 100644 --- a/t/00-compile/lib_Git_Wrapper_Plus_pm.t +++ b/t/00-compile/lib_Git_Wrapper_Plus_pm.t @@ -1,11 +1,17 @@ -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 -# with template 01-basic.t.tpl - -use Test::More 0.89 tests => 1; - -require_ok("lib/Git/Wrapper/Plus.pm"); +# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000 +# with template 02-raw-require.t.tpl +my $file = "Git/Wrapper/Plus.pm"; +my $err; +{ + local $@; + eval { require $file; 1 } or $err = $@; +}; +if( not defined $err ) { + print "1..1\nok 1 - require ${file}\n"; + exit 0; +} +print "1..1\nnot ok 1 - require ${file}\n"; +print STDERR "# ${_}\n" for split /\n/, $err; +exit 1; diff --git a/t/00-report-git-support.t b/t/00-report-git-support.t index e7e1b55..9a48bc3 100644 --- a/t/00-report-git-support.t +++ b/t/00-report-git-support.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 3; # ABSTRACT: Report supported features of your git @@ -19,62 +19,54 @@ my $data = { $t->run_env( sub { - subtest 'commands' => sub { - note "\nCommands:"; - for my $command ( $s->commands->entries ) { - my $msg = '- ' . $command . ' '; - if ( $s->supports_command($command) ) { - $msg .= "supported"; - push @{ $data->{commands}->{supported} }, $command; - } - else { - push @{ $data->{commands}->{unsupported} }, $command; - $msg .= "UNSUPPORTED"; - } - note $msg; + note "\nCommands:"; + for my $command ( $s->commands->entries ) { + my $msg = '- ' . $command . ' '; + if ( $s->supports_command($command) ) { + $msg .= "supported"; + push @{ $data->{commands}->{supported} }, $command; + } + else { + push @{ $data->{commands}->{unsupported} }, $command; + $msg .= "UNSUPPORTED"; + } + note $msg; + } + pass("Commands reporting ok"); + note "\nBehaviours:"; + + for my $behavior ( $s->behaviors->entries ) { + my $msg = '- ' . $behavior . ' '; + if ( $s->supports_behavior($behavior) ) { + $msg .= "supported"; + push @{ $data->{behaviors}->{supported} }, $behavior; + } + else { + push @{ $data->{behaviors}->{unsupported} }, $behavior; + $msg .= "UNSUPPORTED"; } - pass("Commands reporting ok"); - }; - subtest 'behaviors' => sub { - note "\nBehaviours:"; + note $msg; + } + pass("Behaviours reporting ok"); + + note "\nArguments:"; - for my $behavior ( $s->behaviors->entries ) { - my $msg = '- ' . $behavior . ' '; - if ( $s->supports_behavior($behavior) ) { + for my $cmd ( $s->arguments->commands ) { + for my $arg ( $s->arguments->arguments($cmd) ) { + my $msg = '- ' . $cmd . ' ' . $arg . ' '; + if ( $s->supports_argument( $cmd, $arg ) ) { $msg .= "supported"; - push @{ $data->{behaviors}->{supported} }, $behavior; + push @{ $data->{arguments}->{supported} }, $cmd . ' ' . $arg; } else { - push @{ $data->{behaviors}->{unsupported} }, $behavior; + push @{ $data->{arguments}->{unsupported} }, $cmd . ' ' . $arg; $msg .= "UNSUPPORTED"; } note $msg; } - pass("Behaviours reporting ok"); - - }; - subtest 'arguments' => sub { - note "\nArguments:"; - - for my $cmd ( $s->arguments->commands ) { - for my $arg ( $s->arguments->arguments($cmd) ) { - my $msg = '- ' . $cmd . ' ' . $arg . ' '; - if ( $s->supports_argument( $cmd, $arg ) ) { - $msg .= "supported"; - push @{ $data->{arguments}->{supported} }, $cmd . ' ' . $arg; - } - else { - push @{ $data->{arguments}->{unsupported} }, $cmd . ' ' . $arg; - $msg .= "UNSUPPORTED"; - } - note $msg; - } - } - pass("Arguments reporting ok"); - - }; - + } + pass("Arguments reporting ok"); } ); diff --git a/t/00-report-prereqs.dd b/t/00-report-prereqs.dd new file mode 100644 index 0000000..5eda0f1 --- /dev/null +++ b/t/00-report-prereqs.dd @@ -0,0 +1,118 @@ +do { my $x = { + 'configure' => { + 'recommends' => { + 'ExtUtils::MakeMaker' => '7.00' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0', + 'perl' => '5.006' + } + }, + 'develop' => { + 'recommends' => { + 'Test::More' => '0.99' + }, + 'requires' => { + 'Dist::Zilla' => '5', + 'Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes' => '0.004002', + 'Dist::Zilla::Plugin::Author::KENTNL::TravisCI' => '0.001002', + 'Dist::Zilla::Plugin::Authority' => '1.006', + 'Dist::Zilla::Plugin::AutoPrereqs' => '0', + 'Dist::Zilla::Plugin::BumpVersionAfterRelease' => '0', + 'Dist::Zilla::Plugin::ConfirmRelease' => '0', + 'Dist::Zilla::Plugin::CopyFilesFromBuild' => '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.004000', + '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' => '1.004000', + 'Dist::Zilla::Plugin::MetaJSON' => '0', + 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.14000001', + 'Dist::Zilla::Plugin::MetaTests' => '0', + 'Dist::Zilla::Plugin::MetaYAML::Minimal' => '0', + 'Dist::Zilla::Plugin::MinimumPerl' => '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::AuthorDeps' => '0', + 'Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled' => '0', + 'Dist::Zilla::Plugin::Prereqs::Upgrade' => '0', + 'Dist::Zilla::Plugin::Readme::Brief' => '0', + 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0', + 'Dist::Zilla::Plugin::RemovePrereqs::Provided' => '0', + 'Dist::Zilla::Plugin::RewriteVersion::Sanitized' => '0', + 'Dist::Zilla::Plugin::RunExtraTests' => '0', + 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0', + 'Dist::Zilla::Plugin::Test::Compile::PerFile' => '0.003902', + 'Dist::Zilla::Plugin::Test::EOL' => '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', + 'English' => '0', + 'Pod::Coverage::TrustPod' => '0', + 'Software::License::Perl_5' => '0', + 'Test::CPAN::Changes' => '0.19', + 'Test::CPAN::Meta' => '0', + 'Test::EOL' => '0', + 'Test::Kwalitee' => '1.21', + 'Test::MinimumVersion' => '0', + 'Test::More' => '0.96', + 'Test::Pod' => '1.41', + 'Test::Pod::Coverage' => '1.08' + }, + 'suggests' => { + 'Dist::Zilla::App::Command::bakeini' => '0.002006', + 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.025021' + } + }, + 'runtime' => { + 'recommends' => { + 'Moo' => '1.000008', + 'Path::Tiny' => '0.058' + }, + 'requires' => { + 'Carp' => '0', + 'Git::Wrapper' => '0', + 'Moo' => '0', + 'Path::Tiny' => '0', + 'Scalar::Util' => '0', + 'Sort::Versions' => '0', + 'Sub::Exporter::Progressive' => '0', + 'Try::Tiny' => '0', + 'perl' => '5.006', + 'strict' => '0', + 'warnings' => '0' + } + }, + 'test' => { + 'recommends' => { + 'CPAN::Meta' => '2.120900', + 'ExtUtils::MakeMaker' => '7.00', + 'Test::More' => '0.99' + }, + 'requires' => { + 'ExtUtils::MakeMaker' => '0', + 'File::Spec' => '0', + 'Test::Fatal' => '0', + 'Test::More' => '0', + 'Test::Requires' => '0', + 'perl' => '5.006' + } + } + }; + $x; + } \ No newline at end of file diff --git a/t/00-report-prereqs.t b/t/00-report-prereqs.t index 91ed5bf..e338372 100644 --- a/t/00-report-prereqs.t +++ b/t/00-report-prereqs.t @@ -3,230 +3,179 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 use Test::More tests => 1; use ExtUtils::MakeMaker; -use File::Spec::Functions; -use List::Util qw/max/; -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_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 $cpan_meta_pre = "CPAN::Meta::Prereqs"; +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 _merge_requires { +sub _max { + my $max = shift; + $max = ( $_ > $max ) ? $_ : $max for @_; + return $max; +} + +sub _merge_prereqs { 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 ); + + # CPAN::Meta::Prereqs object + if (ref $collector eq $cpan_meta_pre) { + return $collector->with_merged_prereqs( + CPAN::Meta::Prereqs->new( $prereqs ) + ); + } + + # Raw hashrefs + for my $phase ( keys %$prereqs ) { + for my $type ( keys %{ $prereqs->{$phase} } ) { + for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { + $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; + } } } + + return $collector; } -my %include = map {; $_ => 1 } qw( +my @include = qw( ); -my %exclude = map {; $_ => 1 } qw( +my @exclude = qw( ); # Add static prereqs to the included modules list -my $static_prereqs = do { my $x = { - 'configure' => { - 'recommends' => { - 'ExtUtils::MakeMaker' => '6.86' - }, - '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.012000', - 'Pod::Coverage::TrustPod' => '0', - 'Test::CPAN::Changes' => '0.19', - 'Test::CPAN::Meta' => '0', - 'Test::Kwalitee' => '1.12', - 'Test::Pod' => '1.41', - 'Test::Pod::Coverage' => '1.08' - }, - 'suggests' => { - 'Dist::Zilla::PluginBundle::Author::KENTNL::Lite' => 'v1.3.0' - } - }, - 'runtime' => { - 'requires' => { - 'Carp' => '0', - 'Git::Wrapper' => '0', - 'Moo' => '0', - 'Path::Tiny' => '0', - 'Scalar::Util' => '0', - 'Sort::Versions' => '0', - 'Sub::Exporter::Progressive' => '0', - 'Try::Tiny' => '0', - 'perl' => '5.008', - 'strict' => '0', - 'utf8' => '0', - 'warnings' => '0' - } - }, - 'test' => { - 'recommends' => { - 'CPAN::Meta' => '0', - 'CPAN::Meta::Requirements' => '2.120900', - 'ExtUtils::MakeMaker' => '6.86', - 'Test::More' => '1.001002' - }, - 'requires' => { - 'ExtUtils::MakeMaker' => '0', - 'File::Spec::Functions' => '0', - 'List::Util' => '0', - 'Test::Fatal' => '0', - 'Test::More' => '0.89', - 'Test::Requires' => '0', - 'version' => '0' - } - } - }; - $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); -} +my $static_prereqs = do 't/00-report-prereqs.dd'; +# Merge all prereqs (either with ::Prereqs or a hashref) +my $full_prereqs = _merge_prereqs( + ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), + $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); - } - } +if ( $source && $HAS_CPAN_META + && (my $meta = eval { CPAN::Meta->load_file($source) } ) +) { + $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { - $source = 'static metadata'; + $source = 'static metadata'; } -my @modules = sort grep { ! $exclude{$_} } keys %include; -my @reports = [qw/Version Module/]; +my @full_reports; 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'"; +my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; + +# 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 modules) ) { + next unless $req_hash->{$phase}{$type}; + + my $title = ucfirst($phase).' '.ucfirst($type); + my @reports = [qw/Module Want Have/]; + + for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { + next if $mod eq 'perl'; + next if grep { $_ eq $mod } @exclude; + + my $file = $mod; + $file =~ s{::}{/}g; + $file .= ".pm"; + my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; + + my $want = $req_hash->{$phase}{$type}{$mod}; + $want = "undef" unless defined $want; + $want = "any" if !$want && $want == 0; + + my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; + + if ($prefix) { + my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); + $have = "undef" unless defined $have; + push @reports, [$mod, $want, $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 ) ) { + push @dep_errors, "$mod version '$have' is not in required range '$want'"; + } + } + } + else { + push @reports, [$mod, $want, "missing"]; + + if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { + push @dep_errors, "$mod is not installed ($req_string)"; + } + } } - } - } - } - else { - push @reports, ["missing", $mod]; + 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 ); - 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 ($type eq 'modules') { + splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; + push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; + } + else { + 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; + } + + push @full_reports, "\n"; + } } - } } -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 ( @full_reports ) { + diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_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" - ); + 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; diff --git a/t/branches/basic.t b/t/branches/basic.t index d99cdcb..5183ad5 100644 --- a/t/branches/basic.t +++ b/t/branches/basic.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 9; use Git::Wrapper::Plus::Tester; use Test::Fatal qw(exception); use Git::Wrapper::Plus::Support; @@ -63,15 +63,14 @@ $t->run_env( ok( exists $branches->{master_3}, 'master_3 branch found' ); is( $branches->{master_2}->sha1, $branches->{master_3}->sha1, 'master_2 and master_3 have the same sha1' ); if ( $s->supports_behavior('can-checkout-detached') ) { - subtest 'Detached head test' => sub { - $wrapper->checkout('master_3^'); - $excp = exception { - is( $branch_finder->current_branch, undef, 'not currently on a branch' ); - }; - is( $excp, undef, 'Didnt fail due to not being on a branch' ) or diag $excp; + $wrapper->checkout('master_3^'); + $excp = exception { + is( $branch_finder->current_branch, undef, 'not currently on a branch' ); }; + is( $excp, undef, 'Didnt fail due to not being on a branch' ) or diag $excp; + } + else { + todo_skip "Tests require can-checkout-detached", 2; } }, ); -done_testing; - diff --git a/xt/author/eol.t b/xt/author/eol.t new file mode 100644 index 0000000..39b8357 --- /dev/null +++ b/xt/author/eol.t @@ -0,0 +1,58 @@ +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 + +use Test::More 0.88; +use Test::EOL; + +my @files = ( + 'lib/Git/Wrapper/Plus.pm', + 'lib/Git/Wrapper/Plus/Branches.pm', + 'lib/Git/Wrapper/Plus/Ref.pm', + 'lib/Git/Wrapper/Plus/Ref/Branch.pm', + 'lib/Git/Wrapper/Plus/Ref/Tag.pm', + 'lib/Git/Wrapper/Plus/Refs.pm', + 'lib/Git/Wrapper/Plus/Support.pm', + 'lib/Git/Wrapper/Plus/Support/Arguments.pm', + 'lib/Git/Wrapper/Plus/Support/Behaviors.pm', + 'lib/Git/Wrapper/Plus/Support/Commands.pm', + 'lib/Git/Wrapper/Plus/Support/Range.pm', + 'lib/Git/Wrapper/Plus/Support/RangeDictionary.pm', + 'lib/Git/Wrapper/Plus/Support/RangeSet.pm', + 'lib/Git/Wrapper/Plus/Tags.pm', + 'lib/Git/Wrapper/Plus/Tester.pm', + 'lib/Git/Wrapper/Plus/Util.pm', + 'lib/Git/Wrapper/Plus/Versions.pm', + 't/00-compile/lib_Git_Wrapper_Plus_Branches_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Ref_Branch_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Ref_Tag_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Ref_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Refs_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_Arguments_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_Behaviors_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_Commands_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_RangeDictionary_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_RangeSet_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_Range_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Support_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Tags_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Tester_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Util_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_Versions_pm.t', + 't/00-compile/lib_Git_Wrapper_Plus_pm.t', + 't/00-report-git-support.t', + 't/00-report-git-version.t', + 't/00-report-prereqs.dd', + 't/00-report-prereqs.t', + 't/branches/basic.t', + 't/plus/basic.t', + 't/plus/path-class-constructor.t', + 't/plus/path-tiny-constructor.t', + 't/refs/basic_branches.t', + 't/refs/basic_tags.t', + 't/tags/basic.t' +); + +eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; +done_testing; diff --git a/xt/author/pod-coverage.t b/xt/author/pod-coverage.t new file mode 100644 index 0000000..66b3b64 --- /dev/null +++ b/xt/author/pod-coverage.t @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. + +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/author/pod-syntax.t similarity index 56% rename from xt/release/pod-syntax.t rename to xt/author/pod-syntax.t index 3a69ee9..e563e5d 100644 --- a/xt/release/pod-syntax.t +++ b/xt/author/pod-syntax.t @@ -1,8 +1,7 @@ #!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; 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(); diff --git a/xt/release/cpan-changes.t b/xt/release/cpan-changes.t index 8e6e413..286005a 100644 --- a/xt/release/cpan-changes.t +++ b/xt/release/cpan-changes.t @@ -1,11 +1,10 @@ -#!perl - use strict; use warnings; -use Test::More 0.96 tests => 2; -use_ok('Test::CPAN::Changes'); +# this test was generated with Dist::Zilla::Plugin::Test::CPAN::Changes 0.012 + +use Test::More 0.96 tests => 1; +use Test::CPAN::Changes; subtest 'changes_ok' => sub { changes_file_ok('Changes'); }; -done_testing(); diff --git a/xt/release/distmeta.t b/xt/release/distmeta.t index 38e8429..c2280dc 100644 --- a/xt/release/distmeta.t +++ b/xt/release/distmeta.t @@ -1,8 +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/eol.t b/xt/release/eol.t deleted file mode 100644 index d13c49d..0000000 --- a/xt/release/eol.t +++ /dev/null @@ -1,8 +0,0 @@ -use strict; -use warnings; -use Test::More; - -eval 'use Test::EOL'; -plan skip_all => 'Test::EOL required' if $@; - -all_perl_files_ok({ trailing_whitespace => 1 }); diff --git a/xt/release/kwalitee.t b/xt/release/kwalitee.t index 13cecfa..c986546 100644 --- a/xt/release/kwalitee.t +++ b/xt/release/kwalitee.t @@ -1,4 +1,9 @@ -# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.12 use strict; use warnings; -use Test::Kwalitee; +use Test::More 0.88; +use Test::Kwalitee 1.21 'kwalitee_ok'; + +kwalitee_ok(); + +done_testing; diff --git a/xt/release/pod-coverage.t b/xt/release/pod-coverage.t deleted file mode 100644 index 9d5f1b4..0000000 --- a/xt/release/pod-coverage.t +++ /dev/null @@ -1,14 +0,0 @@ -#!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 $@; - -all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });