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.
annotate_copyright Annotates one or more files . Input: file (or arrayref of files), copyright notice Output: number of files annotated
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 or dir or CPAN::Meta object Output: CPAN::Meta object Loads either META.json (preferred) or META.yml
license_types
write_LICENSE
Writes the LICENSE file
Input:
Output: the specific license object
check_license_files Input: base directory Performs and outputs diagnostics
is_annotated Input: filename and message Output: True, if file is already annotated with this message; otherwise, false
default_copyright_notice
_annotate_copyright Annotates one file . Assumptions: msg already validated Input: filename, copyright notice Output: TRUE on file change, otherwise FALSE
_deannotate_copyright Remove copyright from one file . Assumptions: msg already validated Input: filename, copyright notice Output: TRUE on file change, otherwise FALSE
find_authors Input: filename or CPAN::Meta object Output: all authors mentioned in CPAN::Meta. Returns 'unknown' if no authors found, or undef for other failures Authors are are non-repeating and never in "Last, First" format
find_license Input: directory or CPAN::Meta object Output: 1st author mentioned in CPAN::Meta. Returns undef on failure
is_license_type
license_text
Input: type of license (i.e. Perl_5), and name of copyright holder Output: the specific license object
check_LICENSE_file Input: base directory Performs and outputs diagnostics
check_META_file Input: base directory Output: Software::License:xxx object, or undef Performs and outputs diagnostics
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.