Skip to content

Commit

Permalink
Add missing prereqs to match use
Browse files Browse the repository at this point in the history
The kwalitee tests on
[CPANTS](http://cpants.cpanauthors.org/dist/Dist-Zilla-Plugin-GitHubREADME-Badge)
show that some modules are used but not declared as prerequisites.  This
change brings code up to date and thus closes the prereq_matches_use
CPANTS core issue for this distribution.
  • Loading branch information
Paul Cochrane committed Nov 9, 2016
1 parent bdd9125 commit 6765dd3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion META.json
Expand Up @@ -38,7 +38,10 @@
"runtime" : {
"requires" : {
"Dist::Zilla" : "0",
"Path::Tiny" : "0"
"Moose" : "0",
"Moose::Util::TypeConstraints" : "0",
"Path::Tiny" : "0",
"namespace::autoclean" : "0"
}
},
"test" : {
Expand Down
10 changes: 8 additions & 2 deletions Makefile.PL
Expand Up @@ -17,7 +17,10 @@ my %WriteMakefileArgs = (
"NAME" => "Dist::Zilla::Plugin::GitHubREADME::Badge",
"PREREQ_PM" => {
"Dist::Zilla" => 0,
"Path::Tiny" => 0
"Moose" => 0,
"Moose::Util::TypeConstraints" => 0,
"Path::Tiny" => 0,
"namespace::autoclean" => 0
},
"TEST_REQUIRES" => {
"Test::More" => "0.96"
Expand All @@ -31,8 +34,11 @@ my %WriteMakefileArgs = (

my %FallbackPrereqs = (
"Dist::Zilla" => 0,
"Moose" => 0,
"Moose::Util::TypeConstraints" => 0,
"Path::Tiny" => 0,
"Test::More" => "0.96"
"Test::More" => "0.96",
"namespace::autoclean" => 0
);


Expand Down
3 changes: 3 additions & 0 deletions cpanfile
@@ -1,5 +1,8 @@
requires 'Dist::Zilla';
requires 'Path::Tiny';
requires 'Moose';
requires 'Moose::Util::TypeConstraints';
requires 'namespace::autoclean';

on test => sub {
requires 'Test::More', '0.96';
Expand Down

0 comments on commit 6765dd3

Please sign in to comment.