From: sboyette Date: Fri, 8 Aug 2008 22:26:54 +0000 (+0000) Subject: misc changes, yanking boilerplate tests X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e9a023bf4fd189281cf7e2be7912f895107c8eaa;p=OpenSRF.git misc changes, yanking boilerplate tests git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/sboyette@1405 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perl/Changes b/src/perl/Changes index da86cc4..c12049f 100644 --- a/src/perl/Changes +++ b/src/perl/Changes @@ -1,5 +1,5 @@ Revision history for OpenSRF -0.01 Date/time +0.9 2006/07 First version, released on an unsuspecting world. diff --git a/src/perl/Makefile.PL b/src/perl/Makefile.PL index cad1fa0..7cff0b9 100644 --- a/src/perl/Makefile.PL +++ b/src/perl/Makefile.PL @@ -19,7 +19,7 @@ requires 'Net::Domain' => 0; requires 'Net::Server' => 0; requires 'Time::HiRes' => 0; requires 'Time::Local' => 0; -requires 'UNIVERSAL::require' => 0 +requires 'UNIVERSAL::require' => 0; requires 'XML::LibXML' => 0; WriteAll; diff --git a/src/perl/README b/src/perl/README index d1d3c7e..b7015e5 100644 --- a/src/perl/README +++ b/src/perl/README @@ -1,16 +1,7 @@ OpenSRF -The README is used to introduce the module and provide instructions on -how to install the module, any machine dependencies it may have (for -example C compilers and installed libraries) and any other information -that should be provided before the module is installed. - -A README file is required for CPAN modules since CPAN extracts the README -file from a module distribution so that people browsing the archive -can use it to get an idea of the module's uses. It is usually a good idea -to provide version information here so that people can decide whether -fixes for the module are worth downloading. - +OpenSRF (Open OpenSRF (Open Scalable Request Framework) is a core +subsystem of the Evergreen ILS. INSTALLATION @@ -30,22 +21,12 @@ perldoc command. You can also look for information at: - RT, CPAN's request tracker - http://rt.cpan.org/NoAuth/Bugs.html?Dist=OpenSRF - - AnnoCPAN, Annotated CPAN documentation - http://annocpan.org/dist/OpenSRF - - CPAN Ratings - http://cpanratings.perl.org/d/OpenSRF - - Search CPAN - http://search.cpan.org/dist/OpenSRF + http://svn.open-ils.org/trac/OpenSRF COPYRIGHT AND LICENCE -Copyright (C) 2008 Equinox +Copyright (C) 2008 Equinox Software, Inc. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/src/perl/t/boilerplate.t b/src/perl/t/boilerplate.t deleted file mode 100644 index da749c7..0000000 --- a/src/perl/t/boilerplate.t +++ /dev/null @@ -1,55 +0,0 @@ -#!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"); - } -} - -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]/, - ); -} - -TODO: { - local $TODO = "Need to replace the 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) - ); - - module_boilerplate_ok('lib/OpenSRF.pm'); - - -} -