File Coverage

blib/lib/Pod/Weaver/Section/ReplaceVersion.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Pod::Weaver::Section::ReplaceVersion;
2              
3 3     3   126454 use Moose;
  3         5  
  3         26  
4              
5             # ABSTRACT: Add or replace a VERSION section.
6              
7             extends 'Pod::Weaver::Section::Version';
8             with 'Pod::Weaver::Role::SectionReplacer';
9              
10             our $VERSION = '0.99_02';
11              
12 2     2 1 7604 sub default_section_name { 'VERSION' }
13              
14 3     3   14881 no Moose;
  3         5  
  3         11  
15             1;
16              
17             __END__
18              
19              
20             =pod
21              
22             =head1 NAME
23              
24             Pod::Weaver::Section::ReplaceVersion - Add or replace a VERSION section.
25              
26             =head1 VERSION
27              
28             version 0.99_02
29              
30             =head1 OVERVIEW
31              
32             This section plugin provides the same behaviour as
33             L<Pod::Weaver::Section::Version> but with the
34             L<Pod::Weaver::Role::SectionReplacer> role applied.
35              
36             It will produce a hunk of Pod meant to indicate the version of
37             the document being viewed, like this:
38              
39             =head1 VERSION
40              
41             version 1.234
42              
43             It will do nothing if there is no C<version> entry in the input.
44              
45             =for readme stop
46              
47             =begin :internal
48              
49             =head1 INTERNAL METHODS
50              
51             =over
52              
53             =item default_section_name
54              
55             Gives the name used as the heading for this section.
56              
57             =back
58              
59             =end :internal
60              
61             =for readme continue
62              
63             =head1 AUTHOR
64              
65             Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk>
66              
67             =head1 COPYRIGHT AND LICENSE
68              
69             This software is copyright (c) 2010 by Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk>.
70              
71             This is free software; you can redistribute it and/or modify it under
72             the same terms as the Perl 5 programming language system itself.
73              
74             =cut