From df5f0318e30bd90f863fedfc345898f088c42ebb Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Mon, 28 Nov 2016 01:56:53 -0700 Subject: [PATCH] work around DZP::TravisYML bug for now --- lib/Dist/Zilla/PluginBundle/Author/CCM.pm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm index 27b15b8..fd3da46 100644 --- a/lib/Dist/Zilla/PluginBundle/Author/CCM.pm +++ b/lib/Dist/Zilla/PluginBundle/Author/CCM.pm @@ -212,6 +212,27 @@ sub configure { say '[@Author::CCM] WARNING! WARNING! WARNING! *** You are in no_upload mode!! ***'; } + if (!$self->payload->{'TravisYML.support_builddir'}) { + # swap perl_version and perl_version_build because DZP::TravisYML got it backwards! + # https://github.com/SineSwiper/Dist-Zilla-TravisCI/pull/40 + + my $tmp = $self->payload->{'TravisYML.perl_version_build'}; + if (defined $self->payload->{'TravisYML.perl_version'}) { + $self->payload->{'TravisYML.perl_version_build'} = $self->payload->{'TravisYML.perl_version'} + } + else { + delete $self->payload->{'TravisYML.perl_version_build'}; + } + if (defined $tmp) { + $self->payload->{'TravisYML.perl_version'} = $tmp; + } + else { + delete $self->payload->{'TravisYML.perl_version'}; + } + + ($perl_version, $perl_version_build) = ($perl_version_build, $perl_version); + } + my @plugins = ( # VERSION -- 2.45.2