Dist/Zilla/PluginBundle/AJGB.pm

filter: Statementstmt 97.7% 130 / 133 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 97.6% 42 / 43 Podpod 0.0% 0 / 1 totaltotal 97.1% 172 / 177 CC 1 SCAR 0.2
CC
1
Cov
98%
configure
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Pod/Weaver/PluginBundle/AJGB.pm ↑ Summary
1 #ABSTRACT: Dist::Zilla plugins for AJGB
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Dist::Zilla::PluginBundle::AJGB;
6 1 our $AUTHORITY = 'cpan:AJGB';
7 1 $Dist::Zilla::PluginBundle::AJGB::VERSION = '2.04';
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 with 'Dist::Zilla::Role::PluginBundle::Easy';
11  
12 # make AutoPrereqs happy
13 1 ▶use Dist::Zilla::Plugin::ExecDir ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Dist::Zilla::Plugin::ShareDir ();
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Dist::Zilla::Plugin::GatherDir ();
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Dist::Zilla::Plugin::MetaYAML ();
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Dist::Zilla::Plugin::MetaJSON ();
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Dist::Zilla::Plugin::License ();
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Dist::Zilla::Plugin::Manifest ();
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use Dist::Zilla::Plugin::Test::Compile ();
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use Dist::Zilla::Plugin::PodCoverageTests ();
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Dist::Zilla::Plugin::PodSyntaxTests ();
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Dist::Zilla::Plugin::Test::EOL ();
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Dist::Zilla::Plugin::Test::NoTabs ();
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use Dist::Zilla::Plugin::Test::Kwalitee ();
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use Dist::Zilla::Plugin::Test::Portability ();
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 ▶use Dist::Zilla::Plugin::Test::Synopsis ();
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use Dist::Zilla::Plugin::PruneCruft ();
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 ▶use Dist::Zilla::Plugin::ManifestSkip ();
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use Dist::Zilla::Plugin::PkgVersion ();
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use Dist::Zilla::Plugin::Authority ();
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use Dist::Zilla::Plugin::PodWeaver ();
Subroutine BEGIN: called CC=1 SCAR=0.0
33 1 ▶use Dist::Zilla::Plugin::MetaConfig ();
Subroutine BEGIN: called CC=1 SCAR=0.0
34 1 ▶use Dist::Zilla::Plugin::AutoMetaResources ();
Subroutine BEGIN: called CC=1 SCAR=0.0
35 1 ▶use Dist::Zilla::Plugin::AutoPrereqs ();
Subroutine BEGIN: called CC=1 SCAR=0.0
36 1 ▶use Dist::Zilla::Plugin::MakeMaker ();
Subroutine BEGIN: called CC=1 SCAR=0.0
37 1 ▶use Dist::Zilla::Plugin::ModuleBuild ();
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶use Dist::Zilla::Plugin::InstallGuide ();
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 ▶use Dist::Zilla::Plugin::Git::NextVersion ();
Subroutine BEGIN: called CC=1 SCAR=0.0
40 1 ▶use Dist::Zilla::Plugin::CopyFilesFromBuild ();
Subroutine BEGIN: called CC=1 SCAR=0.0
41 1 ▶use Dist::Zilla::Plugin::ReadmeFromPod ();
Subroutine BEGIN: called CC=1 SCAR=0.0
42 1 ▶use Dist::Zilla::Plugin::Git::Check ();
Subroutine BEGIN: called CC=1 SCAR=0.0
43 1 ▶use Dist::Zilla::Plugin::CheckChangesHasContent ();
Subroutine BEGIN: called CC=1 SCAR=0.0
44 1 ▶use Dist::Zilla::Plugin::CheckExtraTests ();
Subroutine BEGIN: called CC=1 SCAR=0.0
45 1 ▶use Dist::Zilla::Plugin::TestRelease ();
Subroutine BEGIN: called CC=1 SCAR=0.0
46 1 ▶use Dist::Zilla::Plugin::ConfirmRelease ();
Subroutine BEGIN: called CC=1 SCAR=0.0
47 1 ▶use Dist::Zilla::Plugin::UploadToCPAN ();
Subroutine BEGIN: called CC=1 SCAR=0.0
48 1 ▶use Dist::Zilla::Plugin::NextRelease ();
Subroutine BEGIN: called CC=1 SCAR=0.0
49 1 ▶use Dist::Zilla::Plugin::Git::Commit ();
Subroutine BEGIN: called CC=1 SCAR=0.0
50 1 ▶use Dist::Zilla::Plugin::Git::Tag ();
Subroutine BEGIN: called CC=1 SCAR=0.0
51 1 ▶use Dist::Zilla::Plugin::Git::Push ();
Subroutine BEGIN: called CC=1 SCAR=0.0
52  
53  
54 0 ▶sub configure {
Subroutine configure: not called CC=1 SCAR=6.9
Pod undocumented
55 0 my $self = shift;
56  
57 0 my @plugins = (
58 # Dirs
59 qw(
60 ExecDir
61 ShareDir
62 ),
63  
64 # FileGatherer
65 [
66 GatherDir =>
67 { exclude_filename => [ 'README', 'dist.ini', 'weaver.ini', ], }
68 ],
69 qw(
70 MetaYAML
71 MetaJSON
72 License
73 Manifest
74 Test::Compile
75 PodCoverageTests
76 PodSyntaxTests
77 Test::EOL
78 Test::NoTabs
79 Test::Kwalitee
80 Test::Portability
81 Test::Synopsis
82 ),
83  
84 # FilePruner
85 qw(
86 PruneCruft
87 ManifestSkip
88 ),
89  
90 # FileMunger
91 qw(
92 PkgVersion
93 ),
94 [
95 Authority => {
96 authority => 'cpan:AJGB',
97 do_metadata => 1,
98 }
99 ],
100 [ PodWeaver => { config_plugin => '@AJGB', } ],
101  
102 # MetaProvider
103 qw(
104 MetaConfig
105 ),
106 [
107 AutoMetaResources => {
108 'bugtracker.github' => 'user:ajgb',
109 'repository.github' => 'user:ajgb',
110 'homepage' => 'https://metacpan.org/release/%{dist}',
111 },
112 ],
113  
114 # PrereqSource
115 qw(
116 AutoPrereqs
117 MakeMaker
118 ModuleBuild
119 ),
120  
121 # PrereqSource / InstallTool
122 qw(
123 ReadmeFromPod
124 InstallGuide
125 ),
126  
127 # VersionProvider
128 [ 'Git::NextVersion' => { first_version => '0.01', } ],
129  
130 # AfterBuild
131 [ CopyFilesFromBuild => { copy => 'README', } ],
132  
133 # BeforeRelease
134 [
135 'Git::Check' =>
136 {
137 allow_dirty => [ 'README', 'dist.ini', 'weaver.ini', ],
138 untracked_files => 'warn',
139 }
140 ],
141 qw(
142 CheckChangesHasContent
143 CheckExtraTests
144 TestRelease
145 ConfirmRelease
146 ),
147  
148 # Releaser
149 qw(
150 UploadToCPAN
151 ),
152  
153 # AfterRelease
154 [
155 NextRelease => {
156 time_zone => 'Europe/London',
157 filename => 'Changes',
158 format => '%-6v %{yyyy-MM-dd HH:mm:ss}d',
159 }
160 ],
161 [
162 'Git::Tag' => {
163 filename => 'Changes',
164 tag_format => 'v%v',
165 }
166 ],
167 [ 'Git::Commit' => {
168 time_zone => 'Europe/London',
169 allow_dirty => [ 'README', 'Changes' ],
170 }
171 ],
172 qw(
173 Git::Push
174 ),
175 );
176  
177 0 $self->add_plugins( @plugins );
178 }
179  
180 1 1;
181  
182 __END__
« Pod/Weaver/PluginBundle/AJGB.pm ↑ Summary