Test-CheckManifest-1.42/0000775000175000017500000000000013434023237014346 5ustar reneebreneebTest-CheckManifest-1.42/MANIFEST0000644000175000017500000000110713434023237015474 0ustar reneebreneeb# MANIFEST for Test-CheckManifest Changes MANIFEST MANIFEST.SKIP CONTRIBUTORS CONTRIBUTING.md t/00_load.t t/01_selftest.t t/02_validate_args.t t/03_find_home.t t/04_check_excludes.t t/05_is_excluded.t t/06_bailout.t t/07_is_in_dir.t t/08_check_manifest.t t/09_manifest_files.t t/author-pod-coverage.t t/author-pod-syntax.t t/xt/02_issue1.t t/xt/03_issue7.t 't/file with whitespaces.txt' t/testrules.yml t/extra/02_test_in_subdirectory.t lib/Test/CheckManifest.pm README # selftest LICENSE # selftest META.yml # selftest META.json # selftest Makefile.PL # selftest Test-CheckManifest-1.42/Changes0000644000175000017500000001275013434023237015644 0ustar reneebreneebRevision history for Perl extension Test::CheckManifest. ======================================================== 1.42 2019-02-22 17:41:00 * add section in doc that explains how to replace test scripts using Test::CheckManifest * stable release with all the changes from the test releases 1.41_04 2019-02-21 15:12:00 * fix test failure on Win32 - use "plan skip_all" instead of "skip '...'" * update dist.ini 1.41_03 2019-02-21 09:27:00 * optimize ok_manifest() * add more tests for find_home() 1.41_02 2019-02-20 13:37:00 * more debugging stuff 1.41_01 2019-02-20 09:50:00 * use regexes to silence warnings * add debugging stuff to debug win32 failures 1.41 2019-02-19 10:53:00 * improve tests * Removed regex warnings on windows box as reported by CPANTESTERS (Thanks to manwar) 1.39 2019-02-14 07:28:00 * release 1.39 1.38_02 2018-12-23 11:32:00 * fix test failures (thanks to manwar and LorenzoTa) 1.38_01 2018-12-21 14:30:00 * more tests * refactor code 1.38 2018-12-13 16:26:00 [BUGFIX] * require at least Cwd 3.75 1.35 2018-12-12 09:05:00 [BUGFIX] * Tests failed 1.34 2018-12-11 [BUGFIX] * Tests failed on Windows (github #9) * 'exclude' is meant to be a list of directories, but it was handled as regular expressions [IMPROVEMENTS] * rewrite larger parts of the module * add lots of tests 1.33 2018-01-26 [INTERNAL] * Auto generate META.json using dzil plugin [MetaJSON] (github #8, thanks to manwar) 1.32 2018-01-26 [BUGFIX] * ok_manifest reports duplicate files on internal symlinks (github #7) 1.31 2017-04-21 [IMPROVEMENT] * Run tests in series, not parallel. This should fix github #4. Thanks to Michael Gray (mjg17). 1.30 2015-09-22 [IMPROVEMENT] * Check duplicate entries in the MANIFEST file (Thanks to Mohammad S Anwar (Manwar), github #5) 1.29 2015-01-05 [DOCUMENTATION] * document dir/file feature that was added in 1.27 (pr#2 - Thanks to Doug Hoyte (FRACTAL)) 1.28 2014-01-19 + fix bug where some files in the selftest were skipped while the files where added to the dist. 1.27 2014-01-17 + added feature to specify path of MANIFEST or directory where it is stored 1.26 2012-07-19 No changes after 1.25_01 1.25_01 2012-07-17 + Module wasn't able to find the MANIFEST when the test file was in a subdirectory - Thanks to BBYRD - sections "AUTHOR" and "COPYRIGHT AND LICENSE" were duplicated - Thanks to BIGPRESH (once from Dist::Zilla and once in the original source) 1.25 2012-01-31 - fix typo in documentation - Thanks to BIGPRESH 1.24 2011-04-09 + MANIFEST spec allows whitespaces in filenames (when enclosed in single quotes) this was not parsed correctly (see [#67334]). Fixed now - Thanks to JWEIGEL 1.23 2011-03-28 + CPAN toolchain now creates MYMETA.yml and META.json. These files are in the list of recognized files now. + clarify license of this module (In README the Perl license was mentioned where in all other files Artistic 2.0 was mentioned) + switched to Dist::Zilla + removed tests that are created by Dist::Zilla 1.22 2010-07-29 + fix a bug that appears when there is no MANIFEST.SKIP 1.21 2010-02-17 + return from sub when MANIFEST.SKIP does not exist 1.2 2010-02-03 + moved from SVN to Git (and adapted the filters in testfiles) + added support for MANIFEST.SKIP + small code improvements 1.1 2009-11-22 - CHECK as a label is not allowed in Perl > 5.11.x, so replace it + switched license to Artistic 2.0 + bugfix in 01_selftest.t 1.01 2007-12-29 - fixes in test scripts - require 5.006001 - allow more characters in path + added license to Makefile.PL + changed META.yml 1.0 2006-12-27 - bugfix: ok_manifest excludes files created by Module::Build 0.9 2006-11-27 - bugfix: ok_manifest files without blib (http://rt.cpan.org/Public/Bug/Display.html?id=23580) - bugfix: Test-CheckManifest.t -- added ':' in character group (untaint $home) - bugfix: 99_pod_coverage.t -- removed all_modules and now T::P::C 1.08 or higher is required - bugfix: ref $_ --> ref($_) - bugfix: "filter" to exclude files that match on specific regexp from test (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: 00_load.t 0.8 2006-11-24 + added: T::CM now tests also on files that are not part of the distro but named in the MANIFEST 0.7 2006-11-23 + added: "filter" to exclude files that match on specific regexp from test (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: "bool" to combine "filter" and "exclude" + added: boilerplate.t 0.6 2006-11-21 Test scripts improved 0.5 2006-11-18 - bugfix: T::CM now works under taint mode (http://rt.cpan.org/Public/Bug/Display.html?id=22927) + added : ok_manifest accepts hashref where specific dirs can be excluded from test 0.4 2006-10-19 - bugfix: handles different newlines (mac, win, *nix) 0.3 2006-10-18 - bugfix: CheckManifest works under Solaris now 0.2 2006-10-03 - bugfix: some files excluded from test 0.1 2006-09-29 - original version; created by h2xs 1.23 with options -XA -n Test::CheckManifest + added tests for Pod coverage, Pod, Manifest Test-CheckManifest-1.42/CONTRIBUTORS0000644000175000017500000000061613434023237016227 0ustar reneebreneeb # TEST-CHECKMANIFEST CONTRIBUTORS # This is the (likely incomplete) list of people who have helped make this distribution what it is, either via code contributions, patches, bug reports, help with troubleshooting, etc. A huge 'thank you' to all of them. * Dan Book * doug * LorenzoTa * LorenzoTa * Michael Gray * Mohammad S Anwar * reneeb * reneeb * Renee Test-CheckManifest-1.42/CONTRIBUTING.md0000644000175000017500000000146513434023237016603 0ustar reneebreneeb # Development The distribution is contained in a Git repository, so simply clone the repository ``` $ git clone http://github.com/reneeb/Test-CheckManifest.git ``` and change into the newly-created directory. ``` $ cd Test-CheckManifest ``` The project uses [`Dist::Zilla`](https://metacpan.org/pod/Dist::Zilla) to build the distribution, hence this will need to be installed before continuing: ``` $ cpanm Dist::Zilla ``` To install the required prequisite packages, run the following set of commands: ``` $ dzil authordeps --missing | cpanm $ dzil listdeps --author --missing | cpanm ``` The distribution can be tested like so: ``` $ dzil test ``` To run the full set of tests (including author and release-process tests), add the `--author` and `--release` options: ``` $ dzil test --author --release ``` Test-CheckManifest-1.42/META.yml0000644000175000017500000000257613434023237015627 0ustar reneebreneeb--- abstract: 'Check if your Manifest matches your distro' author: - 'Renee Baecker ' build_requires: CPAN::Meta::YAML: '0' File::Path: '0' IO::File: '0' Pod::Coverage::TrustPod: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Test-CheckManifest provides: Test::CheckManifest: file: lib/Test/CheckManifest.pm version: '1.42' requires: Carp: '0' Cwd: '3.75' Data::Dumper: '0' File::Basename: '0' File::Find: '0' File::Spec: '0' Scalar::Util: '0' Test::Builder: '0' Test::More: '0' perl: '5.008' resources: bugtracker: http://github.com/reneeb/Test-CheckManifest/issues homepage: http://github.com/reneeb/Test-CheckManifest repository: http://github.com/reneeb/Test-CheckManifest.git version: '1.42' x_contributors: - 'Dan Book ' - 'doug ' - 'LorenzoTa ' - 'LorenzoTa ' - 'Michael Gray ' - 'Mohammad S Anwar ' - 'reneeb ' - 'reneeb ' - 'Renee ' x_serialization_backend: 'YAML::Tiny version 1.70' Test-CheckManifest-1.42/t/0000775000175000017500000000000013434023237014611 5ustar reneebreneebTest-CheckManifest-1.42/t/extra/0000775000175000017500000000000013434023237015734 5ustar reneebreneebTest-CheckManifest-1.42/t/extra/02_test_in_subdirectory.t0000644000175000017500000000042413434023237022663 0ustar reneebreneeb#!/usr/bin/perl -T use strict; use warnings; use File::Spec; use File::Basename; use Test::More; eval "use Test::CheckManifest tests => 1"; plan skip_all => "Test::CheckManifest required" if $@; ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git)'); Test-CheckManifest-1.42/t/01_selftest.t0000644000175000017500000000363113434023237017130 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use File::Spec; use File::Basename; use Test::More; eval "use Test::CheckManifest tests => 10"; plan skip_all => "Test::CheckManifest required" if $@; #$Test::CheckManifest::VERBOSE = 0; # create a directory and a file my $home = dirname(File::Spec->rel2abs($0)); my $dir = File::Spec->catdir($home,'.git'); my $dir2 = File::Spec->catdir($home,'test'); my $file1 = File::Spec->catfile($dir,'test.txt'); my $file2 = File::Spec->catfile($home,'test.svn'); my $file3 = File::Spec->catfile($dir2,'hallo.txt'); mkdir $dir; my $fh; open $fh ,'>',$file1 and close $fh; open $fh ,'>',$file2 and close $fh; Test::CheckManifest::_not_ok_manifest('expected: Manifest not ok'); ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git|build)'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/)'); mkdir $dir2; open $fh ,'>',$file3 and close $fh; Test::CheckManifest::_not_ok_manifest({filter => [qr/\.svn/]},'Filter: \.svn'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/) [2]'); Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], exclude => ['/.git/']},'expected: Manifest not ok (exclude OR filter)'); Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], bool => 'and', exclude => ['/t/test']}, 'filter AND exclude'); Test::CheckManifest::_not_ok_manifest({ filter => [qr/\.git|blib/], exclude => ['/t/test'], verbose => 1, }, 'filter OR exclude - test.svn is missing in MANIFEST'); unlink $file2; ok_manifest({ filter => [qr/\.(git|build)/], exclude => ['/t/test'], }, 'filter OR exclude'); unlink $file3; ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/ ]},'Filter \.git or \.svn'); unlink $file1; rmdir $dir; rmdir $dir2; Test-CheckManifest-1.42/t/05_is_excluded.t0000644000175000017500000000703613434023237017576 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use File::Spec; use File::Basename; use Test::More; use Cwd; use Test::More; use Test::CheckManifest; # create a directory and a file my $sub = Test::CheckManifest->can('_is_excluded'); my $dir = Cwd::realpath( dirname __FILE__ ); $dir =~ s{.t\z}{}; my $file = File::Spec->catfile( $dir, 'MANIFEST.SKIP' ); my $t_dir = File::Spec->catdir( $dir, 't' ); my $meta = 'META.yml'; my $abs_t_file = File::Spec->rel2abs( __FILE__ ); my $bak_t_file = $abs_t_file . '.bak'; # my ($file,$dirref,$filter,$bool,$files_in_skip,$home) = @_; my @tests = ( [ [ $meta ], 1, $meta, ], [ [ $meta, [] ], 1, "meta, empty dirref", ], [ [ $meta, [$t_dir] ], 1, "meta, t/ directory", ], [ [ $abs_t_file ], 0, "this file", ], [ [ $abs_t_file, [] ], 0, "this file, empty dirref", ], [ [ $abs_t_file, [ $t_dir ] ], 1, "this file, t/ dir", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/] ], 2, "this file, t/ dir, filter: 'excluded'", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and' ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and'", ], [ [ $abs_t_file, [ $t_dir ], [qr/not_excluded/] ], 1, "this file, t/ dir, filter: 'not_excluded'", ], [ [ $abs_t_file, [ $t_dir ], [qr/not_excluded/], 'and' ], 0, "this file, t/ dir, filter: 'not_excluded', bool => 'and'", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [] ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and', empty files_in_skip", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [qr/\Q$abs_t_file\E/] ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and', skip this file", ], [ [ $abs_t_file . '.bak', [ $t_dir ], [qr/excluded/], 'and', [qr/\Q$bak_t_file\E/] ], 1, ".bak, t/ dir, filter: 'excluded', bool => 'and', skip backup of this file", ], [ [ '/tmp/test', [ $t_dir ], [qr/excluded/], 'and', [qr/\Q$bak_t_file\E/] ], 0, "/tmp/test, t/ dir, filter: 'excluded', bool => 'and', skip backup of this file", ], [ [ '/tmp/test', [ $t_dir ], [qr/excluded/], 'and', ['/test'], '/tmp' ], 1, "/tmp/test, t/ dir, filter: 'excluded', bool => 'and', skip /test in /tmp", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [qr/\Q$bak_t_file\E/] ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and', skip backup of this file", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', {} ], 0, "this file, t/ dir, filter: 'excluded', bool => 'and', wrong reftype files_in_skip", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and' ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and'", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'or' ], 2, "this file, t/ dir, filter: 'excluded', bool => 'or'", ], [ [ $abs_t_file, [ $t_dir ], [qr/excluded/], 'and', [qr/\Q$abs_t_file\E/] ], 1, "this file, t/ dir, filter: 'excluded', bool => 'and', excluded", ], ); for my $test ( @tests ) { my ($input, $check, $desc) = @{$test}; my $ret = $sub->( @{$input} ); is $ret, $check, $desc; } done_testing(); Test-CheckManifest-1.42/t/testrules.yml0000644000175000017500000000005613434023237017365 0ustar reneebreneebseq: - t/*.t - extra/*.t - xt/*.t Test-CheckManifest-1.42/t/00_load.t0000644000175000017500000000014613434023237016213 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use Test::More tests => 1; use_ok('Test::CheckManifest'); Test-CheckManifest-1.42/t/02_validate_args.t0000644000175000017500000000332413434023237020104 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use File::Spec; use File::Basename; use Test::More; use Test::CheckManifest; # create a directory and a file my $sub = Test::CheckManifest->can('_validate_args'); my $default = { filter => [], exclude => [ qw!/blib /_blib! ], bool => 'or', }; is_deeply [ $sub->( [], "hallo" ) ], [ $default, "hallo" ], 'Empty Arrayref'; is_deeply [ $sub->( { exclude => {} }, "hallo" ) ], [ $default, "hallo" ], 'exclude => {}'; is_deeply [ $sub->( { exclude => [] }, "hallo" ) ], [ $default, "hallo" ], 'exclude => []'; is_deeply [ $sub->( { exclude => 'test' }, "hallo" ) ], [ $default, "hallo" ], 'exclude => "test"'; is_deeply [ $sub->( { bool => {} }, "hallo" ) ], [ $default, "hallo" ], 'bool => {}'; is_deeply [ $sub->( { bool => 'or' }, "hallo" )], [ $default, "hallo" ], 'bool => "or"'; is_deeply [ $sub->( { bool => 'and' }, "hallo" )], [ { %$default, bool => 'and' }, "hallo" ], 'bool => "and"'; is_deeply [ $sub->( { bool => '1' }, "hallo" )], [ $default, "hallo" ], 'bool => "1"'; is_deeply [ $sub->( { filter => [] }, "hallo" ) ], [ $default, "hallo" ], 'filter -> arrayref'; is_deeply [ $sub->( { filter => {} }, "hallo" ) ], [ $default, "hallo" ], 'filter -> empty hashref'; is_deeply [ $sub->( { filter => 'test' }, "hallo" ) ], [ $default, "hallo" ], 'filter -> string'; is_deeply [ $sub->( { filter => [ 'hallo' ] }, "hallo" ) ], [ $default, "hallo" ], 'filter -> no regex'; { my $error; eval { $sub->( { exclude => ['testing'] } ); 1; } or do { $error = $@; }; like $error, qr/path in excluded array must be "absolute"/, 'relative paths'; } done_testing(); Test-CheckManifest-1.42/t/07_is_in_dir.t0000644000175000017500000000220713434023237017242 0ustar reneebreneeb#!/usr/bin/env perl use strict; use warnings; use File::Basename; use File::Spec; use Test::More; use Test::CheckManifest; use Cwd; my $sub = Test::CheckManifest->can('_is_in_dir'); ok $sub; my $dir = Cwd::realpath( dirname __FILE__ ); $dir =~ s{.t\z}{}; my $t_dir = File::Spec->catdir( $dir, 't' ); my $abs_t_file = File::Spec->rel2abs( __FILE__ ); my @tests = ( [ '/t/test.txt', '/t', 1 ], [ '/t/sub/test.txt', '/t', 1 ], [ '/t/test.txt', '/t2', undef ], [ '', '/t2', undef ], [ '/t/test.txt', '', undef ], [ undef, '', undef ], [ undef, '/t', undef ], [ undef, undef, undef ], [ '/t/test.txt', undef, undef ], [ '', undef, undef ], [ '/t/sub/', '/t', 1 ], [ '/t/sub/test', '/t/sub/', 1 ], [ '/t/test', '/t/sub/', undef ], [ __FILE__, dirname( __FILE__ ), 1 ], [ $abs_t_file, $t_dir, 1 ], ); for my $test ( @tests ) { my ($file, $excludes, $expected) = @{$test}; my $result = $sub->( $file, [$excludes] ); is $result, $expected, sprintf "%s -> %s", ( defined $file ? $file : '' ), ( defined $excludes ? $excludes : '' ); } done_testing(); Test-CheckManifest-1.42/t/file with whitespaces.txt0000644000175000017500000000007313434023237021523 0ustar reneebreneebThis is a file needed to test the error filed in bug #67334Test-CheckManifest-1.42/t/08_check_manifest.t0000644000175000017500000000667313434023237020262 0ustar reneebreneeb#!/usr/bin/env perl use strict; use warnings; use File::Basename; use File::Spec; use Test::More; use Test::CheckManifest; use Cwd; local $ENV{NO_MANIFEST_CHECK} = 1; my $sub = Test::CheckManifest->can('_check_manifest'); ok $sub; my $dir = Cwd::realpath( dirname __FILE__ ); $dir =~ s{.t\z}{}; my $t_dir = File::Spec->catdir( $dir, 't' ); my $abs_t_file = File::Spec->rel2abs( __FILE__ ); # my ($existing_files, $manifest_files, $excluded, $msg) = @_; my $diag = ''; { no warnings 'redefine'; sub Test::Builder::diag { $diag .= $_[1] . "\n"; }; } my $cnt = 0; { my @tests = ( [ undef, undef, undef, 'test', 1 ], [ ['/t/test'], undef, undef, 'test', '' ], [ ['/t/test'], ['/t/test'], undef, 'test', 1 ], [ ['/t/test'], undef, {'/t/test' => 1}, 'test', 1 ], [ ['/t/test'], ['/test'], {'/t/test' => 1}, 'test', '' ], [ ['/t/test'], ['/t/test', '/t/test'], undef, 'test', '' ], [ ['/t/test','/t/test2'], ['/t/test'], undef, 'test', '' ], ); for my $test ( @tests ) { $diag = ''; my @params = @{$test}; my $expected = pop @params; my $result = $sub->( @params, 'No Manifest' ); is $result, $expected, "Test $cnt"; $cnt++; } } { local $Test::CheckManifest::test_bool = 0; my @tests = ( [ undef, undef, undef, 'test', '' ], [ ['/t/test'], undef, undef, 'test', 1 ], [ ['/t/test'], ['/t/test'], undef, 'test', '' ], [ ['/t/test'], undef, {'/t/test' => 1}, 'test', '' ], [ ['/t/test'], ['/test'], {'/t/test' => 1}, 'test', 1 ], [ ['/t/test'], ['/t/test', '/t/test'], undef, 'test', 1 ], [ ['/t/test','/t/test2'], ['/t/test'], undef, 'test', 1 ], ); for my $test ( @tests ) { $diag = ''; my @params = @{$test}; my $expected = pop @params; my $result = $sub->( @params, 'No Manifest' ); is $result, $expected; $cnt++; } } { local $Test::CheckManifest::test_bool = 0; local $Test::CheckManifest::VERBOSE = 0; my @tests = ( [ undef, undef, undef, 'test', '' ], [ ['/t/test'], undef, undef, 'test', 1 ], [ ['/t/test'], ['/t/test'], undef, 'test', '' ], [ ['/t/test'], undef, {'/t/test' => 1}, 'test', '' ], [ ['/t/test'], ['/test'], {'/t/test' => 1}, 'test', 1 ], [ ['/t/test'], ['/t/test', '/t/test'], undef, 'test', 1 ], [ ['/t/test','/t/test2'], ['/t/test'], undef, 'test', 1 ], ); for my $test ( @tests ) { $diag = ''; my @params = @{$test}; my $expected = pop @params; my $result = $sub->( @params, 'No Manifest' ); is $result, $expected; $cnt++; } } { local $Test::CheckManifest::VERBOSE = 0; my @tests = ( [ undef, undef, undef, 'test', 1 ], [ ['/t/test'], undef, undef, 'test', '' ], [ ['/t/test'], ['/t/test'], undef, 'test', 1 ], [ ['/t/test'], undef, {'/t/test' => 1}, 'test', 1 ], [ ['/t/test'], ['/test'], {'/t/test' => 1}, 'test', '' ], [ ['/t/test'], ['/t/test', '/t/test'], undef, 'test', '' ], [ ['/t/test','/t/test2'], ['/t/test'], undef, 'test', '' ], ); for my $test ( @tests ) { $diag = ''; my @params = @{$test}; my $expected = pop @params; my $result = $sub->( @params, 'No Manifest' ); is $result, $expected; $cnt++; } } done_testing(); Test-CheckManifest-1.42/t/06_bailout.t0000644000175000017500000000073413434023237016744 0ustar reneebreneeb#!/usr/bin/perl use strict; use File::Spec; use File::Basename; use Test::More; eval "use Test::CheckManifest tests => 2"; plan skip_all => "Test::CheckManifest required" if $@; $Test::CheckManifest::HOME = '/tmp/' . $$ . '/test'; my $error; local *Test::Builder::BAILOUT = sub { $error = 'BAILOUT'; }; my $success = ok_manifest({ filter => [qr/\.(git|build)/], exclude => ['/t/test'], }, 'filter OR exclude'); is $error, 'BAILOUT'; is $success, undef; Test-CheckManifest-1.42/t/03_find_home.t0000644000175000017500000000227113434023237017230 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use File::Spec; use File::Basename; use Test::More; use File::Path qw(make_path remove_tree); use Test::CheckManifest; use Cwd; # create a directory and a file my $sub = Test::CheckManifest->can('_find_home'); my $dir = Cwd::realpath( File::Spec->catdir( dirname( __FILE__ ), '..' ) ); my $file = File::Spec->catfile( $dir, 'MANIFEST' ); my @dirs_one = File::Spec->splitdir( $dir ); my @dirs_two = File::Spec->splitdir( $sub->( {} ) ); is_deeply \@dirs_two, \@dirs_one, 'tmp_path => $0'; my ($vol,$dirs,$file_one) = File::Spec->splitpath($file); my @dirs_three = File::Spec->splitdir( $sub->( {file => $file} ) ); is_deeply \@dirs_three, \@dirs_one, 'file ' . $file; my @dirs_five = File::Spec->splitdir( $sub->( { dir => $dir } ) ); is_deeply \@dirs_five, \@dirs_one, 'dir ' . $dir; $sub->( { dir => $vol || '/' } ); $sub->( { dir => '/this/dir/does/not/exist/test/checkmanifest' } ); my $deep_path_one = File::Spec->catdir( $dir, 'deep' ); my $deep_path_two = File::Spec->catdir( $deep_path_one, qw/path one and another level to search for/ ); make_path $deep_path_two; $sub->( { dir => $deep_path_two } ); remove_tree $deep_path_one; done_testing(); Test-CheckManifest-1.42/t/author-pod-coverage.t0000644000175000017500000000053613434023237020653 0ustar reneebreneeb#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. use Test::Pod::Coverage 1.08; use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); Test-CheckManifest-1.42/t/xt/0000775000175000017500000000000013434023237015244 5ustar reneebreneebTest-CheckManifest-1.42/t/xt/02_issue1.t0000644000175000017500000000031613434023237017141 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use Test::CheckManifest; use Cwd; { my $dir = Cwd::getcwd(); ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/ ], dir => $dir }); } Test-CheckManifest-1.42/t/xt/03_issue7.t0000644000175000017500000000146513434023237017156 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use Test::More; use Test::CheckManifest; use IO::File; use File::Basename; use File::Spec; SKIP: { plan skip_all => 'Test not needed on Windows', 1 if $^O =~ /Win32/; { my $dir = dirname( File::Spec->rel2abs( __FILE__ ) ); # create file my $fh_manifest = IO::File->new( $dir . '/MANIFEST', 'w' ); $fh_manifest->print( $_ . "\n" ) for (qw/MANIFEST A.txt B.txt 02_issue1.t 03_issue7.t/); $fh_manifest->close or die $!; # create file my $fh = IO::File->new( $dir . '/A.txt', 'w' ); $fh->print( scalar localtime ) or die $!; $fh->close or die $!; # create symlink eval { symlink $dir . '/A.txt', $dir . '/B.txt' }; ok_manifest({ dir => $dir }); } } Test-CheckManifest-1.42/t/04_check_excludes.t0000644000175000017500000000164213434023237020253 0ustar reneebreneeb#!/usr/bin/perl use strict; use warnings; use Cwd; use File::Spec; use File::Basename; use Test::CheckManifest; use Test::More; # create a directory and a file my $sub = Test::CheckManifest->can('_check_excludes'); my $dir = Cwd::realpath( dirname __FILE__ ); $dir =~ s{.t\z}{}; { is_deeply $sub->( { exclude => ['testing'] }, $dir ), [], 'empty excludes'; is_deeply $sub->( { exclude => ['/t'] }, $dir ), [ File::Spec->catdir( $dir, 't' ) ], 't directory'; is_deeply $sub->( { exclude => ['/t'] }, '.' ), [ File::Spec->catdir( $dir, 't' ) ], 't directory - home: .'; is_deeply $sub->( { exclude => ['/t2'] }, '.' ), [ ], 't2 directory, that does not exist'; is_deeply $sub->( { exclude => [''] }, '' ), [ ], 'empty strings'; is_deeply $sub->( { exclude => [undef] }, '' ), [ ], 'undef excluded path'; is_deeply $sub->( { exclude => undef }, '' ), [ ], 'exclude is undef'; } done_testing(); Test-CheckManifest-1.42/t/09_manifest_files.t0000644000175000017500000000061313434023237020274 0ustar reneebreneeb#!/usr/bin/env perl use strict; use warnings; use File::Basename; use File::Spec; use Test::More; use Test::CheckManifest; use Cwd; local $ENV{NO_MANIFEST_CHECK} = 1; my $sub = Test::CheckManifest->can('_manifest_files'); ok $sub; my $dir = dirname __FILE__; my $manifest = File::Spec->catfile( $dir, '..', 'MANIFEST' ); my @files = $sub->( $dir, $manifest ); ok @files; done_testing(); Test-CheckManifest-1.42/t/author-pod-syntax.t0000644000175000017500000000045413434023237020405 0ustar reneebreneeb#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); Test-CheckManifest-1.42/README0000644000175000017500000000553613434023237015235 0ustar reneebreneebNAME Test::CheckManifest - Check if your Manifest matches your distro VERSION version 1.42 SYNOPSIS use Test::CheckManifest; ok_manifest(); EXPORT There is only one method exported: ok_manifest METHODS ok_manifest [{exclude => $arref}][$msg] checks whether the Manifest file matches the distro or not. To match a distro the Manifest has to name all files that come along with the distribution. To check the Manifest file, this module searches for a file named MANIFEST. To exclude some directories from this test, you can specify these dirs in the hashref. ok_manifest({exclude => ['/var/test/']}); is ok if the files in /path/to/your/dist/var/test/ are not named in the MANIFEST file. That means that the paths in the exclude array must be "pseudo-absolute" (absolute to your distribution). To use a "filter" you can use the key "filter" ok_manifest({filter => [qr/\.svn/]}); With that you can exclude all files with an '.svn' in the filename or in the path from the test. These files would be excluded (as examples): * /dist/var/.svn/test * /dist/lib/test.svn You can also combine "filter" and "exclude" with 'and' or 'or' default is 'or': ok_manifest({exclude => ['/var/test'], filter => [qr/\.svn/], bool => 'and'}); These files have to be named in the MANIFEST: * /var/foo/.svn/any.file * /dist/t/file.svn * /var/test/test.txt These files not: * /var/test/.svn/* * /var/test/file.svn By default, ok_manifest will look for the file MANIFEST in the current working directory (which is how tests are traditionally run). If you wish to specify a different directory, you may pass the file or dir parameters, for example: ok_manifest({dir => '/path/to/my/dist/'}); EXCLUDING FILES Beside filter and exclude there is another way to exclude files: MANIFEST.SKIP. This is a file with filenames that should be excluded: t/my_very_own.t file_to.skip REPLACE THIS MODULE You can replace the test scripts using Test::CheckManifest with this one using ExtUtils::Manifest. use Test::More tests => 2; use ExtUtils::Manifest; is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing'; is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra'; (thanks to @mohawk2 ). ACKNOWLEDGEMENT Great thanks to Christopher H. Laco, who did a lot of testing stuff for me and he reported some bugs to RT. AUTHOR Renee Baecker COPYRIGHT AND LICENSE This software is Copyright (c) 2018 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) Test-CheckManifest-1.42/lib/0000775000175000017500000000000013434023237015114 5ustar reneebreneebTest-CheckManifest-1.42/lib/Test/0000775000175000017500000000000013434023237016033 5ustar reneebreneebTest-CheckManifest-1.42/lib/Test/CheckManifest.pm0000644000175000017500000002740513434023237021103 0ustar reneebreneebpackage Test::CheckManifest; # ABSTRACT: Check if your Manifest matches your distro use strict; use warnings; use Cwd; use Carp; use File::Spec; use File::Basename; use Test::Builder; use File::Find; use Scalar::Util qw(blessed); our $VERSION = '1.42'; our $VERBOSE = 1; our $HOME; our $test_bool = 1; my $test = Test::Builder->new(); my $plan = 0; my $counter = 0; my @excluded_files = qw( pm_to_blib Makefile META.yml Build pod2htmd.tmp META.json pod2htmi.tmp Build.bat .cvsignore MYMETA.json MYMETA.yml ); sub import { my $self = shift; my $caller = caller; my %plan = @_; for my $func ( qw( ok_manifest ) ) { no strict 'refs'; *{$caller."::".$func} = \&$func; } $test->exported_to($caller); $test->plan(%plan); $plan = 1 if(exists $plan{tests}); } sub _validate_args { my ($hashref, $msg) = @_; my $ref = ref $hashref; if ( !$ref || 'HASH' ne $ref ) { $msg = $hashref if !$ref; $hashref = {}; } my $ref_filter = ref $hashref->{filter}; $hashref->{filter} = [] if !$ref_filter || 'ARRAY' ne $ref_filter; $hashref->{filter} = [ grep{ blessed $_ && $_->isa('Regexp') } @{ $hashref->{filter} } ]; my $ref_exclude = ref $hashref->{exclude}; $hashref->{exclude} = [] if !$ref_exclude || 'ARRAY' ne $ref_exclude; push @{$hashref->{exclude}}, qw!/blib /_blib! if $test_bool; for my $excluded_path ( @{ $hashref->{exclude} } ) { croak 'path in excluded array must be "absolute"' if $excluded_path !~ m!^/!; } my $bool = lc( $hashref->{bool} || '' ); $hashref->{bool} = $bool && $bool eq 'and' ? 'and' : 'or'; return $hashref, $msg; } sub _check_excludes { my ($hashref, $home) = @_; my @excluded; EXCLUDED_PATH: for my $excluded_path ( @{ $hashref->{exclude} } ) { next EXCLUDED_PATH if !defined $excluded_path; next EXCLUDED_PATH if !length $excluded_path; my $path = File::Spec->catdir($home, $excluded_path); $path = File::Spec->rel2abs( $path ) if !File::Spec->file_name_is_absolute( $path ); next if !-e $path; push @excluded, $path; } return \@excluded; } sub _find_home { my ($params) = @_; my $tmp_path = File::Spec->rel2abs( $0 ); my ($home, $volume, $dirs, $file, @dirs); if ( $params->{file} ) { $tmp_path = $params->{file}; } elsif ( $params->{dir} ) { $tmp_path = File::Spec->catfile( $params->{dir}, 'test' ); } ($volume,$dirs,$file) = File::Spec->splitpath($tmp_path); $home = File::Spec->catdir($volume, $dirs); my $counter = 0; while ( 1 ) { last if -f File::Spec->catfile( $home, 'MANIFEST' ); my $tmp_home = Cwd::realpath( File::Spec->catdir( $home, '..' ) ); last if !$tmp_home || $counter++ == 5; $home = $tmp_home; } return $HOME if $HOME; return $home; } sub _manifest_files { my ($home, $manifest) = @_; my @files = _read_file( $manifest ); for my $tfile ( @files ) { $tfile = ( split /\s{2,}/, $tfile, 2 )[0]; next if !-e $home . '/' . $tfile; $tfile = File::Spec->rel2abs($home . '/' . $tfile); } return @files; } sub ok_manifest { my ($hashref,$msg) = _validate_args( @_ ); $test->plan(tests => 1) if !$plan; my $home = _find_home( $hashref ); my $manifest = File::Spec->catfile( $home, 'MANIFEST' ); if ( !-f $manifest ) { $test->BAILOUT( 'Cannot find a MANIFEST. Please check!' ); } my @files = _manifest_files( $home, $manifest ); if ( !@files ) { $test->diag( "No files in MANIFEST found (is it readable?)" ); return; } my $skip_path = File::Spec->catfile( $home, 'MANIFEST.SKIP' ); my @skip_files = _read_file( $skip_path ); my @skip_rx = map{ qr/$_/ }@skip_files; my $excluded = _check_excludes( $hashref, $home ); my (@dir_files, %excluded); find({ no_chdir => 1, follow => 0, wanted => sub { my $file = $File::Find::name; return if !-f $file; my $is_excluded = _is_excluded( $file, $excluded, $hashref->{filter}, $hashref->{bool}, \@skip_rx, $home, ); my $abs = File::Spec->rel2abs($file); $is_excluded ? ( $excluded{$abs} = 1 ) : ( push @dir_files, $abs ); } },$home); my $success = _check_manifest( \@dir_files, \@files, \%excluded, $msg, $manifest ); return $success; } sub _check_manifest { my ($existing_files, $manifest_files, $excluded, $msg, $manifest) = @_; my @existing = @{ $existing_files || [] }; my @manifest = @{ $manifest_files || [] }; my $bool = 1; my %files_hash; @files_hash{@manifest} = (); my %missing_files; SFILE: for my $file ( @existing ) { for my $check ( @manifest ) { if ( $file eq $check ) { delete $files_hash{$check}; next SFILE; } } $missing_files{$file} = 1; } my @dup_files = (); my @files_plus = (); delete @files_hash{ keys %{$excluded || {}} }; delete @missing_files{ keys %{$excluded || {}} }; @files_plus = sort keys %files_hash; $bool = 0 if scalar @files_plus > 0; $bool = 0 if %missing_files; my %seen_files = (); @dup_files = map { $seen_files{$_}++ ? $_ : () } @manifest; $bool = 0 if scalar @dup_files > 0; my $diag = 'The following files are not named in the MANIFEST file: '. join(', ', sort keys %missing_files); my $plus = 'The following files are not part of distro but named in the MANIFEST file: '. join(', ',@files_plus); my $dup = 'The following files appeared more than once in the MANIFEST file: '. join(', ',@dup_files); my $success; if ( !$ENV{NO_MANIFEST_CHECK} ) { $success = $test->is_num($bool,$test_bool,$msg); } else { $success = $bool == $test_bool; } $test->diag($diag) if keys %missing_files >= 1 and $test_bool == 1 and $VERBOSE; $test->diag($plus) if scalar @files_plus >= 1 and $test_bool == 1 and $VERBOSE; $test->diag($dup) if scalar @dup_files >= 1 and $test_bool == 1 and $VERBOSE; $test->diag( "MANIFEST: $manifest" ) if !$success; return $success; } sub _read_file { my ($path) = @_; return if !-r $path; my @files; open my $fh, '<', $path; while( my $fh_line = <$fh> ){ chomp $fh_line; next if $fh_line =~ m{ \A \s* \# }x; my ($file); if ( ($file) = $fh_line =~ /^'(\\[\\']|.+)+'\s*/) { $file =~ s/\\([\\'])/$1/g; } else { ($file) = $fh_line =~ /^(\S+)\s*/; } next unless $file; push @files, $file; } close $fh; chomp @files; { local $/ = "\r"; chomp @files; } return @files; } sub _not_ok_manifest { $test_bool = 0; ok_manifest(@_); $test_bool = 1; } sub _is_excluded { my ($file,$dirref,$filter,$bool,$files_in_skip,$home) = @_; $home = '' if !defined $home; return 0 if $files_in_skip and 'ARRAY' ne ref $files_in_skip; if ( $files_in_skip ) { (my $local_file = $file) =~ s{\Q$home\E}{}; for my $rx ( @{$files_in_skip} ) { return 1 if $local_file =~ $rx; } } my $basename = basename $file; my @matches = grep{ $basename eq $_ }@excluded_files; return 1 if @matches; my $is_in_dir = _is_in_dir( $file, $dirref ); $bool ||= 'or'; if ( $bool eq 'or' ) { push @matches, $file if grep{ $file =~ /$_/ }@$filter; push @matches, $file if $is_in_dir; } else{ if( grep{ $file =~ /$_/ }@$filter and $is_in_dir ) { push @matches, $file; } } return scalar @matches; } sub _is_in_dir { my ($file, $excludes) = @_; return if !defined $file; return if !length $file; my (undef, $path) = File::Spec->splitpath( $file ); my @file_parts = File::Spec->splitdir( $path ); my $is_in_dir; EXCLUDE: for my $exclude ( @{ $excludes || [] } ) { next EXCLUDE if !defined $exclude; next EXCLUDE if !length $exclude; my (undef, $exclude_dir, $efile) = File::Spec->splitpath( $exclude ); my @exclude_parts = File::Spec->splitdir( $exclude_dir . $efile ); pop @exclude_parts if $exclude_parts[-1] eq ''; next EXCLUDE if @exclude_parts > @file_parts; my @subparts = @file_parts[ 0 .. $#exclude_parts ]; my $exclude_join = join '/', @exclude_parts; my $sub_join = join '/', @subparts; next EXCLUDE if $exclude_join ne $sub_join; $is_in_dir = 1; last EXCLUDE; } return $is_in_dir; } 1; __END__ =pod =encoding UTF-8 =head1 NAME Test::CheckManifest - Check if your Manifest matches your distro =head1 VERSION version 1.42 =head1 SYNOPSIS use Test::CheckManifest; ok_manifest(); =head2 EXPORT There is only one method exported: C =head1 METHODS =head2 ok_manifest [{exclude => $arref}][$msg] checks whether the Manifest file matches the distro or not. To match a distro the Manifest has to name all files that come along with the distribution. To check the Manifest file, this module searches for a file named C. To exclude some directories from this test, you can specify these dirs in the hashref. ok_manifest({exclude => ['/var/test/']}); is ok if the files in C are not named in the C file. That means that the paths in the exclude array must be "pseudo-absolute" (absolute to your distribution). To use a "filter" you can use the key "filter" ok_manifest({filter => [qr/\.svn/]}); With that you can exclude all files with an '.svn' in the filename or in the path from the test. These files would be excluded (as examples): =over 4 =item * /dist/var/.svn/test =item * /dist/lib/test.svn =back You can also combine "filter" and "exclude" with 'and' or 'or' default is 'or': ok_manifest({exclude => ['/var/test'], filter => [qr/\.svn/], bool => 'and'}); These files have to be named in the C: =over 4 =item * /var/foo/.svn/any.file =item * /dist/t/file.svn =item * /var/test/test.txt =back These files not: =over 4 =item * /var/test/.svn/* =item * /var/test/file.svn =back By default, C will look for the file C in the current working directory (which is how tests are traditionally run). If you wish to specify a different directory, you may pass the C or C parameters, for example: ok_manifest({dir => '/path/to/my/dist/'}); =head1 EXCLUDING FILES Beside C and C there is another way to exclude files: C. This is a file with filenames that should be excluded: t/my_very_own.t file_to.skip =head1 REPLACE THIS MODULE You can replace the test scripts using C with this one using L. use Test::More tests => 2; use ExtUtils::Manifest; is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing'; is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra'; (L). =head1 ACKNOWLEDGEMENT Great thanks to Christopher H. Laco, who did a lot of testing stuff for me and he reported some bugs to RT. =head1 AUTHOR Renee Baecker =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2018 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) =cut Test-CheckManifest-1.42/Makefile.PL0000644000175000017500000000310513434023237016315 0ustar reneebreneeb# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. use strict; use warnings; use 5.008; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Check if your Manifest matches your distro", "AUTHOR" => "Renee Baecker ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Test-CheckManifest", "LICENSE" => "artistic_2", "MIN_PERL_VERSION" => "5.008", "NAME" => "Test::CheckManifest", "PREREQ_PM" => { "Carp" => 0, "Cwd" => "3.75", "Data::Dumper" => 0, "File::Basename" => 0, "File::Find" => 0, "File::Spec" => 0, "Scalar::Util" => 0, "Test::Builder" => 0, "Test::More" => 0 }, "TEST_REQUIRES" => { "CPAN::Meta::YAML" => 0, "File::Path" => 0, "IO::File" => 0, "Pod::Coverage::TrustPod" => 0 }, "VERSION" => "1.42", "test" => { "TESTS" => "t/*.t t/extra/*.t t/xt/*.t" } ); my %FallbackPrereqs = ( "CPAN::Meta::YAML" => 0, "Carp" => 0, "Cwd" => "3.75", "Data::Dumper" => 0, "File::Basename" => 0, "File::Find" => 0, "File::Path" => 0, "File::Spec" => 0, "IO::File" => 0, "Pod::Coverage::TrustPod" => 0, "Scalar::Util" => 0, "Test::Builder" => 0, "Test::More" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); Test-CheckManifest-1.42/META.json0000644000175000017500000000450713434023237015773 0ustar reneebreneeb{ "abstract" : "Check if your Manifest matches your distro", "author" : [ "Renee Baecker " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010", "license" : [ "artistic_2" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-CheckManifest", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Pod::Coverage::TrustPod" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" } }, "runtime" : { "requires" : { "Carp" : "0", "Cwd" : "3.75", "Data::Dumper" : "0", "File::Basename" : "0", "File::Find" : "0", "File::Spec" : "0", "Scalar::Util" : "0", "Test::Builder" : "0", "Test::More" : "0", "perl" : "5.008" } }, "test" : { "requires" : { "CPAN::Meta::YAML" : "0", "File::Path" : "0", "IO::File" : "0", "Pod::Coverage::TrustPod" : "0" } } }, "provides" : { "Test::CheckManifest" : { "file" : "lib/Test/CheckManifest.pm", "version" : "1.42" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "http://github.com/reneeb/Test-CheckManifest/issues" }, "homepage" : "http://github.com/reneeb/Test-CheckManifest", "repository" : { "type" : "git", "url" : "http://github.com/reneeb/Test-CheckManifest.git", "web" : "http://github.com/reneeb/Test-CheckManifest" } }, "version" : "1.42", "x_contributors" : [ "Dan Book ", "doug ", "LorenzoTa ", "LorenzoTa ", "Michael Gray ", "Mohammad S Anwar ", "reneeb ", "reneeb ", "Renee " ], "x_serialization_backend" : "JSON::XS version 3.04" } Test-CheckManifest-1.42/LICENSE0000644000175000017500000002152213434023237015353 0ustar reneebreneebThis software is Copyright (c) 2018 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) The Artistic License 2.0 Copyright (c) 2000-2006, The Perl Foundation. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. Definitions "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. "You" and "your" means any person who would like to copy, distribute, or modify the Package. "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. "Source" form means the source code, documentation source, and configuration files for the Package. "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. Permission for Use and Modification Without Distribution (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. Permissions for Redistribution of the Standard Version (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. Distribution of Modified Versions of the Package as Source (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. Aggregating or Linking the Package (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. Items That are Not Considered Part of a Modified Version (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. General Provisions (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Test-CheckManifest-1.42/MANIFEST.SKIP0000644000175000017500000000005213434023237016237 0ustar reneebreneeb^Test.txt$ data/Test2.dat dist.ini \.swp$