]>
Dogcows Code - chaz/p5-Dist-Zilla-PluginBundle-Author-CCM/blob - lib/Pod/Weaver/PluginBundle/Author/CCM.pm
dba44d5d75c2330086849bce7b33177331014e66
1 package Pod
::Weaver
::PluginBundle
::Author
::CCM
;
2 # ABSTRACT: A plugin bundle for pod woven by CCM
9 our $VERSION = '0.005'; # VERSION
11 use Pod
::Weaver
::Config
::Assembler
;
12 use namespace
::autoclean
;
21 ['-Transformer' => List
=> {transformer
=> 'List'}],
22 ['-Transformer' => Verbatim
=> {transformer
=> 'Verbatim'}],
24 ['Region' => 'header'],
27 # ['Badges' => {badge => [qw(perl travis coverage)], formats => 'html, markdown'}],
31 ['Region' => 'prelude'],
33 ['Generic' => 'SYNOPSIS'],
34 ['Generic' => 'DESCRIPTION'],
35 ['Generic' => 'OVERVIEW'],
36 ['Collect' => 'ATTRIBUTES' => {command
=> 'attr'}],
37 ['Collect' => 'METHODS' => {command
=> 'method'}],
38 ['Collect' => 'FUNCTIONS' => {command
=> 'func'}],
42 ['Region' => 'postlude'],
49 ['Region' => 'footer'],
54 sub mvp_bundle_config
{
55 my $self = shift || __PACKAGE__
;
57 return map { $self->_expand_config($_) } $self->configure;
60 sub _exp
{ Pod
::Weaver
::Config
::Assembler-
>expand_package($_[0]) }
66 my ($name, $package, $payload);
69 ($name, $package, $payload) = ($spec, $spec, {});
72 ($name, $package, $payload) = (@$spec[0,0], {});
75 ($name, $package, $payload) = ref $spec->[1] ? @$spec[0,0,1] : (@$spec[1,0], {});
78 ($package, $name, $payload) = @$spec;
82 $package = _exp
($package);
84 if ($package eq _exp
('Region')) {
86 $payload = {region_name
=> $spec->[1], %$payload};
89 $name = '@Author::CCM/' . $name if $package ne _exp
('Generic') && $package ne _exp
('Collect');
91 return [$name => $package => $payload];
104 Pod::Weaver::PluginBundle::Author::CCM - A plugin bundle for pod woven by CCM
112 # In your weaver.ini file:
115 # In your dist.ini file:
117 config_plugin = @Author::CCM
121 You probably don't want to use this.
127 Returns the configuration in a form similar to what one might use with
128 L<Dist::Zilla::Role::PluginBundle::Easy/add_plugins>.
130 =head2 mvp_bundle_config
132 Required in order to be a plugin bundle.
144 L<Pod::Weaver::PluginBundle::Author::ETHER>
150 This module was heavily inspired by Karen Etheridge's config.
154 Please report any bugs or feature requests on the bugtracker website
155 L<https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM/issues>
157 When submitting a bug or request, please include a test-file or a
158 patch to an existing test-file that illustrates the bug or desired
163 Charles McGarvey <chazmcgarvey@brokenzipper.com>
165 =head1 COPYRIGHT AND LICENSE
167 This software is copyright (c) 2016 by Charles McGarvey.
169 This is free software; you can redistribute it and/or modify it under
170 the same terms as the Perl 5 programming language system itself.
This page took 0.049556 seconds and 3 git commands to generate.