@@ -4,9 +4,14 @@ CONTRIBUTING
Thank you for considering contributing to this distribution. This file
contains instructions that will help you work with the source code.
-The distribution is managed with Dist::Zilla. This means than many of the
-usual files you might expect are not in the repository, but are generated
-at release time (e.g. Makefile.PL).
+PLEASE NOTE that if you have any questions or difficulties, you can reach me
+through the bug queue described later in this document, or by emailing me
+directly. You are not required to follow any of the steps in this document to
+submit a patch or bug report; these are just guidelines, intended to help you.
+
+The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla).
+This means than many of the usual files you might expect are not in the
+repository, but are generated at release time (e.g. Makefile.PL).
However, you can run tests directly using the 'prove' tool:
@@ -31,14 +36,24 @@ install it from CPAN, then run one of the following commands, depending on
your CPAN client:
$ cpan `dzil authordeps --missing`
+or
$ dzil authordeps --missing | cpanm
You should then also install any additional requirements not needed by the
dzil build but may be needed by tests or other development:
- # cpan `dzil listdeps --author --missing`
+ $ cpan `dzil listdeps --author --missing`
+or
$ dzil listdeps --author --missing | cpanm
+Or, you can use the 'dzil stale' command to install all requirements at once:
+
+ $ cpan Dist::Zilla::App::Command::stale
+ $ cpan `dzil stale --all`
+or
+ $ cpanm Dist::Zilla::App::Command::stale
+ $ dzil stale --all | cpanm
+
You can also do this via cpanm directly:
$ cpanm --reinstall --installdeps --with-develop --with-recommends Class::Method::Modifiers
@@ -69,6 +84,12 @@ https://rt.cpan.org/Public/Dist/Display.html?Name=Class-Method-Modifiers
or via bug-Class-Method-Modifiers@rt.cpan.org.
This is a good place to send your questions about the usage of this distribution.
+If you send me a patch or pull request, your name and email address will be
+included in the documentation as a contributor, unless you specifically
+request for it not to be (using the attribution on the commit or patch).
+If you wish to be listed under a different name, you should submit a pull
+request to the .mailmap file to contain the correct mapping.
+
This file was generated via Dist::Zilla::Plugin::GenerateFile::ShareDir 0.005 from a
-template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.052.
+template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.069.
@@ -1,5 +1,9 @@
Revision history for Class-Method-Modifiers
+2.11 2014-08-16 05:21:30Z
+ - add documentation for modifying multiple methods at once (mannih,
+ github #2)
+
2.10 2014-03-04 19:04:00Z
- installation switched to using only ExtUtils::MakeMaker, to allow
for use on perl 5.6
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.013.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020.
CONTRIBUTING
Changes
INSTALL
@@ -8,9 +8,9 @@ META.json
META.yml
Makefile.PL
README
-README.md
dist.ini
lib/Class/Method/Modifiers.pm
+t/00-report-prereqs.dd
t/00-report-prereqs.t
t/000-load.t
t/001-error.t
@@ -55,5 +55,3 @@ xt/release/pod-coverage.t
xt/release/pod-no404s.t
xt/release/pod-syntax.t
xt/release/portability.t
-xt/release/test-version.t
-xt/release/unused-vars.t
@@ -4,7 +4,13 @@
"Shawn M Moore <sartak@gmail.com>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380",
+ "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060",
+ "keywords" : [
+ "method",
+ "wrap",
+ "modification",
+ "patch"
+ ],
"license" : [
"perl_5"
],
@@ -16,43 +22,57 @@
"no_index" : {
"directory" : [
"t",
- "xt",
- "examples",
- "share"
+ "xt"
]
},
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.30"
+ "ExtUtils::MakeMaker" : "0"
}
},
"develop" : {
"recommends" : {
- "Dist::Zilla::PluginBundle::Author::ETHER" : "0.052"
+ "Dist::Zilla::PluginBundle::Author::ETHER" : "0.069"
},
"requires" : {
- "Dist::Zilla" : "5.013",
- "Dist::Zilla::Plugin::ContributorsFromGit" : "0",
+ "Dist::Zilla" : "5",
+ "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch" : "0.004",
+ "Dist::Zilla::Plugin::Git::Commit" : "2.020",
+ "Dist::Zilla::Plugin::Git::Contributors" : "0.004",
+ "Dist::Zilla::Plugin::Git::GatherDir" : "2.016",
"Dist::Zilla::Plugin::GitHub::Update" : "0",
"Dist::Zilla::Plugin::GithubMeta" : "0",
+ "Dist::Zilla::Plugin::Keywords" : "0.004",
"Dist::Zilla::Plugin::MakeMaker" : "0",
+ "Dist::Zilla::Plugin::MetaProvides::Package" : "1.15000002",
+ "Dist::Zilla::Plugin::NextRelease" : "4.300018",
+ "Dist::Zilla::Plugin::OnlyCorePrereqs" : "0",
+ "Dist::Zilla::Plugin::PkgVersion" : "5.010",
"Dist::Zilla::Plugin::PodVersion" : "0",
"Dist::Zilla::Plugin::Prereqs" : "0",
+ "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142180",
+ "Dist::Zilla::Plugin::RunExtraTests" : "0.019",
+ "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008",
"Dist::Zilla::Plugin::Test::CleanNamespaces" : "0",
+ "Dist::Zilla::Plugin::Test::Compile" : "2.039",
+ "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000003",
"Dist::Zilla::PluginBundle::Author::ETHER" : "0.025",
"File::Spec" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
+ "Moose" : "0",
+ "Perl::MinimumVersion" : "1.35",
"Pod::Coverage::TrustPod" : "0",
"Test::CPAN::Changes" : "0.19",
"Test::CPAN::Meta" : "0",
- "Test::CleanNamespaces" : ">= 0.04, != 0.06",
- "Test::Kwalitee" : "1.12",
+ "Test::CleanNamespaces" : "0.15",
+ "Test::Kwalitee" : "1.21",
"Test::More" : "0.94",
"Test::NoTabs" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
+ "Test::Spelling" : "0.12",
"Test::Warnings" : "0"
}
},
@@ -69,24 +89,22 @@
},
"test" : {
"recommends" : {
- "CPAN::Meta" : "0",
- "CPAN::Meta::Requirements" : "2.120900"
+ "CPAN::Meta" : "2.120900"
},
"requires" : {
"ExtUtils::MakeMaker" : "0",
- "File::Spec::Functions" : "0",
- "List::Util" : "0",
+ "File::Spec" : "0",
"Test::Fatal" : "0",
"Test::More" : "0",
- "if" : "0",
- "version" : "0"
+ "Test::Requires" : "0",
+ "if" : "0"
}
}
},
"provides" : {
"Class::Method::Modifiers" : {
"file" : "lib/Class/Method/Modifiers.pm",
- "version" : "2.10"
+ "version" : "2.11"
}
},
"release_status" : "stable",
@@ -102,21 +120,31 @@
"web" : "https://github.com/moose/Class-Method-Modifiers"
}
},
- "version" : "2.10",
+ "version" : "2.11",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.019009"
+ "version" : "5.021002"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::PodVersion",
"name" : "PodVersion",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::NextVersion" : {
+ "first_version" : "0.001",
+ "version_by_branch" : "0",
+ "version_regexp" : "(?^:^v([\\d._]+)(-TRIAL)?$)"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::NextVersion",
- "version" : "2.020"
+ "version" : "2.023"
},
{
"class" : "Dist::Zilla::Plugin::PromptIfStale",
@@ -131,8 +159,8 @@
"skip" : []
}
},
- "name" : "@Author::ETHER/build",
- "version" : "0.020"
+ "name" : "@Author::ETHER/stale modules, build",
+ "version" : "0.024"
},
{
"class" : "Dist::Zilla::Plugin::PromptIfStale",
@@ -145,53 +173,66 @@
"skip" : []
}
},
- "name" : "@Author::ETHER/release",
- "version" : "0.020"
+ "name" : "@Author::ETHER/stale modules, release",
+ "version" : "0.024"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::ETHER/ExecDir",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::ETHER/ShareDir",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FileFinder::ByName",
"name" : "@Author::ETHER/Examples",
- "version" : "5.013"
+ "version" : "5.020"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FileFinder::ByName",
+ "name" : "@Author::ETHER/ExtraTestFiles",
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::GatherDir" : {
+ "include_untracked" : "0"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::GatherDir",
- "version" : "2.020"
+ "version" : "2.023"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::ETHER/MetaYAML",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Author::ETHER/MetaJSON",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::ETHER/License",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Author::ETHER/Readme",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::ETHER/Manifest",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::GenerateFile::ShareDir",
@@ -200,6 +241,7 @@
"destination_filename" : "CONTRIBUTING",
"dist" : "Dist-Zilla-PluginBundle-Author-ETHER",
"encoding" : "UTF-8",
+ "has_xs" : 0,
"source_filename" : "CONTRIBUTING"
}
},
@@ -210,34 +252,40 @@
"class" : "Dist::Zilla::Plugin::Test::Compile",
"config" : {
"Dist::Zilla::Plugin::Test::Compile" : {
+ "bail_out_on_fail" : "1",
+ "fail_on_warning" : "author",
+ "fake_home" : "0",
"filename" : "xt/author/00-compile.t",
"module_finder" : [
":InstallModules"
],
+ "needs_display" : "0",
+ "phase" : "develop",
"script_finder" : [
":ExecFiles",
"@Author::ETHER/Examples"
- ]
+ ],
+ "skips" : []
}
},
"name" : "@Author::ETHER/Test::Compile",
- "version" : "2.039"
+ "version" : "2.045"
},
{
"class" : "Dist::Zilla::Plugin::Test::NoTabs",
"config" : {
"Dist::Zilla::Plugin::Test::NoTabs" : {
- "module_finder" : [
- ":InstallModules"
- ],
- "script_finder" : [
+ "finder" : [
+ ":InstallModules",
":ExecFiles",
- "@Author::ETHER/Examples"
+ "@Author::ETHER/Examples",
+ ":TestFiles",
+ "@Author::ETHER/ExtraTestFiles"
]
}
},
"name" : "@Author::ETHER/Test::NoTabs",
- "version" : "0.06"
+ "version" : "0.08"
},
{
"class" : "Dist::Zilla::Plugin::EOLTests",
@@ -247,12 +295,7 @@
{
"class" : "Dist::Zilla::Plugin::MetaTests",
"name" : "@Author::ETHER/MetaTests",
- "version" : "5.013"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Version",
- "name" : "@Author::ETHER/Test::Version",
- "version" : "0.002004"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
@@ -265,11 +308,6 @@
"version" : "0.006"
},
{
- "class" : "Dist::Zilla::Plugin::Test::UnusedVars",
- "name" : "@Author::ETHER/Test::UnusedVars",
- "version" : "2.000005"
- },
- {
"class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
"name" : "@Author::ETHER/Test::MinimumVersion",
"version" : "2.000005"
@@ -277,17 +315,17 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::ETHER/PodSyntaxTests",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Author::ETHER/PodCoverageTests",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Test::PodSpelling",
"name" : "@Author::ETHER/Test::PodSpelling",
- "version" : "2.006006"
+ "version" : "2.006008"
},
{
"class" : "Dist::Zilla::Plugin::Test::Pod::No404s",
@@ -296,18 +334,23 @@
},
{
"class" : "Dist::Zilla::Plugin::Test::Kwalitee",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Kwalitee" : {
+ "skiptest" : []
+ }
+ },
"name" : "@Author::ETHER/Test::Kwalitee",
- "version" : "2.07"
+ "version" : "2.08"
},
{
"class" : "Dist::Zilla::Plugin::MojibakeTests",
"name" : "@Author::ETHER/MojibakeTests",
- "version" : "0.5"
+ "version" : "0.7"
},
{
"class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
"name" : "@Author::ETHER/Test::ReportPrereqs",
- "version" : "0.013"
+ "version" : "0.019"
},
{
"class" : "Dist::Zilla::Plugin::Test::Portability",
@@ -322,7 +365,7 @@
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@Author::ETHER/PkgVersion",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
@@ -332,17 +375,17 @@
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@Author::ETHER/NextRelease",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
"name" : "@Author::ETHER/ReadmeAnyFromPod",
- "version" : "0.133360"
+ "version" : "0.142250"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@Author::ETHER/GithubMeta",
- "version" : "0.42"
+ "version" : "0.46"
},
{
"class" : "Dist::Zilla::Plugin::AutoMetaResources",
@@ -352,7 +395,7 @@
{
"class" : "Dist::Zilla::Plugin::MetaNoIndex",
"name" : "@Author::ETHER/MetaNoIndex",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
@@ -365,7 +408,7 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "5.013"
+ "version" : "5.020"
}
]
},
@@ -376,22 +419,49 @@
}
},
"name" : "@Author::ETHER/MetaProvides::Package",
- "version" : "2.000001"
+ "version" : "2.000004"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::ETHER/MetaConfig",
- "version" : "5.013"
+ "version" : "5.020"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Keywords",
+ "config" : {
+ "Dist::Zilla::Plugin::Keywords" : {
+ "keywords" : [
+ "method",
+ "wrap",
+ "modification",
+ "patch"
+ ]
+ }
+ },
+ "name" : "@Author::ETHER/Keywords",
+ "version" : "0.006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::Contributors",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Contributors" : {
+ "include_authors" : "0",
+ "include_releaser" : "1",
+ "order_by" : "commits"
+ }
+ },
+ "name" : "@Author::ETHER/Git::Contributors",
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Author::ETHER/AutoPrereqs",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs::AuthorDeps",
"name" : "@Author::ETHER/Prereqs::AuthorDeps",
- "version" : "0.002"
+ "version" : "0.003"
},
{
"class" : "Dist::Zilla::Plugin::MinimumPerl",
@@ -403,37 +473,36 @@
"config" : {
"Dist::Zilla::Plugin::Prereqs" : {
"phase" : "develop",
- "type" : "requires"
- }
- },
- "name" : "@Author::ETHER/installer_requirements",
- "version" : "5.013"
- },
- {
- "class" : "Dist::Zilla::Plugin::Prereqs",
- "config" : {
- "Dist::Zilla::Plugin::Prereqs" : {
- "phase" : "develop",
"type" : "recommends"
}
},
"name" : "@Author::ETHER/pluginbundle_version",
- "version" : "5.013"
- },
- {
- "class" : "Dist::Zilla::Plugin::RunExtraTests",
- "name" : "@Author::ETHER/RunExtraTests",
- "version" : "0.018"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
+ "config" : {
+ "Dist::Zilla::Role::TestRunner" : {
+ "default_jobs" : 9
+ }
+ },
"name" : "@Author::ETHER/MakeMaker",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
"name" : "@Author::ETHER/InstallGuide",
- "version" : "1.200002"
+ "version" : "1.200003"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::RunExtraTests",
+ "config" : {
+ "Dist::Zilla::Role::TestRunner" : {
+ "default_jobs" : 9
+ }
+ },
+ "name" : "@Author::ETHER/RunExtraTests",
+ "version" : "0.022"
},
{
"class" : "Dist::Zilla::Plugin::CheckSelfDependency",
@@ -449,23 +518,58 @@
},
{
"class" : "Dist::Zilla::Plugin::Run::AfterBuild",
+ "config" : {
+ "Dist::Zilla::Plugin::Run::Role::Runner" : {
+ "run" : [
+ "bash -c \"if [[ `dirname %d` != .build ]]; then test -e .ackrc && grep -q -- '--ignore-dir=%d' .ackrc || echo '--ignore-dir=%d' >> .ackrc; fi; if [[ %d =~ ^%n-[.[:xdigit:]]+$ ]]; then rm -f .latest; ln -s %d .latest; fi\""
+ ]
+ }
+ },
"name" : "@Author::ETHER/Run::AfterBuild",
- "version" : "0.021"
+ "version" : "0.024"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::CheckStrictVersion",
+ "name" : "@Author::ETHER/CheckStrictVersion",
+ "version" : "0.001"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Check" : {
+ "untracked_files" : "die"
+ },
+ "Dist::Zilla::Role::Git::DirtyFiles" : {
+ "allow_dirty" : [],
+ "allow_dirty_match" : [],
+ "changelog" : "Changes"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/initial check",
- "version" : "2.020"
+ "version" : "2.023"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts",
+ "config" : {
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::CheckFor::MergeConflicts",
- "version" : "0.009"
+ "version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch",
+ "config" : {
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::CheckFor::CorrectBranch",
- "version" : "0.009"
+ "version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::Git::Remote::Check",
@@ -475,52 +579,139 @@
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@Author::ETHER/CheckPrereqsIndexed",
- "version" : "0.010"
+ "version" : "0.012"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@Author::ETHER/TestRelease",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Check" : {
+ "untracked_files" : "die"
+ },
+ "Dist::Zilla::Role::Git::DirtyFiles" : {
+ "allow_dirty" : [],
+ "allow_dirty_match" : [],
+ "changelog" : "Changes"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/after tests",
- "version" : "2.020"
+ "version" : "2.023"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::CheckIssues",
+ "name" : "@Author::ETHER/CheckIssues",
+ "version" : "0.002"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Author::ETHER/UploadToCPAN",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::CopyFilesFromRelease",
"name" : "@Author::ETHER/CopyFilesFromRelease",
- "version" : "0.001"
+ "version" : "0.002"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Run::AfterRelease",
+ "config" : {
+ "Dist::Zilla::Plugin::Run::Role::Runner" : {
+ "run" : [
+ "rm -f README.md"
+ ]
+ }
+ },
+ "name" : "@Author::ETHER/remove old READMEs",
+ "version" : "0.024"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Commit" : {
+ "add_files_in" : [
+ "."
+ ],
+ "commit_msg" : "%N-%v%t%n%n%c",
+ "time_zone" : "local"
+ },
+ "Dist::Zilla::Role::Git::DirtyFiles" : {
+ "allow_dirty" : [
+ "Changes",
+ "README.md",
+ "README.pod",
+ "LICENSE",
+ "CONTRIBUTING"
+ ],
+ "allow_dirty_match" : [],
+ "changelog" : "Changes"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::Commit",
- "version" : "2.020"
+ "version" : "2.023"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Tag" : {
+ "branch" : null,
+ "signed" : 0,
+ "tag" : "v2.11",
+ "tag_format" : "v%v%t",
+ "tag_message" : "v%v%t",
+ "time_zone" : "local"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::Tag",
- "version" : "2.020"
+ "version" : "2.023"
},
{
"class" : "Dist::Zilla::Plugin::GitHub::Update",
"name" : "@Author::ETHER/GitHub::Update",
- "version" : "0.36"
+ "version" : "0.38"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Push" : {
+ "push_to" : [
+ "origin"
+ ],
+ "remotes_must_exist" : 1
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Author::ETHER/Git::Push",
- "version" : "2.020"
+ "version" : "2.023"
},
{
- "class" : "Dist::Zilla::Plugin::InstallRelease",
- "name" : "@Author::ETHER/InstallRelease",
- "version" : "0.008"
+ "class" : "Dist::Zilla::Plugin::Run::AfterRelease",
+ "config" : {
+ "Dist::Zilla::Plugin::Run::Role::Runner" : {
+ "run" : "REDACTED"
+ }
+ },
+ "name" : "@Author::ETHER/install release",
+ "version" : "0.024"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ConfirmRelease",
+ "name" : "@Author::ETHER/ConfirmRelease",
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -530,17 +721,19 @@
"type" : "requires"
}
},
- "name" : "@Author::ETHER/via_options",
- "version" : "5.013"
- },
- {
- "class" : "Dist::Zilla::Plugin::ConfirmRelease",
- "name" : "@Author::ETHER/ConfirmRelease",
- "version" : "5.013"
+ "name" : "@Author::ETHER/bundle_options",
+ "version" : "5.020"
},
{
- "class" : "Dist::Zilla::Plugin::ContributorsFromGit",
- "name" : "ContributorsFromGit",
+ "class" : "Dist::Zilla::Plugin::Git::Contributors",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Contributors" : {
+ "include_authors" : "0",
+ "include_releaser" : "1",
+ "order_by" : "name"
+ }
+ },
+ "name" : "Git::Contributors",
"version" : "0.006"
},
{
@@ -552,7 +745,7 @@
}
},
"name" : "RuntimeRequires",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -563,57 +756,81 @@
}
},
"name" : "DevelopRequires",
- "version" : "5.013"
+ "version" : "5.020"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::OnlyCorePrereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::OnlyCorePrereqs" : {
+ "check_dual_life_versions" : "0",
+ "deprecated_ok" : "0",
+ "phases" : [
+ "configure",
+ "build",
+ "runtime"
+ ],
+ "skips" : [],
+ "starting_version" : "to be determined from perl prereq"
+ }
+ },
+ "name" : "OnlyCorePrereqs",
+ "version" : "0.017"
},
{
"class" : "Dist::Zilla::Plugin::Test::CleanNamespaces",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::CleanNamespaces" : {
+ "filename" : "xt/release/clean-namespaces.t",
+ "skips" : []
+ }
+ },
"name" : "Test::CleanNamespaces",
- "version" : "0.002"
+ "version" : "0.005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "5.013"
+ "version" : "5.020"
},
{
"class" : "Dist::Zilla::Plugin::VerifyPhases",
"name" : "@Author::ETHER/PHASE VERIFICATION",
- "version" : "0.002"
+ "version" : "0.003"
}
],
"zilla" : {
@@ -621,19 +838,20 @@
"config" : {
"is_trial" : "0"
},
- "version" : "5.013"
+ "version" : "5.020"
}
},
"x_authority" : "cpan:SARTAK",
"x_contributors" : [
"Aaron Crane <arc@cpan.org>",
"David Steinbrunner <dsteinbrunner@pobox.com>",
+ "gfx <gfuji@cpan.org>",
"Graham Knop <haarg@haarg.org>",
"Justin Hunter <justin.d.hunter@gmail.com>",
"Karen Etheridge <ether@cpan.org>",
+ "mannih <github@lxxi.org>",
"Peter Rabbitson <ribasushi@cpan.org>",
- "Shawn M Moore <code@sartak.org>",
- "gfx <gfuji@cpan.org>"
+ "Shawn M Moore <code@sartak.org>"
]
}
@@ -4,16 +4,20 @@ author:
- 'Shawn M Moore <sartak@gmail.com>'
build_requires:
ExtUtils::MakeMaker: '0'
- File::Spec::Functions: '0'
- List::Util: '0'
+ File::Spec: '0'
Test::Fatal: '0'
Test::More: '0'
+ Test::Requires: '0'
if: '0'
- version: '0'
configure_requires:
- ExtUtils::MakeMaker: '6.30'
+ ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380'
+generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060'
+keywords:
+ - method
+ - wrap
+ - modification
+ - patch
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,12 +27,10 @@ no_index:
directory:
- t
- xt
- - examples
- - share
provides:
Class::Method::Modifiers:
file: lib/Class/Method/Modifiers.pm
- version: '2.10'
+ version: '2.11'
requires:
B: '0'
Carp: '0'
@@ -41,19 +43,26 @@ resources:
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Class-Method-Modifiers
homepage: https://github.com/moose/Class-Method-Modifiers
repository: https://github.com/moose/Class-Method-Modifiers.git
-version: '2.10'
+version: '2.11'
x_Dist_Zilla:
perl:
- version: '5.019009'
+ version: '5.021002'
plugins:
-
class: Dist::Zilla::Plugin::PodVersion
name: PodVersion
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Git::NextVersion
+ config:
+ Dist::Zilla::Plugin::Git::NextVersion:
+ first_version: '0.001'
+ version_by_branch: '0'
+ version_regexp: (?^:^v([\d._]+)(-TRIAL)?$)
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::NextVersion'
- version: '2.020'
+ version: '2.023'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
@@ -64,8 +73,8 @@ x_Dist_Zilla:
- Dist::Zilla::PluginBundle::Author::ETHER
phase: build
skip: []
- name: '@Author::ETHER/build'
- version: '0.020'
+ name: '@Author::ETHER/stale modules, build'
+ version: '0.024'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
@@ -75,44 +84,53 @@ x_Dist_Zilla:
modules: []
phase: release
skip: []
- name: '@Author::ETHER/release'
- version: '0.020'
+ name: '@Author::ETHER/stale modules, release'
+ version: '0.024'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::ETHER/ExecDir'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::ETHER/ShareDir'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FileFinder::ByName
name: '@Author::ETHER/Examples'
- version: '5.013'
+ version: '5.020'
+ -
+ class: Dist::Zilla::Plugin::FileFinder::ByName
+ name: '@Author::ETHER/ExtraTestFiles'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Git::GatherDir
+ config:
+ Dist::Zilla::Plugin::Git::GatherDir:
+ include_untracked: '0'
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::GatherDir'
- version: '2.020'
+ version: '2.023'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::ETHER/MetaYAML'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Author::ETHER/MetaJSON'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::License
name: '@Author::ETHER/License'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Readme
name: '@Author::ETHER/Readme'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::ETHER/Manifest'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::GenerateFile::ShareDir
config:
@@ -120,6 +138,7 @@ x_Dist_Zilla:
destination_filename: CONTRIBUTING
dist: Dist-Zilla-PluginBundle-Author-ETHER
encoding: UTF-8
+ has_xs: 0
source_filename: CONTRIBUTING
name: '@Author::ETHER/generate CONTRIBUTING'
version: '0.005'
@@ -127,25 +146,32 @@ x_Dist_Zilla:
class: Dist::Zilla::Plugin::Test::Compile
config:
Dist::Zilla::Plugin::Test::Compile:
+ bail_out_on_fail: '1'
+ fail_on_warning: author
+ fake_home: '0'
filename: xt/author/00-compile.t
module_finder:
- ':InstallModules'
+ needs_display: '0'
+ phase: develop
script_finder:
- ':ExecFiles'
- '@Author::ETHER/Examples'
+ skips: []
name: '@Author::ETHER/Test::Compile'
- version: '2.039'
+ version: '2.045'
-
class: Dist::Zilla::Plugin::Test::NoTabs
config:
Dist::Zilla::Plugin::Test::NoTabs:
- module_finder:
+ finder:
- ':InstallModules'
- script_finder:
- ':ExecFiles'
- '@Author::ETHER/Examples'
+ - ':TestFiles'
+ - '@Author::ETHER/ExtraTestFiles'
name: '@Author::ETHER/Test::NoTabs'
- version: '0.06'
+ version: '0.08'
-
class: Dist::Zilla::Plugin::EOLTests
name: '@Author::ETHER/EOLTests'
@@ -153,11 +179,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::MetaTests
name: '@Author::ETHER/MetaTests'
- version: '5.013'
- -
- class: Dist::Zilla::Plugin::Test::Version
- name: '@Author::ETHER/Test::Version'
- version: '0.002004'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Test::CPAN::Changes
name: '@Author::ETHER/Test::CPAN::Changes'
@@ -167,41 +189,40 @@ x_Dist_Zilla:
name: '@Author::ETHER/Test::ChangesHasContent'
version: '0.006'
-
- class: Dist::Zilla::Plugin::Test::UnusedVars
- name: '@Author::ETHER/Test::UnusedVars'
- version: '2.000005'
- -
class: Dist::Zilla::Plugin::Test::MinimumVersion
name: '@Author::ETHER/Test::MinimumVersion'
version: '2.000005'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::ETHER/PodSyntaxTests'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Author::ETHER/PodCoverageTests'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Test::PodSpelling
name: '@Author::ETHER/Test::PodSpelling'
- version: '2.006006'
+ version: '2.006008'
-
class: Dist::Zilla::Plugin::Test::Pod::No404s
name: '@Author::ETHER/Test::Pod::No404s'
version: '1.001'
-
class: Dist::Zilla::Plugin::Test::Kwalitee
+ config:
+ Dist::Zilla::Plugin::Test::Kwalitee:
+ skiptest: []
name: '@Author::ETHER/Test::Kwalitee'
- version: '2.07'
+ version: '2.08'
-
class: Dist::Zilla::Plugin::MojibakeTests
name: '@Author::ETHER/MojibakeTests'
- version: '0.5'
+ version: '0.7'
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@Author::ETHER/Test::ReportPrereqs'
- version: '0.013'
+ version: '0.019'
-
class: Dist::Zilla::Plugin::Test::Portability
name: '@Author::ETHER/Test::Portability'
@@ -213,7 +234,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@Author::ETHER/PkgVersion'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Authority
name: '@Author::ETHER/Authority'
@@ -221,15 +242,15 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::NextRelease
name: '@Author::ETHER/NextRelease'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::ReadmeAnyFromPod
name: '@Author::ETHER/ReadmeAnyFromPod'
- version: '0.133360'
+ version: '0.142250'
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@Author::ETHER/GithubMeta'
- version: '0.42'
+ version: '0.46'
-
class: Dist::Zilla::Plugin::AutoMetaResources
name: '@Author::ETHER/AutoMetaResources'
@@ -237,7 +258,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::MetaNoIndex
name: '@Author::ETHER/MetaNoIndex'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::MetaProvides::Package
config:
@@ -248,25 +269,45 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '5.013'
+ version: '5.020'
Dist::Zilla::Role::MetaProvider::Provider:
inherit_missing: '1'
inherit_version: '1'
meta_noindex: '1'
name: '@Author::ETHER/MetaProvides::Package'
- version: '2.000001'
+ version: '2.000004'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::ETHER/MetaConfig'
- version: '5.013'
+ version: '5.020'
+ -
+ class: Dist::Zilla::Plugin::Keywords
+ config:
+ Dist::Zilla::Plugin::Keywords:
+ keywords:
+ - method
+ - wrap
+ - modification
+ - patch
+ name: '@Author::ETHER/Keywords'
+ version: '0.006'
+ -
+ class: Dist::Zilla::Plugin::Git::Contributors
+ config:
+ Dist::Zilla::Plugin::Git::Contributors:
+ include_authors: '0'
+ include_releaser: '1'
+ order_by: commits
+ name: '@Author::ETHER/Git::Contributors'
+ version: '0.006'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Author::ETHER/AutoPrereqs'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Prereqs::AuthorDeps
name: '@Author::ETHER/Prereqs::AuthorDeps'
- version: '0.002'
+ version: '0.003'
-
class: Dist::Zilla::Plugin::MinimumPerl
name: '@Author::ETHER/MinimumPerl'
@@ -276,29 +317,27 @@ x_Dist_Zilla:
config:
Dist::Zilla::Plugin::Prereqs:
phase: develop
- type: requires
- name: '@Author::ETHER/installer_requirements'
- version: '5.013'
- -
- class: Dist::Zilla::Plugin::Prereqs
- config:
- Dist::Zilla::Plugin::Prereqs:
- phase: develop
type: recommends
name: '@Author::ETHER/pluginbundle_version'
- version: '5.013'
- -
- class: Dist::Zilla::Plugin::RunExtraTests
- name: '@Author::ETHER/RunExtraTests'
- version: '0.018'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::MakeMaker
+ config:
+ Dist::Zilla::Role::TestRunner:
+ default_jobs: 9
name: '@Author::ETHER/MakeMaker'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::InstallGuide
name: '@Author::ETHER/InstallGuide'
- version: '1.200002'
+ version: '1.200003'
+ -
+ class: Dist::Zilla::Plugin::RunExtraTests
+ config:
+ Dist::Zilla::Role::TestRunner:
+ default_jobs: 9
+ name: '@Author::ETHER/RunExtraTests'
+ version: '0.022'
-
class: Dist::Zilla::Plugin::CheckSelfDependency
config:
@@ -309,20 +348,43 @@ x_Dist_Zilla:
version: '0.007'
-
class: Dist::Zilla::Plugin::Run::AfterBuild
+ config:
+ Dist::Zilla::Plugin::Run::Role::Runner:
+ run:
+ - "bash -c \"if [[ `dirname %d` != .build ]]; then test -e .ackrc && grep -q -- '--ignore-dir=%d' .ackrc || echo '--ignore-dir=%d' >> .ackrc; fi; if [[ %d =~ ^%n-[.[:xdigit:]]+$ ]]; then rm -f .latest; ln -s %d .latest; fi\""
name: '@Author::ETHER/Run::AfterBuild'
- version: '0.021'
+ version: '0.024'
+ -
+ class: Dist::Zilla::Plugin::CheckStrictVersion
+ name: '@Author::ETHER/CheckStrictVersion'
+ version: '0.001'
-
class: Dist::Zilla::Plugin::Git::Check
+ config:
+ Dist::Zilla::Plugin::Git::Check:
+ untracked_files: die
+ Dist::Zilla::Role::Git::DirtyFiles:
+ allow_dirty: []
+ allow_dirty_match: []
+ changelog: Changes
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/initial check'
- version: '2.020'
+ version: '2.023'
-
class: Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts
+ config:
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::CheckFor::MergeConflicts'
- version: '0.009'
+ version: '0.011'
-
class: Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch
+ config:
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::CheckFor::CorrectBranch'
- version: '0.009'
+ version: '0.011'
-
class: Dist::Zilla::Plugin::Git::Remote::Check
name: '@Author::ETHER/Git::Remote::Check'
@@ -330,58 +392,121 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@Author::ETHER/CheckPrereqsIndexed'
- version: '0.010'
+ version: '0.012'
-
class: Dist::Zilla::Plugin::TestRelease
name: '@Author::ETHER/TestRelease'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Git::Check
+ config:
+ Dist::Zilla::Plugin::Git::Check:
+ untracked_files: die
+ Dist::Zilla::Role::Git::DirtyFiles:
+ allow_dirty: []
+ allow_dirty_match: []
+ changelog: Changes
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/after tests'
- version: '2.020'
+ version: '2.023'
+ -
+ class: Dist::Zilla::Plugin::CheckIssues
+ name: '@Author::ETHER/CheckIssues'
+ version: '0.002'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Author::ETHER/UploadToCPAN'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::CopyFilesFromRelease
name: '@Author::ETHER/CopyFilesFromRelease'
- version: '0.001'
+ version: '0.002'
+ -
+ class: Dist::Zilla::Plugin::Run::AfterRelease
+ config:
+ Dist::Zilla::Plugin::Run::Role::Runner:
+ run:
+ - 'rm -f README.md'
+ name: '@Author::ETHER/remove old READMEs'
+ version: '0.024'
-
class: Dist::Zilla::Plugin::Git::Commit
+ config:
+ Dist::Zilla::Plugin::Git::Commit:
+ add_files_in:
+ - .
+ commit_msg: '%N-%v%t%n%n%c'
+ time_zone: local
+ Dist::Zilla::Role::Git::DirtyFiles:
+ allow_dirty:
+ - Changes
+ - README.md
+ - README.pod
+ - LICENSE
+ - CONTRIBUTING
+ allow_dirty_match: []
+ changelog: Changes
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::Commit'
- version: '2.020'
+ version: '2.023'
-
class: Dist::Zilla::Plugin::Git::Tag
+ config:
+ Dist::Zilla::Plugin::Git::Tag:
+ branch: ~
+ signed: 0
+ tag: v2.11
+ tag_format: v%v%t
+ tag_message: v%v%t
+ time_zone: local
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::Tag'
- version: '2.020'
+ version: '2.023'
-
class: Dist::Zilla::Plugin::GitHub::Update
name: '@Author::ETHER/GitHub::Update'
- version: '0.36'
+ version: '0.38'
-
class: Dist::Zilla::Plugin::Git::Push
+ config:
+ Dist::Zilla::Plugin::Git::Push:
+ push_to:
+ - origin
+ remotes_must_exist: 1
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Author::ETHER/Git::Push'
- version: '2.020'
+ version: '2.023'
-
- class: Dist::Zilla::Plugin::InstallRelease
- name: '@Author::ETHER/InstallRelease'
- version: '0.008'
+ class: Dist::Zilla::Plugin::Run::AfterRelease
+ config:
+ Dist::Zilla::Plugin::Run::Role::Runner:
+ run: REDACTED
+ name: '@Author::ETHER/install release'
+ version: '0.024'
+ -
+ class: Dist::Zilla::Plugin::ConfirmRelease
+ name: '@Author::ETHER/ConfirmRelease'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Prereqs
config:
Dist::Zilla::Plugin::Prereqs:
phase: develop
type: requires
- name: '@Author::ETHER/via_options'
- version: '5.013'
+ name: '@Author::ETHER/bundle_options'
+ version: '5.020'
-
- class: Dist::Zilla::Plugin::ConfirmRelease
- name: '@Author::ETHER/ConfirmRelease'
- version: '5.013'
- -
- class: Dist::Zilla::Plugin::ContributorsFromGit
- name: ContributorsFromGit
+ class: Dist::Zilla::Plugin::Git::Contributors
+ config:
+ Dist::Zilla::Plugin::Git::Contributors:
+ include_authors: '0'
+ include_releaser: '1'
+ order_by: name
+ name: Git::Contributors
version: '0.006'
-
class: Dist::Zilla::Plugin::Prereqs
@@ -390,7 +515,7 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: RuntimeRequires
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -398,59 +523,78 @@ x_Dist_Zilla:
phase: develop
type: requires
name: DevelopRequires
- version: '5.013'
+ version: '5.020'
+ -
+ class: Dist::Zilla::Plugin::OnlyCorePrereqs
+ config:
+ Dist::Zilla::Plugin::OnlyCorePrereqs:
+ check_dual_life_versions: '0'
+ deprecated_ok: '0'
+ phases:
+ - configure
+ - build
+ - runtime
+ skips: []
+ starting_version: 'to be determined from perl prereq'
+ name: OnlyCorePrereqs
+ version: '0.017'
-
class: Dist::Zilla::Plugin::Test::CleanNamespaces
+ config:
+ Dist::Zilla::Plugin::Test::CleanNamespaces:
+ filename: xt/release/clean-namespaces.t
+ skips: []
name: Test::CleanNamespaces
- version: '0.002'
+ version: '0.005'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '5.013'
+ version: '5.020'
-
class: Dist::Zilla::Plugin::VerifyPhases
name: '@Author::ETHER/PHASE VERIFICATION'
- version: '0.002'
+ version: '0.003'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
- version: '5.013'
+ version: '5.020'
x_authority: cpan:SARTAK
x_contributors:
- 'Aaron Crane <arc@cpan.org>'
- 'David Steinbrunner <dsteinbrunner@pobox.com>'
+ - 'gfx <gfuji@cpan.org>'
- 'Graham Knop <haarg@haarg.org>'
- 'Justin Hunter <justin.d.hunter@gmail.com>'
- 'Karen Etheridge <ether@cpan.org>'
+ - 'mannih <github@lxxi.org>'
- 'Peter Rabbitson <ribasushi@cpan.org>'
- 'Shawn M Moore <code@sartak.org>'
- - 'gfx <gfuji@cpan.org>'
@@ -1,20 +1,19 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.013.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020.
use strict;
use warnings;
use 5.006;
-use ExtUtils::MakeMaker 6.30;
+use ExtUtils::MakeMaker ;
my %WriteMakefileArgs = (
"ABSTRACT" => "Provides Moose-like method modifiers",
"AUTHOR" => "Shawn M Moore <sartak\@gmail.com>",
- "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
- "ExtUtils::MakeMaker" => "6.30"
+ "ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Class-Method-Modifiers",
"EXE_FILES" => [],
@@ -30,14 +29,13 @@ my %WriteMakefileArgs = (
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
- "File::Spec::Functions" => 0,
- "List::Util" => 0,
+ "File::Spec" => 0,
"Test::Fatal" => 0,
"Test::More" => 0,
- "if" => 0,
- "version" => 0
+ "Test::Requires" => 0,
+ "if" => 0
},
- "VERSION" => "2.10",
+ "VERSION" => "2.11",
"test" => {
"TESTS" => "t/*.t"
}
@@ -49,14 +47,13 @@ my %FallbackPrereqs = (
"Carp" => 0,
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
- "File::Spec::Functions" => 0,
- "List::Util" => 0,
+ "File::Spec" => 0,
"Test::Fatal" => 0,
"Test::More" => 0,
+ "Test::Requires" => 0,
"base" => 0,
"if" => 0,
"strict" => 0,
- "version" => 0,
"warnings" => 0
);
@@ -1,7 +1,7 @@
This archive contains the distribution Class-Method-Modifiers,
-version 2.10:
+version 2.11:
Provides Moose-like method modifiers
@@ -11,5 +11,5 @@ 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 README file was generated by Dist::Zilla::Plugin::Readme v5.013.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.020.
@@ -1,243 +0,0 @@
-# NAME
-
-Class::Method::Modifiers - provides Moose-like method modifiers
-
-# VERSION
-
-version 2.10
-
-# SYNOPSIS
-
- package Child;
- use parent 'Parent';
- use Class::Method::Modifiers;
-
- sub new_method { }
-
- before 'old_method' => sub {
- carp "old_method is deprecated, use new_method";
- };
-
- around 'other_method' => sub {
- my $orig = shift;
- my $ret = $orig->(@_);
- return $ret =~ /\d/ ? $ret : lc $ret;
- };
-
- after 'private', 'protected' => sub {
- debug "finished calling a dangerous method";
- };
-
- use Class::Method::Modifiers qw(fresh);
-
- fresh 'not_in_hierarchy' => sub {
- warn "freshly added method\n";
- };
-
-# DESCRIPTION
-
-Method modifiers are a convenient feature from the CLOS (Common Lisp Object
-System) world.
-
-In its most basic form, a method modifier is just a method that calls
-`$self->SUPER::foo(@_)`. I for one have trouble remembering that exact
-invocation, so my classes seldom re-dispatch to their base classes. Very bad!
-
-`Class::Method::Modifiers` provides three modifiers: `before`, `around`, and
-`after`. `before` and `after` are run just before and after the method they
-modify, but can not really affect that original method. `around` is run in
-place of the original method, with a hook to easily call that original method.
-See the `MODIFIERS` section for more details on how the particular modifiers
-work.
-
-One clear benefit of using `Class::Method::Modifiers` is that you can define
-multiple modifiers in a single namespace. These separate modifiers don't need
-to know about each other. This makes top-down design easy. Have a base class
-that provides the skeleton methods of each operation, and have plugins modify
-those methods to flesh out the specifics.
-
-Parent classes need not know about `Class::Method::Modifiers`. This means you
-should be able to modify methods in _any_ subclass. See
-[Term::VT102::ZeroBased](https://metacpan.org/pod/Term::VT102::ZeroBased) for an example of subclassing with
-`ClasS::Method::Modifiers`.
-
-In short, `Class::Method::Modifiers` solves the problem of making sure you
-call `$self->SUPER::foo(@_)`, and provides a cleaner interface for it.
-
-As of version 1.00, `Class::Method::Modifiers` is faster in some cases than
-[Moose](https://metacpan.org/pod/Moose). See `benchmark/method_modifiers.pl` in the [Moose](https://metacpan.org/pod/Moose) distribution.
-
-`Class::Method::Modifiers` also provides an additional "modifier" type,
-`fresh`; see below.
-
-# MODIFIERS
-
-## before method(s) => sub { ... }
-
-`before` is called before the method it is modifying. Its return value is
-totally ignored. It receives the same `@_` as the method it is modifying
-would have received. You can modify the `@_` the original method will receive
-by changing `$_[0]` and friends (or by changing anything inside a reference).
-This is a feature!
-
-## after method(s) => sub { ... }
-
-`after` is called after the method it is modifying. Its return value is
-totally ignored. It receives the same `@_` as the method it is modifying
-received, mostly. The original method can modify `@_` (such as by changing
-`$_[0]` or references) and `after` will see the modified version. If you
-don't like this behavior, specify both a `before` and `after`, and copy the
-`@_` during `before` for `after` to use.
-
-## around method(s) => sub { ... }
-
-`around` is called instead of the method it is modifying. The method you're
-overriding is passed in as the first argument (called `$orig` by convention).
-Watch out for contextual return values of `$orig`.
-
-You can use `around` to:
-
-- Pass `$orig` a different `@_`
-
- around 'method' => sub {
- my $orig = shift;
- my $self = shift;
- $orig->($self, reverse @_);
- };
-
-- Munge the return value of `$orig`
-
- around 'method' => sub {
- my $orig = shift;
- ucfirst $orig->(@_);
- };
-
-- Avoid calling `$orig` -- conditionally
-
- around 'method' => sub {
- my $orig = shift;
- return $orig->(@_) if time() % 2;
- return "no dice, captain";
- };
-
-## fresh method(s) => sub { ... };
-
-Unlike the other modifiers, this does not modify an existing method.
-Ordinarily, `fresh` merely installs the coderef as a method in the
-appropriate class; but if the class hierarchy already contains a method of
-the same name, an exception is thrown. The idea of this "modifier" is to
-increase safety when subclassing. Suppose you're writing a subclass of a
-class Some::Base, and adding a new method:
-
- package My::SubclassOf::C;
- use base 'Some::Base';
-
- sub foo { ... }
-
-If a later version of Some::Base also adds a new method named `foo`, your
-method will shadow that method. Alternatively, you can use `fresh`
-to install the additional method into your subclass:
-
- package My::SubclassOf::C;
- use base 'Some::Base';
-
- use Class::Method::Modifiers 'fresh';
-
- fresh 'foo' => sub { ... };
-
-Now upgrading Some::Base to a version with a conflicting `foo` method will
-cause an exception to be thrown; seeing that error will give you the
-opportunity to fix the problem (perhaps by picking a different method name
-in your subclass, or similar).
-
-Creating fresh methods with `install_modifier` (see below) provides a way
-to get similar safety benefits when adding local monkeypatches to existing
-classes; see [http://aaroncrane.co.uk/talks/monkey\_patching\_subclassing/](http://aaroncrane.co.uk/talks/monkey_patching_subclassing/).
-
-For API compatibility reasons, this function is exported only when you ask
-for it specifically, or for `:all`.
-
-## install\_modifier $package, $type, @names, sub { ... }
-
-`install_modifier` is like `before`, `after`, `around`, and `fresh` but
-it also lets you dynamically select the modifier type ('before', 'after',
-'around', 'fresh')
-and package that the method modifiers are installed into. This expert-level
-function is exported only when you ask for it specifically, or for `:all`.
-
-# NOTES
-
-All three normal modifiers; `before`, `after`, and `around`; are exported
-into your namespace by default. You may `use Class::Method::Modifiers ()` to
-avoid thrashing your namespace. I may steal more features from [Moose](https://metacpan.org/pod/Moose), namely
-`super`, `override`, `inner`, `augment`, and whatever the [Moose](https://metacpan.org/pod/Moose) folks
-come up with next.
-
-Note that the syntax and semantics for these modifiers is directly borrowed
-from [Moose](https://metacpan.org/pod/Moose) (the implementations, however, are not).
-
-[Class::Trigger](https://metacpan.org/pod/Class::Trigger) shares a few similarities with `Class::Method::Modifiers`,
-and they even have some overlap in purpose -- both can be used to implement
-highly pluggable applications. The difference is that [Class::Trigger](https://metacpan.org/pod/Class::Trigger)
-provides a mechanism for easily letting parent classes to invoke hooks defined
-by other code. `Class::Method::Modifiers` provides a way of
-overriding/augmenting methods safely, and the parent class need not know about
-it.
-
-## :lvalue METHODS
-
-When adding `before` or `after` modifiers, the wrapper method will be
-an lvalue method if the wrapped sub is, and assigning to the method
-will propagate to the wrapped method as expected. For `around`
-modifiers, it is the modifier sub that determines if the wrapper
-method is an lvalue method.
-
-# CAVEATS
-
-It is erroneous to modify a method that doesn't exist in your class's
-inheritance hierarchy. If this occurs, an exception will be thrown when
-the modifier is defined.
-
-It doesn't yet play well with `caller`. There are some `TODO` tests for this.
-Don't get your hopes up though!
-
-Applying modifiers to array lvalue methods is not fully supported. Attempting
-to assign to an array lvalue method that has an `after` modifier applied will
-result in an error. Array lvalue methods are not well supported by perl in
-general, and should be avoided.
-
-# MAJOR VERSION CHANGES
-
-This module was bumped to 1.00 following a complete reimplementation, to
-indicate breaking backwards compatibility. The "guard" modifier was removed,
-and the internals are completely different.
-
-The new version is a few times faster with half the code. It's now even faster
-than Moose.
-
-Any code that just used modifiers should not change in behavior, except to
-become more correct. And, of course, faster. :)
-
-# SEE ALSO
-
-[Class::Method::Modifiers::Fast](https://metacpan.org/pod/Class::Method::Modifiers::Fast)
-[Moose](https://metacpan.org/pod/Moose), [Class::Trigger](https://metacpan.org/pod/Class::Trigger), [Class::MOP::Method::Wrapped](https://metacpan.org/pod/Class::MOP::Method::Wrapped), [MRO::Compat](https://metacpan.org/pod/MRO::Compat),
-CLOS
-
-# AUTHOR
-
-Shawn M Moore, `sartak@gmail.com`
-
-# ACKNOWLEDGEMENTS
-
-Thanks to Stevan Little for [Moose](https://metacpan.org/pod/Moose), I would never have known about
-method modifiers otherwise.
-
-Thanks to Matt Trout and Stevan Little for their advice.
-
-# COPYRIGHT AND LICENSE
-
-Copyright 2007-2009 Shawn M Moore.
-
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
@@ -12,13 +12,24 @@ license = Perl_5
installer = MakeMaker ; MBT is not yet 5.6-friendly
Authority.authority = cpan:SARTAK
Test::MinimumVersion.max_target_perl = 5.006000
+Test::ReportPrereqs.include[0] = Moose
-[ContributorsFromGit]
+; authordep Pod::Weaver::Section::Contributors ; TODO - when weaving pod
+
+[Git::Contributors]
[Prereqs / RuntimeRequires]
Exporter = 0
[Prereqs / DevelopRequires]
Test::Warnings = 0
+Moose = 0
+Perl::MinimumVersion = 1.35
+
+[OnlyCorePrereqs]
+phase = configure
+phase = build
+phase = runtime
+check_dual_life_versions = 0
[Test::CleanNamespaces]
@@ -4,13 +4,14 @@ package Class::Method::Modifiers;
BEGIN {
$Class::Method::Modifiers::AUTHORITY = 'cpan:SARTAK';
}
-# git description: v2.09-5-gb272828
-$Class::Method::Modifiers::VERSION = '2.10';
+# git description: v2.10-10-gcae27a4
+$Class::Method::Modifiers::VERSION = '2.11';
# ABSTRACT: Provides Moose-like method modifiers
+# KEYWORDS: method wrap modification patch
# vim: set ts=8 sw=4 tw=78 et :
# work around https://rt.cpan.org/Ticket/Display.html?id=89173
-use base ('Exp'.'orter');
+use base 'Exporter';
our @EXPORT = qw(before after around);
our @EXPORT_OK = (@EXPORT, qw(fresh install_modifier));
@@ -231,7 +232,7 @@ Class::Method::Modifiers - provides Moose-like method modifiers
=head1 VERSION
-version 2.10
+version 2.11
=head1 SYNOPSIS
@@ -302,7 +303,14 @@ C<fresh>; see below.
=head1 MODIFIERS
-=head2 before method(s) => sub { ... }
+All modifiers let you modify one or multiple methods at a time. The names of
+multiple methods can be provided as a list or as an array-reference. Examples:
+
+ before 'method' => sub { ... };
+ before 'method1', 'method2' => sub { ... };
+ before [ 'method1', 'method2' ] => sub { ... };
+
+=head2 before method(s) => sub { ... };
C<before> is called before the method it is modifying. Its return value is
totally ignored. It receives the same C<@_> as the method it is modifying
@@ -310,7 +318,7 @@ would have received. You can modify the C<@_> the original method will receive
by changing C<$_[0]> and friends (or by changing anything inside a reference).
This is a feature!
-=head2 after method(s) => sub { ... }
+=head2 after method(s) => sub { ... };
C<after> is called after the method it is modifying. Its return value is
totally ignored. It receives the same C<@_> as the method it is modifying
@@ -319,7 +327,7 @@ C<$_[0]> or references) and C<after> will see the modified version. If you
don't like this behavior, specify both a C<before> and C<after>, and copy the
C<@_> during C<before> for C<after> to use.
-=head2 around method(s) => sub { ... }
+=head2 around method(s) => sub { ... };
C<around> is called instead of the method it is modifying. The method you're
overriding is passed in as the first argument (called C<$orig> by convention).
@@ -356,6 +364,8 @@ You can use C<around> to:
=head2 fresh method(s) => sub { ... };
+(Available since version 2.00)
+
Unlike the other modifiers, this does not modify an existing method.
Ordinarily, C<fresh> merely installs the coderef as a method in the
appropriate class; but if the class hierarchy already contains a method of
@@ -0,0 +1,78 @@
+do { my $x = {
+ 'configure' => {
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0'
+ }
+ },
+ 'develop' => {
+ 'recommends' => {
+ 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.069'
+ },
+ 'requires' => {
+ 'Dist::Zilla' => '5',
+ 'Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch' => '0.004',
+ 'Dist::Zilla::Plugin::Git::Commit' => '2.020',
+ 'Dist::Zilla::Plugin::Git::Contributors' => '0.004',
+ 'Dist::Zilla::Plugin::Git::GatherDir' => '2.016',
+ 'Dist::Zilla::Plugin::GitHub::Update' => '0',
+ 'Dist::Zilla::Plugin::GithubMeta' => '0',
+ 'Dist::Zilla::Plugin::Keywords' => '0.004',
+ 'Dist::Zilla::Plugin::MakeMaker' => '0',
+ 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.15000002',
+ 'Dist::Zilla::Plugin::NextRelease' => '4.300018',
+ 'Dist::Zilla::Plugin::OnlyCorePrereqs' => '0',
+ 'Dist::Zilla::Plugin::PkgVersion' => '5.010',
+ 'Dist::Zilla::Plugin::PodVersion' => '0',
+ 'Dist::Zilla::Plugin::Prereqs' => '0',
+ 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0.142180',
+ 'Dist::Zilla::Plugin::RunExtraTests' => '0.019',
+ 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0.008',
+ 'Dist::Zilla::Plugin::Test::CleanNamespaces' => '0',
+ 'Dist::Zilla::Plugin::Test::Compile' => '2.039',
+ 'Dist::Zilla::Plugin::Test::MinimumVersion' => '2.000003',
+ 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.025',
+ 'File::Spec' => '0',
+ 'IO::Handle' => '0',
+ 'IPC::Open3' => '0',
+ 'Moose' => '0',
+ 'Perl::MinimumVersion' => '1.35',
+ 'Pod::Coverage::TrustPod' => '0',
+ 'Test::CPAN::Changes' => '0.19',
+ 'Test::CPAN::Meta' => '0',
+ 'Test::CleanNamespaces' => '0.15',
+ 'Test::Kwalitee' => '1.21',
+ 'Test::More' => '0.94',
+ 'Test::NoTabs' => '0',
+ 'Test::Pod' => '1.41',
+ 'Test::Pod::Coverage' => '1.08',
+ 'Test::Spelling' => '0.12',
+ 'Test::Warnings' => '0'
+ }
+ },
+ 'runtime' => {
+ 'requires' => {
+ 'B' => '0',
+ 'Carp' => '0',
+ 'Exporter' => '0',
+ 'base' => '0',
+ 'perl' => '5.006',
+ 'strict' => '0',
+ 'warnings' => '0'
+ }
+ },
+ 'test' => {
+ 'recommends' => {
+ 'CPAN::Meta' => '2.120900'
+ },
+ 'requires' => {
+ 'ExtUtils::MakeMaker' => '0',
+ 'File::Spec' => '0',
+ 'Test::Fatal' => '0',
+ 'Test::More' => '0',
+ 'Test::Requires' => '0',
+ 'if' => '0'
+ }
+ }
+ };
+ $x;
+ }
\ No newline at end of file
@@ -3,194 +3,172 @@
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.019
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};
+ }
}
}
-}
-my %include = map {; $_ => 1 } qw(
+ return $collector;
+}
+my @include = qw(
+ Moose
);
-my %exclude = map {; $_ => 1 } qw(
+my @exclude = qw(
);
# Add static prereqs to the included modules list
-my $static_prereqs = do { my $x = {
- 'configure' => {
- 'requires' => {
- 'ExtUtils::MakeMaker' => '6.30'
- }
- },
- 'develop' => {
- 'recommends' => {
- 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.052'
- },
- 'requires' => {
- 'Dist::Zilla' => '5.013',
- 'Dist::Zilla::Plugin::ContributorsFromGit' => '0',
- 'Dist::Zilla::Plugin::GitHub::Update' => '0',
- 'Dist::Zilla::Plugin::GithubMeta' => '0',
- 'Dist::Zilla::Plugin::MakeMaker' => '0',
- 'Dist::Zilla::Plugin::PodVersion' => '0',
- 'Dist::Zilla::Plugin::Prereqs' => '0',
- 'Dist::Zilla::Plugin::Test::CleanNamespaces' => '0',
- 'Dist::Zilla::PluginBundle::Author::ETHER' => '0.025',
- 'File::Spec' => '0',
- 'IO::Handle' => '0',
- 'IPC::Open3' => '0',
- 'Pod::Coverage::TrustPod' => '0',
- 'Test::CPAN::Changes' => '0.19',
- 'Test::CPAN::Meta' => '0',
- 'Test::CleanNamespaces' => '>= 0.04, != 0.06',
- 'Test::Kwalitee' => '1.12',
- 'Test::More' => '0.94',
- 'Test::NoTabs' => '0',
- 'Test::Pod' => '1.41',
- 'Test::Pod::Coverage' => '1.08',
- 'Test::Warnings' => '0'
- }
- },
- 'runtime' => {
- 'requires' => {
- 'B' => '0',
- 'Carp' => '0',
- 'Exporter' => '0',
- 'base' => '0',
- 'perl' => '5.006',
- 'strict' => '0',
- 'warnings' => '0'
- }
- },
- 'test' => {
- 'recommends' => {
- 'CPAN::Meta' => '0',
- 'CPAN::Meta::Requirements' => '2.120900'
- },
- 'requires' => {
- 'ExtUtils::MakeMaker' => '0',
- 'File::Spec::Functions' => '0',
- 'List::Util' => '0',
- 'Test::Fatal' => '0',
- 'Test::More' => '0',
- 'if' => '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 ( 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";
- 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)";
- }
+ my $ml = _max( map { length $_->[0] } @reports );
+ my $wl = _max( map { length $_->[1] } @reports );
+ my $hl = _max( map { length $_->[2] } @reports );
+ splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl];
+
+ push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports;
+ 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;
@@ -4,10 +4,7 @@ use warnings;
use Test::More;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
-BEGIN {
- eval "require Moose"
- or plan skip_all => 'Test requires Moose';
-}
+use Test::Requires 'Moose';
# code for this sub is taken directly from
# Test::CleanNamespaces::build_namespaces_clean
@@ -2,7 +2,7 @@ use 5.006;
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.039
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.045
use Test::More 0.94 tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
@@ -2,7 +2,7 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006006
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006008
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -19,6 +19,8 @@ arc
David
Steinbrunner
dsteinbrunner
+gfx
+gfuji
Graham
Knop
haarg
@@ -28,12 +30,12 @@ justin
Karen
Etheridge
ether
+mannih
+github
Peter
Rabbitson
ribasushi
code
-gfx
-gfuji
lib
Class
Method
@@ -4,7 +4,7 @@ use Test::More tests => 2;
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '2.10';
+my $newver = '2.11';
my $trial_token = '-TRIAL';
SKIP: {
@@ -1,10 +1,10 @@
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::CleanNamespaces 0.002
+# this test was generated with Dist::Zilla::Plugin::Test::CleanNamespaces 0.005
use Test::More 0.94;
-use Test::CleanNamespaces 0.04;
+use Test::CleanNamespaces 0.15;
subtest all_namespaces_clean => sub { all_namespaces_clean() };
@@ -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.08
use strict;
use warnings;
-use Test::Kwalitee;
+use Test::More 0.88;
+use Test::Kwalitee 1.21 'kwalitee_ok';
+
+kwalitee_ok();
+
+done_testing;
@@ -1,13 +1,58 @@
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.06
+# this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.08
use Test::More 0.88;
use Test::NoTabs;
my @files = (
- 'lib/Class/Method/Modifiers.pm'
+ 'lib/Class/Method/Modifiers.pm',
+ 't/00-report-prereqs.dd',
+ 't/00-report-prereqs.t',
+ 't/000-load.t',
+ 't/001-error.t',
+ 't/002-cache.t',
+ 't/003-basic.t',
+ 't/004-around.t',
+ 't/005-return.t',
+ 't/010-before-args.t',
+ 't/011-after-args.t',
+ 't/012-around-args.t',
+ 't/020-multiple-inheritance.t',
+ 't/030-multiple-before.t',
+ 't/031-multiple-after.t',
+ 't/032-multiple-around.t',
+ 't/034-multiple-everything.t',
+ 't/035-multiple-everything-twice.t',
+ 't/040-twice-orig.t',
+ 't/041-modify-parent.t',
+ 't/051-undef-list-ctxt.t',
+ 't/060-caller.t',
+ 't/070-modify-multiple-at-once.t',
+ 't/080-multiple-modifiers.t',
+ 't/081-sub-and-modifier.t',
+ 't/090-diamond.t',
+ 't/100-class-mop-method-modifiers.t',
+ 't/110-namespace-clean.t',
+ 't/120-fresh.t',
+ 't/130-clean-underscore.t',
+ 't/140-lvalue.t',
+ 'xt/author/00-compile.t',
+ 'xt/author/pod-spell.t',
+ 'xt/release/changes_has_content.t',
+ 'xt/release/clean-namespaces.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/mojibake.t',
+ 'xt/release/no-tabs.t',
+ 'xt/release/pod-coverage.t',
+ 'xt/release/pod-no404s.t',
+ 'xt/release/pod-syntax.t',
+ 'xt/release/portability.t'
);
notabs_ok($_) foreach @files;
@@ -1,22 +0,0 @@
-use strict;
-use warnings;
-use Test::More;
-
-# generated by Dist::Zilla::Plugin::Test::Version 0.002004
-BEGIN { eval "use Test::Version; 1;" or die $@; }
-
-my @imports = ( 'version_all_ok' );
-
-my $params = {
- is_strict => 1,
- has_version => 1,
-};
-
-push @imports, $params
- if version->parse( $Test::Version::VERSION ) >= version->parse('1.002');
-
-
-Test::Version->import(@imports);
-
-version_all_ok;
-done_testing;
@@ -1,8 +0,0 @@
-#!perl
-
-use Test::More;
-
-eval "use Test::Vars";
-plan skip_all => "Test::Vars required for testing unused vars"
- if $@;
-all_vars_ok();