File Coverage

blib/lib/Dist/Zilla/PluginBundle/MITHALDU/Templates.pm
Criterion Covered Total %
statement 6 9 66.6
branch n/a
condition n/a
subroutine 2 3 66.6
pod 1 1 100.0
total 9 13 69.2


line stmt bran cond sub pod time code
1 1     1   475 use strictures;
  1         1866  
  1         7  
2              
3             package Dist::Zilla::PluginBundle::MITHALDU::Templates;
4             our $VERSION = '1.190321'; # VERSION
5              
6             # ABSTRACT: some templates for MITHALDU's dzil pluginbundle
7              
8             #
9             # This file is part of Dist-Zilla-PluginBundle-MITHALDU
10             #
11             #
12             # Christian Walde has dedicated the work to the Commons by waiving all of his
13             # or her rights to the work worldwide under copyright law and all related or
14             # neighboring legal rights he or she had in the work, to the extent allowable by
15             # law.
16             #
17             # Works under CC0 do not require attribution. When citing the work, you should
18             # not imply endorsement by the author.
19             #
20              
21 1     1   756 use Data::Section::Simple;
  1         628  
  1         121  
22              
23              
24             sub data {
25 0     0 1       my ( $class, $template ) = @_;
26 0               my $data = Data::Section::Simple->new( $class )->get_data_section( $template );
27 0               return $data;
28             }
29              
30             1;
31              
32             =pod
33            
34             =head1 NAME
35            
36             Dist::Zilla::PluginBundle::MITHALDU::Templates - some templates for MITHALDU's dzil pluginbundle
37            
38             =head1 VERSION
39            
40             version 1.190321
41            
42             =head1 METHODS
43            
44             =head2 $self->data( $template )
45            
46             Returns the contents of a template stored in the DATA section of this module.
47             The single scalar parameter specifies the name of the template to be retrieved.
48            
49             =head1 AUTHOR
50            
51             Christian Walde <walde.christian@gmail.com>
52            
53             =head1 COPYRIGHT AND LICENSE
54            
55            
56             Christian Walde has dedicated the work to the Commons by waiving all of his
57             or her rights to the work worldwide under copyright law and all related or
58             neighboring legal rights he or she had in the work, to the extent allowable by
59             law.
60            
61             Works under CC0 do not require attribution. When citing the work, you should
62             not imply endorsement by the author.
63            
64             =cut
65              
66             __DATA__
67            
68             @@ .gitignore
69             # THIS IS AN AUTOMATICALLY GENERATED FILE.
70             # CHANGES TO IT WILL BE DESTROYED BY Dist::Zilla.
71             # TO EFFECT PERMANENT CHANGES, EDIT dist.ini AND
72             # RUN `dzil build`.
73            
74             *.bak
75             *.old
76             *.tmp
77             *.tar.gz
78             *~
79             /Build
80             /Build.bat
81             /Makefile
82             /_build
83             /.build
84             /blib
85             /cover_db
86             /pm_to_blib
87             /PM_to_blib
88             /MYMETA.yml
89             /MYMETA.json
90             /{{ $dist->name }}-*
91            
92             @@ README.PATCHING
93             README.PATCHING
94            
95             Thank you for considering contributing to this distribution. This file
96             contains instructions that will help you work with the source code.
97            
98             The distribution is managed with Dist::Zilla. This means than many of the
99             usual files you might expect are not in the repository, but are generated
100             at release time (e.g. Makefile.PL).
101            
102             However, you can run tests directly using the 'prove' tool:
103            
104             $ prove -l
105             $ prove -lv t/some_test_file.t
106            
107             For most distributions, 'prove' is entirely sufficent for you to test any
108             patches you have.
109            
110             You may need to satisfy some dependencies. See the included META.json
111             file for a list. If you install App::mymeta_requires from CPAN, it's easy
112             to satisfy any that you are missing by piping the output to your favorite
113             CPAN client:
114            
115             $ mymeta-requires | cpanm
116             $ cpan `mymeta-requires`
117            
118             Likewise, much of the documentation Pod is generated at release time.
119             Depending on the distribution, some documentation may be written in a Pod
120             dialect called WikiDoc. (See Pod::WikiDoc on CPAN.) If you would like to
121             submit a documentation edit, please limit yourself to the documentation you
122             see.
123            
124             If you see typos or documentation issues in the generated docs, please
125             email or open a bug ticket instead of patching.
126            
127             Dist::Zilla is a very powerful authoring tool, but requires a number of
128             author-specific plugins. If you would like to use it for contributing,
129             install it from CPAN, then run one of the following commands, depending on
130             your CPAN client:
131            
132             $ cpan `dzil authordeps`
133             $ dzil authordeps | cpanm
134            
135             Once installed, here are some dzil commands you might try:
136            
137             $ dzil build
138             $ dzil test
139             $ dzil xtest
140            
141             You can learn more about Dist::Zilla at http://dzil.org/
142            
143             @@ perlcritic.rc
144             # THIS IS AN AUTOMATICALLY GENERATED FILE.
145             # CHANGES TO IT WILL BE DESTROYED BY Dist::Zilla.
146            
147             [TestingAndDebugging::RequireUseStrict]
148             equivalent_modules = strictures
149            
150             [-OTRS::RequireCamelCase]
151             [-OTRS::RequireParensWithMethods]
152             [-ValuesAndExpressions::ProhibitAccessOfPrivateData]
153             [-OTRS::ProhibitLowPrecedenceOps]
154