line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Group::Git::Taggers::Node; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2015-04-18 19:09:45 |
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
5
|
|
|
|
|
|
|
# $Id$ |
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
19486
|
use Moo; |
|
1
|
|
|
|
|
11704
|
|
|
1
|
|
|
|
|
5
|
|
10
|
1
|
|
|
1
|
|
1157
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
11
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
20
|
|
12
|
1
|
|
|
1
|
|
480
|
use namespace::autoclean; |
|
1
|
|
|
|
|
10558
|
|
|
1
|
|
|
|
|
4
|
|
13
|
1
|
|
|
1
|
|
458
|
use version; |
|
1
|
|
|
|
|
1432
|
|
|
1
|
|
|
|
|
4
|
|
14
|
1
|
|
|
1
|
|
53
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
58
|
|
15
|
1
|
|
|
1
|
|
452
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
2731
|
|
|
1
|
|
|
|
|
5
|
|
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
|
|
|
|
|
|
return -f 'package.json'; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Group::Git::Taggers::Node - Tags repositories as containing NodeJS code for Group::Git |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This documentation refers to Group::Git::Taggers::Node version 0.0.1 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use Group::Git::Taggers::Node; |
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 NodeJS repository based weather |
53
|
|
|
|
|
|
|
it contains a package.json file |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 C<match ()> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Returns true if the repository contains a C<package.json> file. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
There are no known bugs in this module. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Patches are welcome. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 AUTHOR |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Copyright (c) 2015 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
84
|
|
|
|
|
|
|
All rights reserved. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
87
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
88
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
89
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
90
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |