]>
Dogcows Code - chaz/p5-Dist-Zilla-PluginBundle-Author-CCM/blob - lib/Pod/Weaver/PluginBundle/Author/CCM.pm
1 package Pod
::Weaver
::PluginBundle
::Author
::CCM
;
2 # ABSTRACT: A plugin bundle for pod woven by CCM
8 our $VERSION = '0.002'; # VERSION
10 use Pod
::Weaver
::Config
::Assembler
;
11 use namespace
::autoclean
;
20 ['-Transformer' => List
=> {transformer
=> 'List'}],
21 ['-Transformer' => Verbatim
=> {transformer
=> 'Verbatim'}],
23 ['Region' => 'header'],
26 # ['Badges' => {badge => [qw(perl travis coverage)], formats => 'html, markdown'}],
30 ['Region' => 'prelude'],
32 ['Generic' => 'SYNOPSIS'],
33 ['Generic' => 'DESCRIPTION'],
34 ['Generic' => 'OVERVIEW'],
35 ['Collect' => 'ATTRIBUTES' => {command
=> 'attr'}],
36 ['Collect' => 'METHODS' => {command
=> 'method'}],
37 ['Collect' => 'FUNCTIONS' => {command
=> 'func'}],
41 ['Region' => 'postlude'],
48 ['Region' => 'footer'],
53 sub mvp_bundle_config
{
54 my $self = shift || __PACKAGE__
;
56 return map { $self->_expand_config($_) } $self->configure;
59 sub _exp
{ Pod
::Weaver
::Config
::Assembler-
>expand_package($_[0]) }
65 my ($name, $package, $payload);
68 ($name, $package, $payload) = ($spec, $spec, {});
71 ($name, $package, $payload) = (@$spec[0,0], {});
74 ($name, $package, $payload) = ref $spec->[1] ? @$spec[0,0,1] : (@$spec[1,0], {});
77 ($package, $name, $payload) = @$spec;
81 $package = _exp
($package);
83 if ($package eq _exp
('Region')) {
85 $payload = {region_name
=> $spec->[1], %$payload};
88 $name = '@Author::CCM/' . $name if $package ne _exp
('Generic') && $package ne _exp
('Collect');
90 return [$name => $package => $payload];
103 Pod::Weaver::PluginBundle::Author::CCM - A plugin bundle for pod woven by CCM
111 # In your weaver.ini file:
114 # In your dist.ini file:
116 config_plugin = @Author::CCM
120 You probably don't want to use this.
126 Returns the configuration in a form similar to what one might use with
127 L<Dist::Zilla::Role::PluginBundle::Easy/add_plugins>.
129 =head2 mvp_bundle_config
131 Required in order to be a plugin bundle.
143 L<Pod::Weaver::PluginBundle::Author::ETHER>
149 This module was heavily inspired by Karen Etheridge's config.
153 Please report any bugs or feature requests on the bugtracker website
154 L<https://github.com/chazmcgarvey/Dist-Zilla-PluginBundle-Author-CCM/issues>
156 When submitting a bug or request, please include a test-file or a
157 patch to an existing test-file that illustrates the bug or desired
162 Charles McGarvey <chazmcgarvey@brokenzipper.com>
164 =head1 COPYRIGHT AND LICENSE
166 This software is copyright (c) 2016 by Charles McGarvey.
168 This is free software; you can redistribute it and/or modify it under
169 the same terms as the Perl 5 programming language system itself.
This page took 0.040569 seconds and 4 git commands to generate.