Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial build of teh bundlez

  • Loading branch information...
commit 5b0da88bb997ca83e765d3b00e5825760bb859eb 0 parents
@kentfredric kentfredric authored
2  .perltidyrc
@@ -0,0 +1,2 @@
+-i 2
+-l 130
5 Changes
@@ -0,0 +1,5 @@
+Revision history for {{$dist->name}}
+
+{{$NEXT}}
+ First version.
+
58 dist.ini
@@ -0,0 +1,58 @@
+name = Dist-Zilla-PluginBundle-KENTNL
+author = Kent Fredric <kentnl@cpan.org>
+license = Perl_5
+copyright_holder = Kent Fredric
+
+[AutoVersion::Relative]
+major = 0
+minor = 1
+year = 2010
+month = 5
+day = 16
+hour = 20
+time_zone = Pacific/Auckland
+
+[AllFiles]
+[PruneCruft]
+
+[Repository]
+
+[License]
+
+[PkgVersion]
+[PodWeaver]
+
+[MetaProvides::Package]
+
+[MetaJSON]
+[MetaYAML]
+
+[ModuleBuild]
+
+[ReadmeFromPod]
+
+[ManifestSkip]
+[Manifest]
+
+[CompileTests]
+[MetaTests]
+[PodTests]
+[ExtraTests]
+
+[Git::Check]
+filename = Changes
+
+[NextRelease]
+
+[Git::Tag]
+filename = Changes
+tag_format = %v-source
+
+[Git::Commit]
+
+
+[UploadToCPAN]
+
+[Prereq]
+
+
83 lib/Dist/Zilla/PluginBundle/KENTNL.pm
@@ -0,0 +1,83 @@
+use strict;
+use warnings;
+
+package Dist::Zilla::PluginBundle::KENTNL;
+
+# ABSTRACT: BeLike::KENTNL when you build your dists.
+
+use Moose;
+use Moose::Autobox;
+
+with 'Dist::Zilla::Role::PluginBundle';
+
+use namespace::autoclean -also => '_expand';
+
+=head1 DESCRIPTION
+
+This is the plugin bundle that KENTNL uses. It exists mostly because he is very lazy
+and wants others to be using what he's using if they want to be doing work on his modules.
+
+=cut
+
+sub _expand {
+ my ( $class, $suffix, $record ) = @_;
+ return [ $class . '/Dist::Zilla::Plugin::' . $suffix, 'Dist::Zilla::Plugin::' . $suffix, $record ];
+}
+
+sub _load {
+ my $m = shift;
+ eval " require $m; 1" or do {
+ my $e = $@;
+ require Carp;
+ Carp::confess($e);
+ }
+}
+
+sub bundle_config {
+ my ( $self, $section ) = @_;
+ my $class = ( ref $self ) || $self;
+
+ my $arg = $section->{payload};
+ my @config = map { _expand( $class, $_->[0], $_->[1] ) } (
+ [
+ 'AutoVersion::Relative' => {
+ major => $arg->{version_major} || 0,
+ minor => $arg->{version_minor} || 1,
+ year => $arg->{version_rel_year} || 2010,
+ month => $arg->{version_rel_month} || 5,
+ day => $arg->{version_rel_day} || 16,
+ hour => $arg->{version_rel_hour} || 20,
+ time_zone => $arg->{version_rel_time_zone} || 'Pacific/Auckland',
+ }
+ ],
+ [ 'AllFiles' => {} ],
+ [ 'PruneCruft' => {} ],
+ [ 'Repository' => {} ],
+ [ 'License' => {} ],
+ [ 'PkgVersion' => {} ],
+ [ 'PodWeaver' => {} ],
+ [ 'MetaProvides::Package' => {} ],
+ [ 'MetaJSON' => {} ],
+ [ 'MetaYAML' => {} ],
+ [ 'ModuleBuild' => {} ],
+ [ 'ReadmeFromPod' => {} ],
+ [ 'ManifestSkip' => {} ],
+ [ 'Manifest' => {} ],
+ [ 'CompileTests' => {} ],
+ [ 'MetaTests' => {} ],
+ [ 'PodTests' => {} ],
+ [ 'ExtraTests' => {} ],
+ ( $arg->{nogit} ? () : [ 'Git::Check' => { filename => 'Changes' } ] ),
+ [ 'NextRelease' => {} ],
+ ( $arg->{nogit} ? () : [ 'Git::Tag' => { filename => 'Changes', tag_format => '%v-source' } ] ),
+ ( $arg->{nogit} ? () : [ 'Git::Commit' => {} ] ),
+ ( $arg->{nocpan} ? () : [ 'UploadToCPAN' => {} ] ),
+ );
+ _load($_->[0]) for @config;
+ return @config;
+}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+'I go to prepare a perl module for you, if it were not so, I would have told you';
+
14 perlcriticrc
@@ -0,0 +1,14 @@
+severity = 1
+exclude = RequireTidyCode RequirePodSections ProhibitPostfixControls RequireRcsKeywords RequireExplicitPackage
+include = Moose::ProhibitMultipleWiths Moose::ProhibitNewMethod Moose::RequireCleanNamespace Moose::RequireMakeImmutable
+color = 1
+verbose = 9
+
+[BuiltinFunctions::ProhibitStringyEval]
+allow_includes = 1
+
+[CodeLayout::ProhibitTrailingWhitespace]
+
+[Documentation::PodSpelling]
+stop_words = metadata KiokuDB
+
45 weaver.ini
@@ -0,0 +1,45 @@
+[@CorePrep]
+
+[Name]
+[Version]
+
+[Region / prelude]
+
+[Generic / SYNOPSIS]
+[Generic / DESCRIPTION]
+[Generic / OVERVIEW]
+
+[Generic / METHODS]
+;[Collect / METHODS]
+
+[Collect / ATTRIBUTES]
+command = attr
+
+[Collect / FILTER_METHODS]
+header = FILTER METHODS
+command = filter
+
+[Collect / TERMINATOR_LIST_METHODS]
+header = TERMINATOR LIST METHODS
+command = terminator
+
+[Collect / MIRROR_LIST_METHODS]
+header = MIRROR LIST METHODS
+command = mirrorlist
+
+[Collect / PRIVATE_ATTRIBUTES]
+header = PRIVATE ATTRIBUTES
+command = p_attr
+
+[Collect / PRIVATE_METHODS]
+header = PRIVATE METHODS
+command = p_method
+
+[Leftovers]
+
+[Region / postlude]
+
+[Authors]
+[Legal]
+
+
5 xt/author/critic.t
@@ -0,0 +1,5 @@
+use strict;
+use warnings;
+
+use Test::Perl::Critic( -profile => 'perlcriticrc' );
+all_critic_ok();
9 xt/author/kwalitee.t
@@ -0,0 +1,9 @@
+
+use strict;
+use warnings;
+
+use Test::More;
+use Test::Kwalitee;
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.