Dist-Zilla-Plugin-PERLANCAR-Authority
view release on metacpan or search on metacpan
and metadata to your distribution
VERSION
This document describes version 0.001 of
Dist::Zilla::Plugin::PERLANCAR::Authority (from Perl distribution
Dist-Zilla-Plugin-PERLANCAR-Authority), released on 2020-08-10.
DESCRIPTION
Fork note: This plugin is a fork of Dist::Zilla::Plugin::Authority. When
PAUSE credential is not found, this plugin will set $AUTHORITY to
"cpan:<none>" instead of bailing out. TODO: bail if PAUSE credentials is
not found and we are doing a release (instead of just 'dzil test' or
'dzil build'). The rest is Dist::Zilla::Plugin::Authority's
documentation.
This plugin adds the authority data to your distribution. It adds the
data to your modules and metadata. Normally it looks for the PAUSE
author id in your Dist::Zilla configuration. If you want to override it,
please use the 'authority' attribute.
# In your dist.ini:
lib/Dist/Zilla/Plugin/PERLANCAR/Authority.pm view on Meta::CPAN
next if /^\s*(?:#.*)?$/;
my ( $k, $v ) = /^\s*(\w+)\s+(.+)$/;
if ( $k =~ /^user$/i ) {
$self->log_debug( [ 'using PAUSE id "%s" for AUTHORITY from ~/.pause', uc( $v ) ] );
return 'cpan:' . uc( $v );
}
}
close $fh or $self->log_fatal( "Unable to close $file - $!" );
$self->log_fatal( 'PAUSE user not found in ~/.pause' );
} else {
$self->log( 'PAUSE credentials not found in "config.ini" or "dist.ini" or "~/.pause", will be using "cpan:<none>" as the AUTHORITY' );
return 'cpan:<none>';
}
}
},
);
no Moose::Util::TypeConstraints;
}
has do_metadata => (
lib/Dist/Zilla/Plugin/PERLANCAR/Authority.pm view on Meta::CPAN
Dist::Zilla::Plugin::PERLANCAR::Authority - Add the $AUTHORITY variable and metadata to your distribution
=head1 VERSION
This document describes version 0.001 of Dist::Zilla::Plugin::PERLANCAR::Authority (from Perl distribution Dist-Zilla-Plugin-PERLANCAR-Authority), released on 2020-08-10.
=head1 DESCRIPTION
B<Fork note>: This plugin is a fork of L<Dist::Zilla::Plugin::Authority>. When
PAUSE credential is not found, this plugin will set C<$AUTHORITY> to C<<
cpan:<none> >> instead of bailing out. TODO: bail if PAUSE credentials is not
found and we are doing a release (instead of just 'dzil test' or 'dzil build').
The rest is Dist::Zilla::Plugin::Authority's documentation.
This plugin adds the authority data to your distribution. It adds the data to
your modules and metadata. Normally it looks for the PAUSE author id in your
L<Dist::Zilla> configuration. If you want to override it, please use the
'authority' attribute.
# In your dist.ini:
[Authority]
( run in 0.227 second using v1.01-cache-2.11-cpan-4d50c553e7e )