Dist-Zilla-PluginBundle-Author-KENTNL
view release on metacpan or search on metacpan
lib/Dist/Zilla/PluginBundle/Author/KENTNL.pm view on Meta::CPAN
);
$self->_configure_toolkit;
$self->_configure_readmes;
$self->add_plugin( 'Test::CPAN::Changes' => {} );
$self->add_plugin( 'RunExtraTests' => { default_jobs => 10 } );
$self->add_plugin( 'TestRelease' => {} );
$self->add_plugin( 'ConfirmRelease' => {} );
$self->add_plugin( 'Git::Check' => { filename => 'Changes' } );
$self->add_named_plugin( 'commit_dirty_files' => 'Git::Commit' => {} );
$self->add_named_plugin( 'tag_master', => 'Git::Tag' => { tag_format => '%v-source' } );
$self->add_plugin(
'Git::NextRelease' => {
':version' => '0.004000',
time_zone => 'UTC',
format => q[%v %{yyyy-MM-dd'T'HH:mm:ss}dZ %h],
default_branch => 'master',
},
);
if ( $self->bump_versions ) {
$self->add_plugin( 'BumpVersionAfterRelease' => {} );
}
$self->add_named_plugin(
'commit_release_changes' => 'Git::Commit' => {
allow_dirty_match => '^lib/',
},
);
$self->add_plugin( 'Git::CommitBuild' => { branch => 'builds', release_branch => 'releases' } );
$self->add_named_plugin( 'tag_release', 'Git::Tag' => { branch => 'releases', tag_format => '%v' } );
$self->add_plugin( 'UploadToCPAN' => {} );
$self->add_plugin(
'Twitter' => {
hash_tags => $self->twitter_hash_tags,
tweet_url => $self->tweet_url,
url_shortener => 'none',
},
);
$self->_configure_toolkit_prereqs;
return;
}
sub BUILDARGS {
my ( $self, $config, @args ) = @_;
if ( @args or not 'HASH' eq ( ref $config || q[] ) ) {
$config = { $config, @args };
}
my (%init_args);
for my $attr ( $self->meta->get_all_attributes ) {
next unless my $arg = $attr->init_arg;
$init_args{$arg} = 1;
}
# A weakened warn-only filter-supporting StrictConstructor
for my $key ( keys %{$config} ) {
next if exists $init_args{$key};
next if $key =~ /\A-remove/msx;
next if $key =~ /\A[^.]+[.][^.]/msx;
require Carp;
Carp::carp("Unknown key $key");
}
return $config;
}
sub bundle_config {
my ( $self, $section ) = @_;
my $class = ( ref $self ) || $self;
my $wanted_version;
if ( exists $section->{payload}->{':version'} ) {
$wanted_version = delete $section->{payload}->{':version'};
}
my $instance = $class->new( $section->{payload} );
$instance->configure();
return @{ $instance->plugins };
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Dist::Zilla::PluginBundle::Author::KENTNL - BeLike::KENTNL when you build your distributions.
=head1 VERSION
version 2.025021
=head1 SYNOPSIS
[@Author::KENTNL]
normal_form = numify ; Mandatory for this bundle indicating normal form.
; see DZP::Git::NextVersion::Sanitized
mantissa = 6 ; Mandatory for this bundle if normal_form is numify.
; see DZP::Git::NextVersion::Sanitized
authority = cpan:KENTNL ; Optional, defaults to cpan:KENTNL
auto_prereqs_skip = Some::Module ; Hide these from autoprereqs
auto_prereqs_skip = Other::Module
toolkit = mb ; Which toolkit to use. Either eumm or mb
; mb is default.
toolkit_hardness = hard ; Whether to upgrade *require* deps to the latest
; or wether to make them merely recomendations.
( run in 0.654 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )