-^\.git
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
-\..*?\.swp$
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
-^blib/
-^Makefile$
-\.bak$
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+
+# Avoid temp and backup files.
+~$
+\.tmp$
\.old$
-^Test-WWW-Selenium-Catalyst.*
+\.bak$
+\.sw[op]$
+\#$
+\b\.#
+\.DS_Store$
+
+# No tarballs!
+\.gz$
+\.tar$
+
+svn.authors
+^\.git
use warnings;
use inc::Module::Install;
-name('Test-WWW-Selenium-Catalyst');
-author('Jonathan Rockway <jrockway@cpan.org>');
-version_from('lib/Test/WWW/Selenium/Catalyst.pm');
-abstract_from('lib/Test/WWW/Selenium/Catalyst.pm');
-license('Perl');
-include('ExtUtils::AutoInstall');
+name 'Test-WWW-Selenium-Catalyst';
+perl_version '5.008000';
+all_from 'lib/Test/WWW/Selenium/Catalyst.pm';
+license 'Perl';
requires(
'Alien::SeleniumRC' => 0,
'Catalyst::Runtime' => 5.7001,
'Test::WWW::Selenium' => 0,
'Test::More' => 0,
'Catalyst::Utils' => 0,
- );
+);
# Old vers of CPAN dont set the env var. safer to assume we are running than
# ask about deps twice
+++ /dev/null
-#!perl -T
-
-use strict;
-use warnings;
-use Test::More tests => 3;
-
-sub not_in_file_ok {
- my ($filename, %regex) = @_;
- open my $fh, "<", $filename
- or die "couldn't open $filename for reading: $!";
-
- my %violated;
-
- while (my $line = <$fh>) {
- while (my ($desc, $regex) = each %regex) {
- if ($line =~ $regex) {
- push @{$violated{$desc}||=[]}, $.;
- }
- }
- }
-
- if (%violated) {
- fail("$filename contains boilerplate text");
- diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
- } else {
- pass("$filename contains no boilerplate text");
- }
-}
-
-not_in_file_ok(README =>
- "The README is used..." => qr/The README is used/,
- "'version information here'" => qr/to provide version information/,
-);
-
-not_in_file_ok(Changes =>
- "placeholder date/time" => qr(Date/time)
-);
-
-sub module_boilerplate_ok {
- my ($module) = @_;
- not_in_file_ok($module =>
- 'the great new $MODULENAME' => qr/ - The great new /,
- 'boilerplate description' => qr/Quick summary of what the module/,
- 'stub function definition' => qr/function[12]/,
- );
-}
-
-module_boilerplate_ok('lib/Test/WWW/Selenium/Catalyst.pm');