line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Group::Git::Taggers::Perl; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2015-04-18 19:09:53 |
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
5
|
|
|
|
|
|
|
# $Id$ |
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
23333
|
use Moo; |
|
1
|
|
|
|
|
43512
|
|
|
1
|
|
|
|
|
4
|
|
10
|
1
|
|
|
1
|
|
2239
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
11
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
108
|
|
12
|
1
|
|
|
1
|
|
1084
|
use namespace::autoclean; |
|
1
|
|
|
|
|
17453
|
|
|
1
|
|
|
|
|
7
|
|
13
|
1
|
|
|
1
|
|
901
|
use version; |
|
1
|
|
|
|
|
2588
|
|
|
1
|
|
|
|
|
7
|
|
14
|
1
|
|
|
1
|
|
97
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
105
|
|
15
|
1
|
|
|
1
|
|
978
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
5187
|
|
|
1
|
|
|
|
|
8
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
extends 'Group::Git::Taggers'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $VERSION = version->new('0.0.1'); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub match { |
22
|
0
|
|
|
0
|
|
|
my ($self, $project) = @_; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
0
|
|
|
|
return -f 'Makefile.PL' || -f 'Build.PL' || -f 'dist.ini'; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Group::Git::Taggers::Perl - Tags repositories as containing Perl code for Group::Git |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This documentation refers to Group::Git::Taggers::Perl version 0.0.1 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use Group::Git::Taggers::Perl; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# Brief but working code example(s) here showing the most common usage(s) |
46
|
|
|
|
|
|
|
# This section will be as far as many users bother reading, so make it as |
47
|
|
|
|
|
|
|
# educational and exemplary as possible. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Looks at a repository and determines if it is a Perl repository based weather |
53
|
|
|
|
|
|
|
it contains one of the following files: |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=over 4 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Makefile.PL - Traditional Ext::Utils |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item * |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Build.PL - L<Module::Build> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
dist.ini - L<Dist::Zilla> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=back |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 C<match ()> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Returns true if the repository contains one of C<Makefile.PL>, C<Build.PL> or C<dist.ini> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
There are no known bugs in this module. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Patches are welcome. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 AUTHOR |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Copyright (c) 2015 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
100
|
|
|
|
|
|
|
All rights reserved. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
103
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
104
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
105
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
106
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=cut |