From: Florian Ragwitz Date: Sun, 6 Jun 2010 14:25:39 +0000 (+0200) Subject: Convert to Dist::Zilla X-Git-Tag: 0.8~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FTest-EOL.git;a=commitdiff_plain;h=94bc2901714b2203fc2ae3013b3991007f61f8ab Convert to Dist::Zilla --- diff --git a/.gitignore b/.gitignore index 8ee9a5f..5b44085 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ pm_to_blib MANIFEST MANIFEST.bak Makefile.old - +.build/ diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index ed2ade8..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1,12 +0,0 @@ -MANIFEST.bak -MANIFEST.SKIP -.git -.gitignore -Test-EOL-* -Makefile.old -.shipit -^Makefile$ -blib -pm_to_blib -.*.swp - diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index e937bd2..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,21 +0,0 @@ -use inc::Module::Install 0.78; - -name 'Test-EOL'; -license 'perl'; -author 'Tomas Doran '; - -all_from 'lib/Test/EOL.pm'; -requires 'Test::More'; -requires 'Test::Builder'; -requires 'File::Spec'; -requires 'FindBin'; -requires 'File::Find'; - -resources repository => 'git://github.com/bobtfish/perl-test-eol.git'; - -if ($Module::Install::AUTHOR) { - system("pod2text lib/Test/EOL.pm > README") and die; -} - -WriteAll; - diff --git a/README b/README deleted file mode 100644 index d7ba2fe..0000000 --- a/README +++ /dev/null @@ -1,92 +0,0 @@ -NAME - Test::EOL - Check the correct line endings in your project - -SYNOPSIS - "Test::EOL" lets you check the presence of windows line endings in your - perl code. It report its results in standard "Test::Simple" fashion: - - use Test::EOL tests => 1; - eol_unix_ok( 'lib/Module.pm', 'Module is ^M free'); - - and to add checks for trailing whitespace: - - use Test::EOL tests => 1; - eol_unix_ok( 'lib/Module.pm', 'Module is ^M and trailing whitespace free', { trailing_whitespace => 1 }); - - Module authors can include the following in a t/eol.t and have - "Test::EOL" automatically find and check all perl files in a module - distribution: - - use Test::EOL; - all_perl_files_ok(); - - or - - use Test::EOL; - all_perl_files_ok( @mydirs ); - - and if authors would like to check for trailing whitespace: - - use Test::EOL; - all_perl_files_ok({ trailing_whitespace => 1 }); - - or - - use Test::EOL; - all_perl_files_ok({ trailing_whitespace => 1 }, @mydirs ); - -DESCRIPTION - This module scans your project/distribution for any perl files (scripts, - modules, etc) for the presence of windows line endings. - -EXPORT - A list of functions that can be exported. You can delete this section if - you don't export anything, such as for a purely object-oriented module. - -FUNCTIONS - all_perl_files_ok( [ \%options ], [ @directories ] ) - Applies "eol_unix_ok()" to all perl files found in @directories (and sub - directories). If no <@directories> is given, the starting point is one - level above the current running script, that should cover all the files - of a typical CPAN distribution. A perl file is *.pl or *.pm or *.t or a - file starting with "#!...perl" - - If the test plan is defined: - - use Test::EOL tests => 3; - all_perl_files_ok(); - - the total number of files tested must be specified. - - eol_unix_ok( $file [, $text] [, \%options ] ) - Run a unix EOL check on $file. For a module, the path (lib/My/Module.pm) - or the name (My::Module) can be both used. - -AUTHOR - Tomas Doran (t0m) "" - -BUGS - Testing for EOL styles other than unix (\n) currently unsupported. - - The source code can be found on github, as listed in " META.yml ", - patches are welcome. - - Otherwise please report any bugs or feature requests to "bug-test-eol at - rt.cpan.org", or through the web interface at - . I will be - notified, and then you'll automatically be notified of progress on your - bug as I make changes. - -ACKNOWLEDGEMENTS - Shamelessly ripped off from Test::NoTabs. - -SEE ALSO - Test::More, Test::Pod. Test::Distribution, , - Test::NoTabs, Module::Install::AuthorTests. - -COPYRIGHT & LICENSE - Copyright 2009 Tomas Doran, some rights reserved. - - This program is free software; you can redistribute it and/or modify it - under the same terms as Perl itself. - diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..4368af8 --- /dev/null +++ b/dist.ini @@ -0,0 +1,16 @@ +name = Test-EOL +version = 0.7 +author = Tomas Doran +author = Arthur Axel 'fREW' Schmidt +author = Kent Fredric +author = Florian Ragwitz +license = Perl_5 +copyright_holder = Tomas Doran + +[@Filter] +-bundle = @FLORA +-remove = EOLTests ; in our tests we need windows line endings +dist = Test-EOL +repository_at = catagits + +[CompileTests] diff --git a/lib/Test/EOL.pm b/lib/Test/EOL.pm index 3976a44..bd736ba 100644 --- a/lib/Test/EOL.pm +++ b/lib/Test/EOL.pm @@ -1,4 +1,5 @@ package Test::EOL; +# ABSTRACT: Check the correct line endings in your project use strict; use warnings; @@ -8,9 +9,7 @@ use File::Spec; use FindBin qw($Bin); use File::Find; -use vars qw( $VERSION $PERL $UNTAINT_PATTERN $PERL_PATTERN); - -$VERSION = '0.7'; +use vars qw( $PERL $UNTAINT_PATTERN $PERL_PATTERN); $PERL = $^X || 'perl'; $UNTAINT_PATTERN = qr|^([-+@\w./:\\]+)$|; @@ -178,11 +177,6 @@ sub _untaint { } 1; -__END__ - -=head1 NAME - -Test::EOL - Check the correct line endings in your project =head1 SYNOPSIS @@ -229,9 +223,7 @@ modules, etc) for the presence of windows line endings. A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module. -=head1 FUNCTIONS - -=head2 all_perl_files_ok( [ \%options ], [ @directories ] ) +=func all_perl_files_ok( [ \%options ], [ @directories ] ) Applies C to all perl files found in C<@directories> (and sub directories). If no <@directories> is given, the starting point is one level @@ -246,28 +238,11 @@ If the test plan is defined: the total number of files tested must be specified. -=head2 eol_unix_ok( $file [, $text] [, \%options ] ) +=func eol_unix_ok( $file [, $text] [, \%options ] ) Run a unix EOL check on C<$file>. For a module, the path (lib/My/Module.pm) or the name (My::Module) can be both used. -=head1 AUTHOR - -Tomas Doran (t0m) C<< >> - -=head1 BUGS - -Testing for EOL styles other than unix (\n) currently unsupported. - -The source code can be found on github, as listed in C< META.yml >, -patches are welcome. - -Otherwise please report any bugs or feature requests to -C, or through the web interface at -L. -I will be notified, and then you'll automatically be notified of progress on -your bug as I make changes. - =head1 ACKNOWLEDGEMENTS Shamelessly ripped off from L. @@ -277,12 +252,4 @@ Shamelessly ripped off from L. L, L. L, L, L, L. -=head1 COPYRIGHT & LICENSE - -Copyright 2009 Tomas Doran, some rights reserved. - -This program is free software; you can redistribute it and/or modify it -under the same terms as Perl itself. - =cut - diff --git a/t/00-load.t b/t/00-load.t deleted file mode 100644 index 57483c1..0000000 --- a/t/00-load.t +++ /dev/null @@ -1,9 +0,0 @@ -#!perl -T - -use Test::More tests => 1; - -BEGIN { - use_ok( 'Test::EOL' ); -} - -diag( "Testing Test::EOL $Test::EOL::VERSION, Perl $], $^X" ); diff --git a/t/04-pod.t b/t/04-pod.t deleted file mode 100644 index e7cae75..0000000 --- a/t/04-pod.t +++ /dev/null @@ -1,4 +0,0 @@ -use Test::More; -eval "use Test::Pod"; -plan skip_all => "Test::Pod required for testing POD" if $@; -all_pod_files_ok(); diff --git a/t/05-pod-coverage.t b/t/05-pod-coverage.t deleted file mode 100644 index a0b0fa9..0000000 --- a/t/05-pod-coverage.t +++ /dev/null @@ -1,4 +0,0 @@ -use Test::More; -eval "use Test::Pod::Coverage"; -plan skip_all => "Test::Pod::Coverage required for testing POD coverage" if $@; -all_pod_coverage_ok();