From a3369adfe29f184cd6805caa4f33a7f163f6f152 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 22 Mar 2009 18:05:12 +0000 Subject: [PATCH] fix boilerplate texts git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@36 447b33ff-793d-4489-8442-9bea7d161be5 --- Changes | 4 ++-- README | 13 ++---------- lib/Redis.pm | 8 +++---- t/boilerplate.t | 55 ------------------------------------------------- 4 files changed, 8 insertions(+), 72 deletions(-) delete mode 100644 t/boilerplate.t diff --git a/Changes b/Changes index ebfa411..5a0af9b 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,5 @@ Revision history for Redis -0.01 Date/time - First version, released on an unsuspecting world. +0.01 Sun Mar 22 19:02:17 CET 2009 + First version, tracking git://github.com/antirez/redis diff --git a/README b/README index d3d7256..a386e91 100644 --- a/README +++ b/README @@ -1,16 +1,7 @@ Redis -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. - +Perl binding for Redis database which is in-memory hash store with +support for scalars, arrays and sets and disk persistence. INSTALLATION diff --git a/lib/Redis.pm b/lib/Redis.pm index 074cb34..88ba139 100644 --- a/lib/Redis.pm +++ b/lib/Redis.pm @@ -9,7 +9,7 @@ use Carp qw/confess/; =head1 NAME -Redis - The great new Redis! +Redis - perl binding for Redis database =cut @@ -20,13 +20,13 @@ our $VERSION = '0.01'; Pure perl bindings for L +This version support git version of Redis available at +L + use Redis; my $r = Redis->new(); - - - =head1 FUNCTIONS =head2 new diff --git a/t/boilerplate.t b/t/boilerplate.t deleted file mode 100644 index 9c88934..0000000 --- a/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/Redis.pm'); - - -} - -- 2.20.1