Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prepare v0.02 release

  • Loading branch information...
commit 8da9b51f65673906ef57b245939d03f5c95484a3 1 parent e549f65
@moritz authored
Showing with 7 additions and 60 deletions.
  1. +5 −2 Changes
  2. +2 −2 lib/WebService/Libris.pm
  3. +0 −56 t/boilerplate.t
View
7 Changes
@@ -1,5 +1,8 @@
Revision history for WebService-Libris
-0.01 Date/time
- First version, released on an unsuspecting world.
+0.02 2011-06-19
+ Improved documentation
+ Accessors are a bit more robust
+0.01 2011-06-18
+ First version, released on an unsuspecting world.
View
4 lib/WebService/Libris.pm
@@ -28,14 +28,14 @@ WebService::Libris - Access book meta data from libris.kb.se
=head1 VERSION
-Version 0.01
+Version 0.02
Note that this low version number actually reflects the immaturity of this
module - no unit tests yet :(
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.02';
=head1 SYNOPSIS
View
56 t/boilerplate.t
@@ -1,56 +0,0 @@
-#!perl -T
-
-use 5.006;
-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/WebService/Libris.pm');
-
-
-}
-
Please sign in to comment.
Something went wrong with that request. Please try again.