howl_notice Input: filename and message, or '' Output: commented text string Constructs a (properly commented) notice message farmed in various ways, including reading from filename, or even suppling a default. There is no way to receive a blank copyright notice.
is_annotated Input: filename and message Output: True, if file is already annotated with this message; otherwise, false
_annotate_copyright Annotates one file . Assumptions: msg already validated Input: filename, copyright notice Output: TRUE on file change, otherwise FALSE
annotate_copyright Annotates one or more files . Input: file (or arrayref of files), copyright notice Output: number of files annotated
_deannotate_copyright Remove copyright from one file . Assumptions: msg already validated Input: filename, copyright notice Output: TRUE on file change, otherwise FALSE
deannotate_copyright Removes copyright from one or more files . Input: file (or arrayref of files), copyright notice Output: number of files deannotated
load_meta Input: filename Output: CPAN::Meta object
find_author Input: filename or CPAN::Meta object Output: 1st author mentioned in CPAN::Meta. Returns undef on failure
license_types
is_license_type
license_text
Input: type of license (i.e. Perl_5), and name of copyright holder Output: the specific license object
write_LICENSE
Writes the LICENSE file
Input:
Output: the specific license object
NAME
Test::Legal::Util - Support module for Test::Legal
SYNOPSIS
use Test::Legal::Util;
DESCRIPTION
EXPORT
None by default.
SEE ALSO
AUTHOR
Tambouras, Ioannis <ioannis@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 by Ioannis Tambouras
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.