| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Pod::Weaver::PluginBundle::DAGOLDEN; | ||
| 5 | |||
| 6 | 1 | our $VERSION = '0.079'; | |
| 7 | |||
| 8 | 1 | ▶ | use Pod::Weaver 4; # he played knick-knack on my door |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use Pod::Weaver::Config::Assembler; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | # Dependencies | ||
| 12 | 1 | ▶ | use Pod::Weaver::Plugin::WikiDoc (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use Pod::Elemental::Transformer::List 0.102000 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use Pod::Elemental::PerlMunger 0.200001 (); # replace with comment support |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use Pod::Weaver::Section::Support 1.001 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use Pod::Weaver::Section::Contributors 0.008 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 23 | ▶ | sub _exp { Pod::Weaver::Config::Assembler->expand_package( $_[0] ) } |
|
Subroutine
_exp: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 1 | my $repo_intro = <<'END'; | |
| 21 | This is open source software. The code repository is available for | ||
| 22 | public review and contribution under the terms of the license. | ||
| 23 | END | ||
| 24 | |||
| 25 | 1 | my $bugtracker_content = <<'END'; | |
| 26 | Please report any bugs or feature requests through the issue tracker | ||
| 27 | at {WEB}. | ||
| 28 | You will be notified automatically of any progress on your issue. | ||
| 29 | END | ||
| 30 | |||
| 31 | 1 | ▶ | sub mvp_bundle_config { |
|
Subroutine
mvp_bundle_config: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 32 | 1 | my @plugins; | |
| 33 | 1 | push @plugins, ( | |
| 34 | [ '@DAGOLDEN/SingleEncoding', _exp('-SingleEncoding'), {} ], | ||
| 35 | [ '@DAGOLDEN/WikiDoc', _exp('-WikiDoc'), {} ], | ||
| 36 | [ '@DAGOLDEN/CorePrep', _exp('@CorePrep'), {} ], | ||
| 37 | [ '@DAGOLDEN/Name', _exp('Name'), {} ], | ||
| 38 | [ '@DAGOLDEN/Version', _exp('Version'), {} ], | ||
| 39 | |||
| 40 | [ '@DAGOLDEN/Prelude', _exp('Region'), { region_name => 'prelude' } ], | ||
| 41 | [ '@DAGOLDEN/Synopsis', _exp('Generic'), { header => 'SYNOPSIS' } ], | ||
| 42 | [ '@DAGOLDEN/Description', _exp('Generic'), { header => 'DESCRIPTION' } ], | ||
| 43 | [ '@DAGOLDEN/Usage', _exp('Generic'), { header => 'USAGE' } ], | ||
| 44 | [ '@DAGOLDEN/Overview', _exp('Generic'), { header => 'OVERVIEW' } ], | ||
| 45 | [ '@DAGOLDEN/Stability', _exp('Generic'), { header => 'STABILITY' } ], | ||
| 46 | ); | ||
| 47 | |||
| 48 | 1 | for my $plugin ( | |
| 49 | [ 'Requirements', _exp('Collect'), { command => 'requires' } ], | ||
| 50 | [ 'Attributes', _exp('Collect'), { command => 'attr' } ], | ||
| 51 | [ 'Constructors', _exp('Collect'), { command => 'construct' } ], | ||
| 52 | [ 'Methods', _exp('Collect'), { command => 'method' } ], | ||
| 53 | [ 'Functions', _exp('Collect'), { command => 'func' } ], | ||
| 54 | ) | ||
| 55 | { | ||
| 56 | 5 | $plugin->[2]{header} = uc $plugin->[0]; | |
| 57 | 5 | push @plugins, $plugin; | |
| 58 | } | ||
| 59 | |||
| 60 | 1 | push @plugins, | |
| 61 | ( | ||
| 62 | [ '@DAGOLDEN/Leftovers', _exp('Leftovers'), {} ], | ||
| 63 | [ '@DAGOLDEN/postlude', _exp('Region'), { region_name => 'postlude' } ], | ||
| 64 | [ | ||
| 65 | '@DAGOLDEN/Support', | ||
| 66 | _exp('Support'), | ||
| 67 | { | ||
| 68 | perldoc => 0, | ||
| 69 | websites => 'none', | ||
| 70 | bugs => 'metadata', | ||
| 71 | bugs_content => $bugtracker_content, | ||
| 72 | repository_link => 'both', | ||
| 73 | repository_content => $repo_intro | ||
| 74 | } | ||
| 75 | ], | ||
| 76 | [ '@DAGOLDEN/Authors', _exp('Authors'), {} ], | ||
| 77 | [ '@DAGOLDEN/Contributors', _exp('Contributors'), {} ], | ||
| 78 | [ '@DAGOLDEN/Legal', _exp('Legal'), {} ], | ||
| 79 | [ '@DAGOLDEN/List', _exp('-Transformer'), { 'transformer' => 'List' } ], | ||
| 80 | ); | ||
| 81 | |||
| 82 | 1 | return @plugins; | |
| 83 | } | ||
| 84 | |||
| 85 | # ABSTRACT: DAGOLDEN's default Pod::Weaver config | ||
| 86 | # | ||
| 87 | # This file is part of Dist-Zilla-PluginBundle-DAGOLDEN | ||
| 88 | # | ||
| 89 | # This software is Copyright (c) 2018 by David Golden. | ||
| 90 | # | ||
| 91 | # This is free software, licensed under: | ||
| 92 | # | ||
| 93 | # The Apache License, Version 2.0, January 2004 | ||
| 94 | # | ||
| 95 | |||
| 96 | 1 | 1; | |
| 97 | |||
| 98 | __END__ | ||