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