From: Chris Prather Date: Wed, 26 Sep 2007 11:52:10 +0000 (+0000) Subject: remove File::Slurp as we don't need it X-Git-Tag: 0_06~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Daemonize.git;a=commitdiff_plain;h=b3cd9b56375fb43cb35f5b2d7da0e42b919511f7 remove File::Slurp as we don't need it fix minor testing interface changes r29121@alice-3: perigrin | 2007-09-19 15:59:12 -0500 fix a bug that Kake discovered inadvertantly r29122@alice-3: perigrin | 2007-09-19 16:00:50 -0500 update Changes and Version number r29342@alice-3: perigrin | 2007-09-26 06:45:10 -0500 add a first cut for a JobControl module that uses MooseX::Workers to run jobs asynchronously r29343@alice-3: perigrin | 2007-09-26 06:49:46 -0500 merging File-Stat-Moose stuff r29344@alice-3: perigrin | 2007-09-26 06:50:46 -0500 merging iterator stuff --- diff --git a/Makefile.PL b/Makefile.PL index ff7aab9..9116fac 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,12 +6,13 @@ name 'MooseX-Daemonize'; all_from 'lib/MooseX/Daemonize.pm'; # Specific dependencies -build_requires 'Test::More' => 0; -requires 'Proc::Daemon' => 0; -requires 'Carp' => 0; -requires 'File::Pid' => 0; -requires 'MooseX::Getopt' => 0; -requires 'Moose' => 0.20; +build_requires 'Test::More' => 0; + +requires 'Proc::Daemon' => 0; +requires 'Carp' => 0; +requires 'File::Pid' => 0; +requires 'MooseX::Getopt' => 0; +requires 'Moose' => 0.20; no_index 'directory' => 'examples'; diff --git a/lib/Test/MooseX/Daemonize.pm b/lib/Test/MooseX/Daemonize.pm index 85a72b3..a9c880f 100644 --- a/lib/Test/MooseX/Daemonize.pm +++ b/lib/Test/MooseX/Daemonize.pm @@ -2,25 +2,26 @@ use strict; package Test::MooseX::Daemonize; use Proc::Daemon; -use File::Slurp; # BEGIN CARGO CULTING use Sub::Exporter; use Test::Builder; -our $VERSION = '0.01'; +our $VERSION = '0.02'; our $AUTHORITY = 'cpan:PERIGRIN'; -my @exports = qw[ - daemonize_ok - check_test_output -]; +{ + my @exports = qw[ + daemonize_ok + check_test_output + ]; -Sub::Exporter::setup_exporter( - { - exports => \@exports, - groups => { default => \@exports } - } -); + Sub::Exporter::setup_exporter( + { + exports => \@exports, + groups => { default => \@exports } + } + ); +} our $Test = Test::Builder->new; @@ -33,7 +34,8 @@ sub daemonize_ok { else { sleep(1); # Punt on sleep time, 1 seconds should be enough $Test->ok( -e $daemon->pidfile->file, $msg ) - || $Test->diag( 'Pidfile (' . $daemon->pidfile->file . ') not found.' ); + || $Test->diag( + 'Pidfile (' . $daemon->pidfile->file . ') not found.' ); } }