Skip to content

Commit

Permalink
New prereq names
Browse files Browse the repository at this point in the history
  • Loading branch information
doherty committed Apr 12, 2011
1 parent bffe92f commit 82b1b6e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changelog for Dist::Zilla::PluginBundle::TestingMania

{{$NEXT}}
* New prereq names

0.006 2011-04-04
* Set default changelog; thanks to mjgardner
Expand Down
25 changes: 4 additions & 21 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,9 @@ copyright_year = 2010
version_regexp = ^v(.+)$
tag_format = v%v

[Prereqs] ; Note that we use [LatestPrereqs]!
Dist::Zilla::Plugin::CheckChangesTests = 0
Dist::Zilla::Plugin::CompileTests = 0
Dist::Zilla::Plugin::ConsistentVersionTest = 0
Dist::Zilla::Plugin::CriticTests = 0
Test::Perl::Critic = 0
Dist::Zilla::Plugin::DistManifestTests = 0
Dist::Zilla::Plugin::EOLTests = 0
Dist::Zilla::Plugin::HasVersionTests = 0
Dist::Zilla::Plugin::KwaliteeTests = 0
Dist::Zilla::Plugin::MetaTests = 0
Test::CPAN::Meta = 0
Dist::Zilla::Plugin::MinimumVersionTests = 0
Dist::Zilla::Plugin::NoTabsTests = 0
Dist::Zilla::Plugin::PodCoverageTests = 0
Pod::Coverage::TrustPod = 0
Dist::Zilla::Plugin::PodSyntaxTests = 0
Dist::Zilla::Plugin::PortabilityTests = 0
Dist::Zilla::Plugin::ProgCriticTests = 0
Dist::Zilla::Plugin::SynopsisTests = 0
Dist::Zilla::Plugin::UnusedVarsTests = 0
[Prereqs] ; Why are these here?
Test::Perl::Critic = 0
Test::CPAN::Meta = 0
Pod::Coverage::TrustPod = 0

[LatestPrereqs]
25 changes: 22 additions & 3 deletions lib/Dist/Zilla/PluginBundle/TestingMania.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ use warnings;
use 5.0100; # We use the smart match operator
# VERSION

use Dist::Zilla::Plugin::Test::CPAN::Changes qw();
use Dist::Zilla::Plugin::CheckChangesTests qw();
use Dist::Zilla::Plugin::CompileTests qw();
use Dist::Zilla::Plugin::ConsistentVersionTest qw();
use Dist::Zilla::Plugin::CriticTests qw();
use Dist::Zilla::Plugin::DistManifestTests qw();
use Dist::Zilla::Plugin::EOLTests qw();
use Dist::Zilla::Plugin::HasVersionTests qw();
use Dist::Zilla::Plugin::KwaliteeTests qw();
use Dist::Zilla::Plugin::MetaTests qw();
use Dist::Zilla::Plugin::MinimumVersionTests qw();
use Dist::Zilla::Plugin::NoTabsTests qw();
use Dist::Zilla::Plugin::PodCoverageTests qw();
use Dist::Zilla::Plugin::PodSyntaxTests qw();
use Dist::Zilla::Plugin::PortabilityTests qw();
use Dist::Zilla::Plugin::ProgCriticTests qw();
use Dist::Zilla::Plugin::SynopsisTests qw();
use Dist::Zilla::Plugin::UnusedVarsTests qw();

=head1 DESCRIPTION
This plugin bundle collects all the testing plugins for L<Dist::Zilla> which
Expand Down Expand Up @@ -128,7 +147,7 @@ variables. See L<Test::Vars> for details.
=item *
L<Dist::Zilla::Plugin::ChangesTests>, which checks your changelog for conformance
L<Dist::Zilla::Plugin::Test::CPAN::Changes>, which checks your changelog for conformance
with L<CPAN::Changes::Spec>. See L<Test::CPAN::Changes> for details.
=back
Expand Down Expand Up @@ -159,7 +178,7 @@ sub configure {
my $self = shift;

my %plugins = (
ChangesTests => 1,
'Test::CPAN::Changes' => 1,
CheckChangesTests => 0, # Finnicky and annoying
CompileTests => 1,
ConsistentVersionTest => 0, # Finnicky and annoying
Expand Down Expand Up @@ -188,7 +207,7 @@ sub configure {
$plugin ~~ @include or # plugins we already included
!$plugins{$plugin} # plugins in the list, but which we don't want to add
);
if ($plugin eq 'ChangesTests') {
if ($plugin eq 'Test::CPAN::Changes') {
push(@include, [ $plugin => { changelog => ($self->payload->{changelog} || 'Changes') } ])
unless $plugin ~~ @include or $plugin ~~ @skip;
next SKIP;
Expand Down

0 comments on commit 82b1b6e

Please sign in to comment.