« auto/share/module/Dist-Zilla-MintingProfile-Author-BBYRD/default/Module.pm
↑ Summary
Dist/Zilla/MintingProfile/Author/BBYRD.pm »
| 1 | package Pod::Weaver::PluginBundle::Author::BBYRD; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:BBYRD'; # AUTHORITY | |
| 4 | 1 | our $VERSION = '1.06'; # VERSION | |
| 5 | # ABSTRACT: Pod::Weaver Author Bundle for BBYRD | ||
| 6 | |||
| 7 | 1 | ▶ | use sanity; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Pod::Weaver 3.101635; # fixed ABSTRACT scanning |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use Pod::Weaver::Config::Assembler; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | # Dependencies | ||
| 13 | 1 | ▶ | use Pod::Weaver::Plugin::WikiDoc (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use Pod::Weaver::Section::Availability (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use Pod::Elemental::Transformer::List 0.101620 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use Pod::Weaver::Section::Support 1.001 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 1 | ▶ | use Pod::Weaver::Section::Contributors (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 0 | ▶ | sub _exp { Pod::Weaver::Config::Assembler->expand_package( $_[0] ) } |
|
Subroutine
_exp: not called CC=1 SCAR=6.9
| |||
| 20 | |||
| 21 | ### TODO: Consider a simplified version of this a la DZIL:R:PB:Merged? | ||
| 22 | 0 | ▶ | sub mvp_bundle_config { |
|
Subroutine
mvp_bundle_config: not called CC=2 SCAR=17.9
Pod
undocumented
| |||
| 23 | 0 | my @plugins; | |
| 24 | 0 | push @plugins, ( | |
| 25 | # [-SingleEncoding] | ||
| 26 | # [-WikiDoc] | ||
| 27 | # [@CorePrep] | ||
| 28 | # | ||
| 29 | # [Name] | ||
| 30 | |||
| 31 | [ '@Author::BBYRD/SingleEncoding', _exp('-SingleEncoding'), {} ], | ||
| 32 | [ '@Author::BBYRD/WikiDoc', _exp('-WikiDoc'), {} ], | ||
| 33 | [ '@Author::BBYRD/CorePrep', _exp('@CorePrep'), {} ], | ||
| 34 | [ '@Author::BBYRD/Name', _exp('Name'), {} ], | ||
| 35 | |||
| 36 | # [Region / prelude] | ||
| 37 | # | ||
| 38 | # [Generic / SYNOPSIS] | ||
| 39 | # [Generic / DESCRIPTION] | ||
| 40 | # [Generic / OVERVIEW] | ||
| 41 | |||
| 42 | [ '@Author::BBYRD/Prelude', _exp('Region'), { region_name => 'prelude' } ], | ||
| 43 | [ '@Author::BBYRD/Synopsis', _exp('Generic'), { header => 'SYNOPSIS' } ], | ||
| 44 | [ '@Author::BBYRD/Description', _exp('Generic'), { header => 'DESCRIPTION' } ], | ||
| 45 | [ '@Author::BBYRD/Overview', _exp('Generic'), { header => 'OVERVIEW' } ], | ||
| 46 | ); | ||
| 47 | |||
| 48 | 0 | foreach my $plugin ( | |
| 49 | # [Collect / ATTRIBUTES] | ||
| 50 | # command = attr | ||
| 51 | # | ||
| 52 | # [Collect / METHODS] | ||
| 53 | # command = method | ||
| 54 | # | ||
| 55 | # [Collect / FUNCTIONS] | ||
| 56 | # command = func | ||
| 57 | |||
| 58 | [ 'Attributes', _exp('Collect'), { command => 'attr' } ], | ||
| 59 | [ 'Methods', _exp('Collect'), { command => 'method' } ], | ||
| 60 | [ 'Functions', _exp('Collect'), { command => 'func' } ], | ||
| 61 | ) | ||
| 62 | { | ||
| 63 | 0 | $plugin->[2]{header} = uc $plugin->[0]; | |
| 64 | 0 | push @plugins, $plugin; | |
| 65 | } | ||
| 66 | |||
| 67 | 0 | push @plugins, ( | |
| 68 | # [Leftovers] | ||
| 69 | # | ||
| 70 | # [Region / postlude] | ||
| 71 | # | ||
| 72 | # [Availability] | ||
| 73 | |||
| 74 | [ '@Author::BBYRD/Leftovers', _exp('Leftovers'), {} ], | ||
| 75 | [ '@Author::BBYRD/postlude', _exp('Region'), { region_name => 'postlude' } ], | ||
| 76 | [ '@Author::BBYRD/Availability', _exp('Availability'), {} ], | ||
| 77 | |||
| 78 | # [Support] | ||
| 79 | # perldoc = 0 | ||
| 80 | # websites = none | ||
| 81 | # repository_link = none | ||
| 82 | # bugs = metadata | ||
| 83 | # bugs_content = Please report any bugs or feature requests via {WEB}. | ||
| 84 | # irc = irc.perl.org, #distzilla, SineSwiper | ||
| 85 | |||
| 86 | [ '@Author::BBYRD/Support', _exp('Support'), { | ||
| 87 | perldoc => 0, | ||
| 88 | websites => 'none', | ||
| 89 | repository_link => 'none', | ||
| 90 | bugs => 'metadata', | ||
| 91 | bugs_content => 'Please report any bugs or feature requests via {WEB}.', | ||
| 92 | ### XXX: Use a DZIL stash to store the IRC channel? ### | ||
| 93 | irc => 'irc.perl.org, SineSwiper', | ||
| 94 | } ], | ||
| 95 | |||
| 96 | # [Authors] | ||
| 97 | # [Contributors] | ||
| 98 | # [Legal] | ||
| 99 | # | ||
| 100 | # [-Transformer] | ||
| 101 | # transformer = List | ||
| 102 | |||
| 103 | [ '@Author::BBYRD/Authors', _exp('Authors'), {} ], | ||
| 104 | [ '@Author::BBYRD/Contributors', _exp('Contributors'), {} ], | ||
| 105 | [ '@Author::BBYRD/Legal', _exp('Legal'), {} ], | ||
| 106 | [ '@Author::BBYRD/List', _exp('-Transformer'), { 'transformer' => 'List' } ], | ||
| 107 | ); | ||
| 108 | |||
| 109 | 0 | return @plugins; | |
| 110 | } | ||
| 111 | |||
| 112 | 1 | 42; | |
| 113 | |||
| 114 | __END__ | ||