[Opensrf-commits] r1405 - in branches/sboyette/src/perl: . t

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 8 18:26:58 EDT 2008


Author: sboyette
Date: 2008-08-08 18:26:54 -0400 (Fri, 08 Aug 2008)
New Revision: 1405

Removed:
   branches/sboyette/src/perl/t/boilerplate.t
Modified:
   branches/sboyette/src/perl/Changes
   branches/sboyette/src/perl/Makefile.PL
   branches/sboyette/src/perl/README
Log:
misc changes, yanking boilerplate tests

Modified: branches/sboyette/src/perl/Changes
===================================================================
--- branches/sboyette/src/perl/Changes	2008-08-08 22:07:16 UTC (rev 1404)
+++ branches/sboyette/src/perl/Changes	2008-08-08 22:26:54 UTC (rev 1405)
@@ -1,5 +1,5 @@
 Revision history for OpenSRF
 
-0.01    Date/time
+0.9     2006/07
         First version, released on an unsuspecting world.
 

Modified: branches/sboyette/src/perl/Makefile.PL
===================================================================
--- branches/sboyette/src/perl/Makefile.PL	2008-08-08 22:07:16 UTC (rev 1404)
+++ branches/sboyette/src/perl/Makefile.PL	2008-08-08 22:26:54 UTC (rev 1405)
@@ -19,7 +19,7 @@
 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;

Modified: branches/sboyette/src/perl/README
===================================================================
--- branches/sboyette/src/perl/README	2008-08-08 22:07:16 UTC (rev 1404)
+++ branches/sboyette/src/perl/README	2008-08-08 22:26:54 UTC (rev 1405)
@@ -1,17 +1,8 @@
 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.
+OpenSRF (Open OpenSRF (Open Scalable Request Framework) is a core
+subsystem of the Evergreen ILS.
 
-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.
-
-
 INSTALLATION
 
 To install this module, run the following commands:
@@ -30,22 +21,12 @@
 
 You can also look for information at:
 
-    RT, CPAN's request tracker
-        http://rt.cpan.org/NoAuth/Bugs.html?Dist=OpenSRF
+    http://svn.open-ils.org/trac/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
-
-
 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.

Deleted: branches/sboyette/src/perl/t/boilerplate.t
===================================================================
--- branches/sboyette/src/perl/t/boilerplate.t	2008-08-08 22:07:16 UTC (rev 1404)
+++ branches/sboyette/src/perl/t/boilerplate.t	2008-08-08 22:26:54 UTC (rev 1405)
@@ -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');
-
-
-}
-



More information about the opensrf-commits mailing list