# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039.
use strict;
use warnings;
use 5.010;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Check at build/release time if modules are out of date",
"AUTHOR" => "Karen Etheridge <ether\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"CPAN::Meta::Requirements" => "2.120620",
"ExtUtils::MakeMaker" => 0,
"Module::Metadata" => 0
},
"DISTNAME" => "Dist-Zilla-Plugin-PromptIfStale",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.010",
"NAME" => "Dist::Zilla::Plugin::PromptIfStale",
"PREREQ_PM" => {
"CPAN::DistnameInfo" => 0,
"Config::MVP::Section" => "2.200004",
"Cwd" => 0,
"Dist::Zilla" => "4.300039",
"Dist::Zilla::App" => 0,
"Dist::Zilla::Role::AfterBuild" => 0,
"Dist::Zilla::Role::BeforeBuild" => 0,
"Dist::Zilla::Role::BeforeRelease" => 0,
"Dist::Zilla::Util::AuthorDeps" => "5.021",
"Encode" => 0,
"HTTP::Headers" => 0,
"HTTP::Tiny" => 0,
"List::Util" => "1.33",
"Module::CoreList" => "5.20150214",
"Module::Metadata" => "1.000023",
"Module::Path" => "0.18",
"Moose" => 0,
"Moose::Util" => 0,
"Moose::Util::TypeConstraints" => 0,
"Parse::CPAN::Packages::Fast" => 0,
"Path::Tiny" => 0,
"Term::ANSIColor" => "3.00",
"Try::Tiny" => 0,
"YAML::Tiny" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"version" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Class::Method::Modifiers" => 0,
"Dist::Zilla::App::Tester" => 0,
"Dist::Zilla::Chrome::Test" => 0,
"Dist::Zilla::Role::Plugin" => 0,
"Dist::Zilla::Role::PluginBundle::Easy" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"File::pushd" => 0,
"Module::Runtime" => 0,
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"if" => 0,
"lib" => 0
},
"VERSION" => "0.046",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"CPAN::DistnameInfo" => 0,
"Class::Method::Modifiers" => 0,
"Config::MVP::Section" => "2.200004",
"Cwd" => 0,
"Dist::Zilla" => "4.300039",
"Dist::Zilla::App" => 0,
"Dist::Zilla::App::Tester" => 0,
"Dist::Zilla::Chrome::Test" => 0,
"Dist::Zilla::Role::AfterBuild" => 0,
"Dist::Zilla::Role::BeforeBuild" => 0,
"Dist::Zilla::Role::BeforeRelease" => 0,
"Dist::Zilla::Role::Plugin" => 0,
"Dist::Zilla::Role::PluginBundle::Easy" => 0,
"Dist::Zilla::Util::AuthorDeps" => "5.021",
"Encode" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"File::pushd" => 0,
"HTTP::Headers" => 0,
"HTTP::Tiny" => 0,
"List::Util" => "1.33",
"Module::CoreList" => "5.20150214",
"Module::Metadata" => "1.000023",
"Module::Path" => "0.18",
"Module::Runtime" => 0,
"Moose" => 0,
"Moose::Util" => 0,
"Moose::Util::TypeConstraints" => 0,
"Parse::CPAN::Packages::Fast" => 0,
"Path::Tiny" => 0,
"Term::ANSIColor" => "3.00",
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Try::Tiny" => 0,
"YAML::Tiny" => 0,
"if" => 0,
"lib" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"version" => 0,
"warnings" => 0
);
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.015
$WriteMakefileArgs{TEST_REQUIRES}{'IO::Pty'} = $FallbackPrereqs{'IO::Pty'} = '0'
if isnt_os('MSWin32');
# Dist::Zilla 5.033 has an insufficient Config::MVP prerequisite
$WriteMakefileArgs{PREREQ_PM}{'Dist::Zilla'} = $FallbackPrereqs{'Dist::Zilla'} = '5.034'
if has_module('Dist::Zilla') eq '5.033';
$WriteMakefileArgs{PREREQ_PM}{'Log::Dispatch'} = $FallbackPrereqs{'Log::Dispatch'} = '2.49'
if do { my $ldv = has_module('Log::Dispatch'); $ldv && $ldv > '2.46' && $ldv < '2.49' };
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.015
sub has_module {
my ($module, $version_or_range) = @_;
require Module::Metadata;
my $mmd = Module::Metadata->new_from_module($module);
return undef if not $mmd;
return $mmd->version($module) if not defined $version_or_range;
require CPAN::Meta::Requirements;
my $req = CPAN::Meta::Requirements->new;
$req->add_string_requirement($module => $version_or_range);
return 1 if $req->accepts_module($module => $mmd->version($module));
return 0;
}
sub isnt_os {
foreach my $os (@_) {
return 0 if $os eq $^O;
}
return 1;
}