Skip to content

Commit

Permalink
Turning the repo into the whole CPAN distribution mess
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven N. Severinghaus committed May 12, 2011
1 parent 3345dff commit 34e705e
Show file tree
Hide file tree
Showing 13 changed files with 175 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .bzrignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Makefile
blib
pm_to_blib
Finance-Bank-US-INGDirect-0.06_01.tar.gz
14 changes: 14 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Revision history for Finance-Bank-US-INGDirect

0.04 2009-09-28 14:38:33 -0500
Minor tweaks to docs and code; more requirements documented

0.03 2009-09-27 14:10:13 -0500
New sub transfer; list requirements in Makefile.PL

0.02 2009-09-12 17:12:49 -0500
Updated for ING's new authentication process.

0.01 2009-04-01 23:28:04 -0500
First version released.

1 change: 0 additions & 1 deletion INGDirect.pm

This file was deleted.

8 changes: 8 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Changes
MANIFEST
Makefile.PL
README
lib/Finance/Bank/US/INGDirect.pm
t/00-load.t
t/pod-coverage.t
t/pod.t
23 changes: 23 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'Finance::Bank::US::INGDirect',
AUTHOR => q{Steven N. Severinghaus <sns-perl@severinghaus.org>},
VERSION_FROM => 'lib/Finance/Bank/US/INGDirect.pm',
ABSTRACT_FROM => 'lib/Finance/Bank/US/INGDirect.pm',
($ExtUtils::MakeMaker::VERSION >= 6.3002
? ('LICENSE'=> 'perl')
: ()),
PL_FILES => {},
PREREQ_PM => {
'Test::More' => 0,
'Date::Parse' => 0,
'LWP::UserAgent' => 0,
'HTTP::Cookies' => 0,
'HTML::Strip' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Finance-Bank-US-INGDirect-*' },
);
22 changes: 22 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
NAME

Finance::Bank::US::INGDirect
Check balances and transactions for US INGDirect accounts

DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command:

perldoc Finance::Bank::US::INGDirect

COPYRIGHT AND LICENCE

Copyright (C) 2009 Steven N. Severinghaus <sns-perl@severinghaus.org>

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

10 changes: 10 additions & 0 deletions ignore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
blib*
Makefile
Makefile.old
Build
_build*
pm_to_blib*
*.tar.gz
.lwpcookies
Finance-Bank-US-INGDirect-*
cover_db
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions t/00-load.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!perl -T

use Test::More tests => 1;

BEGIN {
use_ok( 'Finance::Bank::US::INGDirect' );
}

diag( "Testing Finance::Bank::US::INGDirect $Finance::Bank::US::INGDirect::VERSION, Perl $], $^X" );
55 changes: 55 additions & 0 deletions t/boilerplate.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!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/Finance/Bank/US/INGDirect.pm');


}

18 changes: 18 additions & 0 deletions t/pod-coverage.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use strict;
use warnings;
use Test::More;

# Ensure a recent version of Test::Pod::Coverage
my $min_tpc = 1.08;
eval "use Test::Pod::Coverage $min_tpc";
plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
if $@;

# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
# but older versions don't recognize some common documentation styles
my $min_pc = 0.18;
eval "use Pod::Coverage $min_pc";
plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
if $@;

all_pod_coverage_ok();
12 changes: 12 additions & 0 deletions t/pod.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!perl -T

use strict;
use warnings;
use Test::More;

# Ensure a recent version of Test::Pod
my $min_tp = 1.22;
eval "use Test::Pod $min_tp";
plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;

all_pod_files_ok();

0 comments on commit 34e705e

Please sign in to comment.