| 1 | # vim: ts=4:sw=4:et:ai:sts=4 | ||
| 2 | # | ||
| 3 | # KGB - an IRC bot helping collaboration | ||
| 4 | # Copyright © 2013 Damyan Ivanov | ||
| 5 | # | ||
| 6 | # This program is free software; you can redistribute it and/or modify it under | ||
| 7 | # the terms of the GNU General Public License as published by the Free Software | ||
| 8 | # Foundation; either version 2 of the License, or (at your option) any later | ||
| 9 | # version. | ||
| 10 | # | ||
| 11 | # This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
| 14 | # details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License along with | ||
| 17 | # this program; if not, write to the Free Software Foundation, Inc., 51 | ||
| 18 | # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 19 | package App::KGB::Commit::Tag; | ||
| 20 | |||
| 21 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 8 | our $VERSION = 1.28; | |
| 25 | |||
| 26 | 8 | ▶ | use base 'App::KGB::Commit'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | App::KGB::Commit::Tag - a helper class for describing tags | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $c = App::KGB::Commit::Tag->new( | ||
| 35 | { id => 4536, | ||
| 36 | changes => ["(M)/there"], | ||
| 37 | log => "fixed /there", | ||
| 38 | author => "My Self <mself@here.at>", | ||
| 39 | branch => "trunk", | ||
| 40 | module => "test", | ||
| 41 | tag_name => 'release-1.0', | ||
| 42 | } | ||
| 43 | ); | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | B<App::KGB::Commit::Tag> is a special sub-class of L<App:KGB::Commit>, | ||
| 48 | used to describe simple (not annotated tags). It only add a new field, | ||
| 49 | B<tag_name>. | ||
| 50 | |||
| 51 | =head1 FIELDS | ||
| 52 | |||
| 53 | =over | ||
| 54 | |||
| 55 | =item B<tag_name> | ||
| 56 | |||
| 57 | The name of the tag, e.g. C<release-1.0>. | ||
| 58 | |||
| 59 | =back | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | 8 | ▶ | use base 'Class::Accessor::Fast'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 64 | 8 | __PACKAGE__->mk_accessors( qw( tag_name ) ); | |
| 65 | |||
| 66 | |||
| 67 | 8 | 1; | |