Dist-Zilla-PluginBundle-Author-GEEKRUTH

 view release on metacpan or  search on metacpan

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

package Dist::Zilla::PluginBundle::Author::GEEKRUTH;
use Modern::Perl;
our $VERSION   = '2.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
         GitLab::Update
         /,
      [
         'GitLab::Meta' => {
            remote   => $upstream,
            p3rl     => 1,
            metacpan => 0,
         }
      ],
      qw/

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.487 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )