From: Charles McGarvey Date: Mon, 28 Nov 2016 08:56:53 +0000 (-0700) Subject: work around DZP::TravisYML bug for now X-Git-Tag: v0.006~1 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=df5f0318e30bd90f863fedfc345898f088c42ebb;p=chaz%2Fp5-Dist-Zilla-PluginBundle-Author-CCM work around DZP::TravisYML bug for now --- 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