Dist-Zilla-PluginBundle-GEEKRUTH

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/PluginBundle/GEEKRUTH.pm  view on Meta::CPAN

package Dist::Zilla::PluginBundle::GEEKRUTH;
use Modern::Perl;
our $VERSION = '4.0000'; # VERSION
our $AUTHORITY = 'cpan:GEEKRUTH'; # AUTHORITY

# ABSTRACT: Be like GeekRuthie when you build your dists

use Moose;
use Dist::Zilla;
with qw/
    Dist::Zilla::Role::PluginBundle::Easy
    Dist::Zilla::Role::PluginBundle::Config::Slicer
    Dist::Zilla::Role::PluginBundle::PluginRemover
    /;
use Type::Tiny;
use Types::Standard qw/ Str ArrayRef /;

sub version_range {
    my ( $from, $to ) = @_;
    return join ',', grep { not $_ % 2 } $from .. $to;
}

has badge => (
    isa     => 'ArrayRef',
    is      => 'ro',
    default => sub { [] },
);

sub configure {
    my ($self) = @_;
    my $arg = $self->payload;

    my $release_branch = $arg->{release_branch} || 'releases';
    my $dev_branch     = $arg->{dev_branch}     || 'main';
    my $upstream       = $arg->{upstream}       || 'origin';

    my %mb_args;
    $mb_args{mb_class} = $arg->{mb_class} if $arg->{mb_class};

    my $builder = $arg->{builder} || 'MakeMaker';

   $self->add_plugins(
      [ $builder, ( \%mb_args ) x ( $builder eq 'ModuleBuild' ) ] );
   $self->add_plugins(
      qw/
         Git::Contributors
         ContributorsFile
         Test::Compile
         CoalescePod
         InstallGuide
         Covenant
         ContributorCovenant
   
         Codeberg::Update
         /,
      [
         'Codeberg::Meta' => {
            remote   => $upstream,
            p3rl     => 1,
            metacpan => 0,
         },
         'SecurityPolicy' => {



( run in 0.972 second using v1.01-cache-2.11-cpan-c966e8aa7e8 )