Dist-Zilla-PluginBundle-Codeberg
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Codeberg/Meta.pm view on Meta::CPAN
package Dist::Zilla::Plugin::Codeberg::Meta 2.0100;
use Modern::Perl;
use JSON::MaybeXS;
use URL::Encode qw(url_encode_utf8);
use Moose;
our $AUTHORITY = 'cpan:GEEKRUTH'; # AUTHORITY
extends 'Dist::Zilla::Plugin::Codeberg';
with 'Dist::Zilla::Role::MetaProvider';
has bugs => (
is => 'ro',
isa => 'Bool',
default => 1,
);
has fork => (
is => 'ro',
isa => 'Bool',
default => 1,
);
has wiki => (
is => 'ro',
isa => 'Bool',
default => 0,
);
has p3rl => (
is => 'ro',
isa => 'Bool',
default => 0,
);
has metacpan => (
is => 'ro',
isa => 'Bool',
default => 1,
);
has meta_home => (
is => 'ro',
isa => 'Bool',
default => 0,
);
around dump_config => sub {
my ( $orig, $self ) = @_;
my $config = $self->$orig;
my $option = first { $self->$_ } qw(meta_home metacpan p3rl);
$config->{ +__PACKAGE__ } = { $option => ( $self->$option ? 1 : 0 ), };
return $config;
};
sub metadata {
my $self = shift;
my $offline = 0;
my $repo_name = $self->_get_repo_name;
return {} if ( !$repo_name );
( run in 1.001 second using v1.01-cache-2.11-cpan-c966e8aa7e8 )