diff -Nru liblog-dispatch-perl-2.27/Changes liblog-dispatch-perl-2.29/Changes --- liblog-dispatch-perl-2.27/Changes 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/Changes 2011-03-18 20:53:17.000000000 +0000 @@ -1,3 +1,14 @@ +2.29 + +- Add is_$level methods for compatibility with Log::Contextual. Patch by frew. + + +2.28 2010-12-13 + +- The Log::Dispatch module still had version 2.26 in the last + release. Reported by Øyvind Skaar. RT #63876. + + 2.27 2010-10-16 - Fix docs on handling of arrays passed to ->debug, ->error, etc. Requested by diff -Nru liblog-dispatch-perl-2.27/debian/changelog liblog-dispatch-perl-2.29/debian/changelog --- liblog-dispatch-perl-2.27/debian/changelog 2010-10-20 14:59:38.000000000 +0000 +++ liblog-dispatch-perl-2.29/debian/changelog 2011-03-20 02:45:18.000000000 +0000 @@ -1,3 +1,13 @@ +liblog-dispatch-perl (2.29-1) unstable; urgency=low + + * New upstream release + * Refresh copyright information + * Rewrite control description + * Add myself to Uploaders and Copyright + * Bump to debhelper compat 8 + + -- Jonathan Yu Sat, 19 Mar 2011 21:07:15 -0400 + liblog-dispatch-perl (2.27-1) unstable; urgency=low * Added myself to Uploaders diff -Nru liblog-dispatch-perl-2.27/debian/compat liblog-dispatch-perl-2.29/debian/compat --- liblog-dispatch-perl-2.27/debian/compat 2010-08-19 16:17:32.000000000 +0000 +++ liblog-dispatch-perl-2.29/debian/compat 2011-03-20 02:45:18.000000000 +0000 @@ -1 +1 @@ -7 +8 diff -Nru liblog-dispatch-perl-2.27/debian/control liblog-dispatch-perl-2.29/debian/control --- liblog-dispatch-perl-2.27/debian/control 2010-10-20 18:54:33.000000000 +0000 +++ liblog-dispatch-perl-2.29/debian/control 2011-03-20 02:45:18.000000000 +0000 @@ -1,12 +1,15 @@ Source: liblog-dispatch-perl Section: perl Priority: optional -Build-Depends: debhelper (>= 7) -Build-Depends-Indep: perl, libparams-validate-perl, +Build-Depends: debhelper (>= 8) +Build-Depends-Indep: perl, + libparams-validate-perl, + perl (>= 5.10.1) | libtest-simple-perl (>= 0.88), perl (>= 5.10.1) | libsys-syslog-perl Maintainer: Debian Perl Group Uploaders: Jonas Genannt , Ernesto Hernández-Novich (USB) , + Jonathan Yu , Nicholas Bamber Standards-Version: 3.9.1 Homepage: http://search.cpan.org/dist/Log-Dispatch/ @@ -15,18 +18,15 @@ Package: liblog-dispatch-perl Architecture: all -Depends: ${misc:Depends}, ${perl:Depends}, libparams-validate-perl, +Depends: ${misc:Depends}, ${perl:Depends}, + libparams-validate-perl, perl (>= 5.10.1) | libsys-syslog-perl Description: message dispatcher to multiple Log::Dispatch::* objects - Log::Dispatch is a suite of OO modules for logging messages to - multiple outputs, each of which can have a minimum and maximum log - level. It is designed to be easily subclassed, both for creating a - new dispatcher object and particularly for creating new outputs. + Log::Dispatch is a collection of Perl modules useful for logging messages to + multiple outputs, each of which can have a minimum and maximum log level. It + is designed to be easily subclassed, both for creating a new dispatcher + object and particularly for creating new outputs. . - It also allows both global (dispatcher level) and local (logging - object) message formatting callbacks which allows greater flexibility - and should reduce the need for subclassing. - . - Subclassing is only needed to send a message to a different output, - not to change the message format. - + It also allows both global (dispatcher level) and local (logging object) + message formatting callbacks which allows greater flexibility and reduces + the need for subclassing. diff -Nru liblog-dispatch-perl-2.27/debian/copyright liblog-dispatch-perl-2.29/debian/copyright --- liblog-dispatch-perl-2.27/debian/copyright 2010-10-20 14:59:38.000000000 +0000 +++ liblog-dispatch-perl-2.29/debian/copyright 2011-03-20 02:45:18.000000000 +0000 @@ -4,15 +4,15 @@ Name: Log-Dispatch Files: * -Copyright: 2010, Dave Rolsky +Copyright: 2011, Dave Rolsky License: Artistic-2.0 Files: debian/* -Copyright: - 2001-2004, Ivan Kohler - 2005, 2007-2008, Jonas Genannt +Copyright: 2010-2011, Jonathan Yu 2010, Ernesto Hernández-Novich (USB) 2010, Nicholas Bamber + 2005-2008, Jonas Genannt + 2001-2004, Ivan Kohler License: Artistic or GPL-1+ License: Artistic-2.0 diff -Nru liblog-dispatch-perl-2.27/dist.ini liblog-dispatch-perl-2.29/dist.ini --- liblog-dispatch-perl-2.27/dist.ini 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/dist.ini 2011-03-18 20:53:17.000000000 +0000 @@ -1,8 +1,10 @@ -name = Log-Dispatch -author = Dave Rolsky -copyright_year = 2010 +name = Log-Dispatch +author = Dave Rolsky +license = Artistic_2_0 +copyright_holder = Dave Rolsky +copyright_year = 2011 -version = 2.27 +version = 2.29 [@Basic] @@ -16,11 +18,11 @@ repository.web = http://hg.urth.org/hg/Log-Dispatch repository.type = hg -[PodWeaver] +[SurgicalPodWeaver] [PkgVersion] -[KwaliteeTests] +[PodSyntaxTests] [NoTabsTests] [EOLTests] [Signature] @@ -33,5 +35,6 @@ [Prereqs / BuildRequires] File::Temp = 0 -Test::More = 0 +Test::More = 0.88 +[@Mercurial] diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/ApacheLog.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/ApacheLog.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/ApacheLog.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/ApacheLog.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::ApacheLog; BEGIN { - $Log::Dispatch::ApacheLog::VERSION = '2.27'; + $Log::Dispatch::ApacheLog::VERSION = '2.29'; } use strict; @@ -69,7 +69,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -107,11 +107,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Base.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Base.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Base.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Base.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Base; BEGIN { - $Log::Dispatch::Base::VERSION = '2.27'; + $Log::Dispatch::Base::VERSION = '2.29'; } use strict; @@ -60,7 +60,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -81,11 +81,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSender.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSender.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSender.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSender.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Email::MailSender; BEGIN { - $Log::Dispatch::Email::MailSender::VERSION = '2.27'; + $Log::Dispatch::Email::MailSender::VERSION = '2.29'; } # By: Joseph Annino @@ -72,7 +72,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -102,11 +102,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSendmail.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSendmail.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSendmail.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSendmail.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Email::MailSendmail; BEGIN { - $Log::Dispatch::Email::MailSendmail::VERSION = '2.27'; + $Log::Dispatch::Email::MailSendmail::VERSION = '2.29'; } use strict; @@ -45,7 +45,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -75,11 +75,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSend.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSend.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MailSend.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MailSend.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Email::MailSend; BEGIN { - $Log::Dispatch::Email::MailSend::VERSION = '2.27'; + $Log::Dispatch::Email::MailSend::VERSION = '2.29'; } use strict; @@ -53,7 +53,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -94,11 +94,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MIMELite.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MIMELite.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email/MIMELite.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email/MIMELite.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Email::MIMELite; BEGIN { - $Log::Dispatch::Email::MIMELite::VERSION = '2.27'; + $Log::Dispatch::Email::MIMELite::VERSION = '2.29'; } use strict; @@ -45,7 +45,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -75,11 +75,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Email.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Email.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Email; BEGIN { - $Log::Dispatch::Email::VERSION = '2.27'; + $Log::Dispatch::Email::VERSION = '2.29'; } use strict; @@ -104,7 +104,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -185,11 +185,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/File/Locked.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/File/Locked.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/File/Locked.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/File/Locked.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::File::Locked; BEGIN { - $Log::Dispatch::File::Locked::VERSION = '2.27'; + $Log::Dispatch::File::Locked::VERSION = '2.29'; } use strict; @@ -39,7 +39,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -70,11 +70,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/File.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/File.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/File.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/File.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::File; BEGIN { - $Log::Dispatch::File::VERSION = '2.27'; + $Log::Dispatch::File::VERSION = '2.29'; } use strict; @@ -166,7 +166,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -254,11 +254,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Handle.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Handle.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Handle.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Handle.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Handle; BEGIN { - $Log::Dispatch::Handle::VERSION = '2.27'; + $Log::Dispatch::Handle::VERSION = '2.29'; } use strict; @@ -49,7 +49,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -92,11 +92,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Null.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Null.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Null.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Null.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Null; BEGIN { - $Log::Dispatch::Null::VERSION = '2.27'; + $Log::Dispatch::Null::VERSION = '2.29'; } use strict; @@ -37,7 +37,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -58,11 +58,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Output.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Output.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Output.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Output.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Output; BEGIN { - $Log::Dispatch::Output::VERSION = '2.27'; + $Log::Dispatch::Output::VERSION = '2.29'; } use strict; @@ -188,7 +188,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -306,11 +306,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Screen.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Screen.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Screen.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Screen.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Screen; BEGIN { - $Log::Dispatch::Screen::VERSION = '2.27'; + $Log::Dispatch::Screen::VERSION = '2.29'; } use strict; @@ -60,7 +60,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -108,11 +108,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch/Syslog.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch/Syslog.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch/Syslog.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch/Syslog.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,6 @@ package Log::Dispatch::Syslog; BEGIN { - $Log::Dispatch::Syslog::VERSION = '2.27'; + $Log::Dispatch::Syslog::VERSION = '2.29'; } use strict; @@ -108,7 +108,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -180,11 +180,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/lib/Log/Dispatch.pm liblog-dispatch-perl-2.29/lib/Log/Dispatch.pm --- liblog-dispatch-perl-2.27/lib/Log/Dispatch.pm 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/lib/Log/Dispatch.pm 2011-03-18 20:53:17.000000000 +0000 @@ -1,4 +1,7 @@ package Log::Dispatch; +BEGIN { + $Log::Dispatch::VERSION = '2.29'; +} use 5.006; @@ -9,7 +12,6 @@ use Params::Validate qw(validate_with ARRAYREF CODEREF); use Carp (); -our $VERSION = '2.26'; our %LEVELS; BEGIN { @@ -223,6 +225,19 @@ return 0; } +sub is_debug { $_[0]->would_log('debug') } +sub is_info { $_[0]->would_log('info') } +sub is_notice { $_[0]->would_log('notice') } +sub is_warning { $_[0]->would_log('warning') } +sub is_warn { $_[0]->would_log('warn') } +sub is_error { $_[0]->would_log('error') } +sub is_err { $_[0]->would_log('err') } +sub is_critical { $_[0]->would_log('critical') } +sub is_crit { $_[0]->would_log('crit') } +sub is_alert { $_[0]->would_log('alert') } +sub is_emerg { $_[0]->would_log('emerg') } +sub is_emergency { $_[0]->would_log('emergency') } + sub _require_dynamic { my ($class) = @_; @@ -245,7 +260,7 @@ =head1 VERSION -version 2.27 +version 2.29 =head1 SYNOPSIS @@ -430,6 +445,12 @@ Given a log level, returns true or false to indicate whether or not anything would be logged for that log level. +=item * is_C<$level> + +There are methods for every log level: C, C, etc. + +This returns true if the logger will log a message at the given level. + =back =head2 Output objects @@ -627,11 +648,11 @@ =head1 COPYRIGHT AND LICENSE -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) =cut diff -Nru liblog-dispatch-perl-2.27/LICENSE liblog-dispatch-perl-2.29/LICENSE --- liblog-dispatch-perl-2.27/LICENSE 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/LICENSE 2011-03-18 20:53:17.000000000 +0000 @@ -1,8 +1,8 @@ -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) The Artistic License 2.0 diff -Nru liblog-dispatch-perl-2.27/Makefile.PL liblog-dispatch-perl-2.29/Makefile.PL --- liblog-dispatch-perl-2.27/Makefile.PL 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/Makefile.PL 2011-03-18 20:53:17.000000000 +0000 @@ -13,7 +13,7 @@ 'AUTHOR' => 'Dave Rolsky ', 'BUILD_REQUIRES' => { 'File::Temp' => '0', - 'Test::More' => '0' + 'Test::More' => '0.88' }, 'CONFIGURE_REQUIRES' => { 'ExtUtils::MakeMaker' => '6.31' @@ -26,7 +26,7 @@ 'Params::Validate' => '0.15', 'Sys::Syslog' => '0.25' }, - 'VERSION' => '2.27', + 'VERSION' => '2.29', 'test' => { 'TESTS' => 't/*.t' } diff -Nru liblog-dispatch-perl-2.27/MANIFEST liblog-dispatch-perl-2.29/MANIFEST --- liblog-dispatch-perl-2.27/MANIFEST 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/MANIFEST 2011-03-18 20:53:17.000000000 +0000 @@ -30,9 +30,8 @@ t/email-exit-helper.pl t/lib/Log/Dispatch/TestUtil.pm t/release-eol.t -t/release-kwalitee.t t/release-no-tabs.t t/release-pod-coverage.t t/release-pod-spell.t -t/release-pod.t +t/release-pod-syntax.t t/sendmail diff -Nru liblog-dispatch-perl-2.27/META.json liblog-dispatch-perl-2.29/META.json --- liblog-dispatch-perl-2.27/META.json 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/META.json 2011-03-18 20:53:17.000000000 +0000 @@ -4,7 +4,7 @@ "Dave Rolsky " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.101670", + "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110240", "license" : [ "artistic_2" ], @@ -17,7 +17,7 @@ "build" : { "requires" : { "File::Temp" : 0, - "Test::More" : 0 + "Test::More" : "0.88" } }, "configure" : { @@ -44,6 +44,6 @@ "web" : "http://hg.urth.org/hg/Log-Dispatch" } }, - "version" : "2.27" + "version" : "2.29" } diff -Nru liblog-dispatch-perl-2.27/META.yml liblog-dispatch-perl-2.29/META.yml --- liblog-dispatch-perl-2.27/META.yml 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/META.yml 2011-03-18 20:53:17.000000000 +0000 @@ -4,11 +4,11 @@ - 'Dave Rolsky ' build_requires: File::Temp: 0 - Test::More: 0 + Test::More: 0.88 configure_requires: ExtUtils::MakeMaker: 6.31 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.101670' +generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110240' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -20,4 +20,4 @@ resources: bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Log-Dispatch repository: http://hg.urth.org/hg/Log-Dispatch -version: 2.27 +version: 2.29 diff -Nru liblog-dispatch-perl-2.27/README liblog-dispatch-perl-2.29/README --- liblog-dispatch-perl-2.27/README 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/README 2011-03-18 20:53:17.000000000 +0000 @@ -1,14 +1,14 @@ This archive contains the distribution Log-Dispatch, -version 2.27: +version 2.29: Dispatches messages to one or more outputs -This software is Copyright (c) 2010 by Dave Rolsky. +This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: - The Artistic License 2.0 + The Artistic License 2.0 (GPL Compatible) diff -Nru liblog-dispatch-perl-2.27/SIGNATURE liblog-dispatch-perl-2.29/SIGNATURE --- liblog-dispatch-perl-2.27/SIGNATURE 2010-10-16 20:50:17.000000000 +0000 +++ liblog-dispatch-perl-2.29/SIGNATURE 2011-03-18 20:53:22.000000000 +0000 @@ -1,5 +1,5 @@ This file contains message digests of all files listed in MANIFEST, -signed via the Module::Signature module, version 0.61. +signed via the Module::Signature module, version 0.66. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: @@ -14,47 +14,46 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -SHA1 f6205ac6a5ae24747982ccb2fce95829df00974e Changes +SHA1 7993d66bcaf63571e70cadc1e0ecb1498c6a193e Changes SHA1 80e345bffac0ecb01b0293b9825111a2c33b090b INSTALL -SHA1 23c628b4a8a36738405ccdacaeb912d2e727b4c0 LICENSE -SHA1 3fa45b69edc5987a28e591f7aae66cd1a9648985 MANIFEST -SHA1 35a98dc078b4cc8b549ab878c2a6b94af9d1fb4f META.json -SHA1 82e71c644337e52a195050a4d87120bcaecb49ea META.yml -SHA1 6ff4f9651854d818a337ca5b77d75a2261987810 Makefile.PL -SHA1 a5b58f11a3f4edfef64a34afb7fb596053387f3a README -SHA1 eb0ecdddd3f47305e17d7f7f87a538c82a1b603e dist.ini -SHA1 31faf68bc027aca301bc1fc039b8d5c87ba9a87d lib/Log/Dispatch.pm -SHA1 ed7c77bafb239bcff84b53e1186cf5d6524d71ea lib/Log/Dispatch/ApacheLog.pm -SHA1 ded18e9355a6096b3711d1f596b3412a6ed695ea lib/Log/Dispatch/Base.pm -SHA1 e7e783b0e4eb9e521964448dab746a9456c2a602 lib/Log/Dispatch/Email.pm -SHA1 1a2ac3e60bf2e7b7a1e0e6cc0d4029e1ce022047 lib/Log/Dispatch/Email/MIMELite.pm -SHA1 4e5629040f6322496fb33bb8e095fac46a5c7f4f lib/Log/Dispatch/Email/MailSend.pm -SHA1 02f5cb7aec3813fbb98c0e5880b26f683baf8775 lib/Log/Dispatch/Email/MailSender.pm -SHA1 33bd8f15c439605412635fadb87aa335616fee08 lib/Log/Dispatch/Email/MailSendmail.pm -SHA1 c36f66254e6e8945c4de0bccdd2fddd9a3d5a2e8 lib/Log/Dispatch/File.pm -SHA1 51715fa9fd18d9ccb29ec4dc018ab8a63bdf8e01 lib/Log/Dispatch/File/Locked.pm -SHA1 52221ba8e7a76d5361f24f1cde4e6ce0029084c8 lib/Log/Dispatch/Handle.pm -SHA1 25fa05fb6abbc5014c1bf9a373de9e0a058ad925 lib/Log/Dispatch/Null.pm -SHA1 25341a40a75917a1d356947e5c23e121674420ab lib/Log/Dispatch/Output.pm -SHA1 c0b3938b8b904edb277da462b2a45ee55eeb8e3b lib/Log/Dispatch/Screen.pm -SHA1 9a475714c2ea846df8e9da37b8a1dbc0c5bed0a2 lib/Log/Dispatch/Syslog.pm -SHA1 df97eb936f0555d2adc1aae7d0518dc9c7353b06 t/00-compile.t -SHA1 03f03f5135dbfac38ad6610e08b376dc510b5ee9 t/01-basic.t -SHA1 587927a0b6aa079ceffecabbccde78cfb9a568dc t/02-email-exit.t -SHA1 3938c81751d8cd0d09a65f6a7a2fbfed96e2a152 t/03-short-syntax.t +SHA1 c715d20265d2931c7564fc64abfdc4f8ff33e297 LICENSE +SHA1 222afadc264d57a2e17d19ca2533e946ee8c4bf7 MANIFEST +SHA1 631dad07d54e115cf279537c45dfe612ad6fd2f5 META.json +SHA1 0c708e06d75902e401b410766a2e9cc9edbdde48 META.yml +SHA1 e41783f5e3820d277e72ed8f46f2201d5b489af7 Makefile.PL +SHA1 b0f16f9c1c2f0cfb75612118ad0178a9f4286ba0 README +SHA1 579506af92fd4049d11414894c8b0466d9078f91 dist.ini +SHA1 a2da673d9b55a8527f5b693224b861536b35f10b lib/Log/Dispatch.pm +SHA1 a5f9c73f5fafdad33d75dd58ad8107cebfa39917 lib/Log/Dispatch/ApacheLog.pm +SHA1 593ecab31ab9d9789e5843182df0c2a21d144ff8 lib/Log/Dispatch/Base.pm +SHA1 9caf072fc052761a257d6fc5263286d1bbe2fb3e lib/Log/Dispatch/Email.pm +SHA1 2e4b746d1d7b7c4256ed5f1a53766ef006dd7aa4 lib/Log/Dispatch/Email/MIMELite.pm +SHA1 120f0e6e391c7b013af5f3c7255e9573a8cd78ec lib/Log/Dispatch/Email/MailSend.pm +SHA1 3eefbe062cc14da3c244cf3833eafcc41b5d0fea lib/Log/Dispatch/Email/MailSender.pm +SHA1 9de13a92eb16eedcbbb51d803294a8500935a6ac lib/Log/Dispatch/Email/MailSendmail.pm +SHA1 da3600152b9679c20ed4479a8c440cfd9c273159 lib/Log/Dispatch/File.pm +SHA1 7c1a22198a07d6bc0743d9e48bc27c411a04eba1 lib/Log/Dispatch/File/Locked.pm +SHA1 2d1336430f86f3fda2739197efb9d30d9ef083ee lib/Log/Dispatch/Handle.pm +SHA1 28a0873548aae4e31cce0bd8334c47b0d5d9251e lib/Log/Dispatch/Null.pm +SHA1 07e81bd1118d2537fe09a8607b8dd4d72fdb0ea1 lib/Log/Dispatch/Output.pm +SHA1 723103444c1c01d8f70a03b194de19951a1d2cc5 lib/Log/Dispatch/Screen.pm +SHA1 86e0eddaeca8d50943cf014a83bf49dbafc679fd lib/Log/Dispatch/Syslog.pm +SHA1 898a7de5445e3a2fdb0619ef3755ec63d2c0713b t/00-compile.t +SHA1 d244bf0cb98ae40026b43c647a85dfb394fff94c t/01-basic.t +SHA1 071817b6ad68b790908b38dfe9657afcd5d6c200 t/02-email-exit.t +SHA1 762bc1b1edd792093415cdb7f3e1cadb0e74345d t/03-short-syntax.t SHA1 cae62e2988e1623b42d5af18c7059af9225be2ce t/email-exit-helper.pl SHA1 66f75fd01fd1c3c4b3fad0a91d66d41c9aa2104d t/lib/Log/Dispatch/TestUtil.pm SHA1 a032c41ef6887fab1b900669c2d304fab46680e2 t/release-eol.t -SHA1 961a1e2c92d836c8cad2d34b784cbc75345dec63 t/release-kwalitee.t SHA1 455d1dd1867212a665ad5ea4126b572411de300c t/release-no-tabs.t -SHA1 c47c6701ade05ffed6eb4b4f82024f6bc5fb87e0 t/release-pod-coverage.t -SHA1 83fa4ecd03b760b5e3dab46158c6607ba0ed69d4 t/release-pod-spell.t -SHA1 f982b775c480b339eee4b1151468769b648126e6 t/release-pod.t +SHA1 867fa319e231e8520cf41baeaf1eba3746031ebb t/release-pod-coverage.t +SHA1 436b024e862590cb1ef8d608b683bb93bf0056a4 t/release-pod-spell.t +SHA1 b30cbdfaf935017c4568c0c91b242438cb87786e t/release-pod-syntax.t SHA1 16667ed5d34e132bb361b463cd451e880390f334 t/sendmail -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) -iEYEARECAAYFAky6EAcACgkQIgMCsV8qvRL8MACbB+/d3W7gdBNyxOevT7B1EupZ -J78An3ezwUGPpM67KghpCTpmZXKT0U95 -=b7dz +iEYEARECAAYFAk2Dxj0ACgkQIgMCsV8qvRJ+pACgjrgFUrXVGZUSFj7hFUQl73gJ +QUgAoJOXzlEKo8yHEtmgq1PO0spPxyhC +=JgtO -----END PGP SIGNATURE----- diff -Nru liblog-dispatch-perl-2.27/t/00-compile.t liblog-dispatch-perl-2.29/t/00-compile.t --- liblog-dispatch-perl-2.27/t/00-compile.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/00-compile.t 2011-03-18 20:53:17.000000000 +0000 @@ -1,6 +1,5 @@ -#!/usr/bin/perl -w - use strict; +use warnings; use Test::More; diff -Nru liblog-dispatch-perl-2.27/t/01-basic.t liblog-dispatch-perl-2.29/t/01-basic.t --- liblog-dispatch-perl-2.27/t/01-basic.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/01-basic.t 2011-03-18 20:53:17.000000000 +0000 @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 165; +use Test::More; use File::Spec; use File::Temp qw( tempdir ); @@ -691,9 +691,24 @@ ); ok( + !$dispatch->is_debug(), + 'is_debug returns false' + ); + + ok( + $dispatch->is_warning(), + 'is_warning returns true' + ); + + ok( $dispatch->would_log('crit'), "will log 'crit'" ); + + ok( + $dispatch->is_crit, + "will log 'crit'" + ); } { @@ -936,6 +951,8 @@ is( $dispatch->max_level, 'emergency', 'max_level is emergency' ); } +done_testing(); + package Log::Dispatch::String; use strict; diff -Nru liblog-dispatch-perl-2.27/t/02-email-exit.t liblog-dispatch-perl-2.29/t/02-email-exit.t --- liblog-dispatch-perl-2.27/t/02-email-exit.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/02-email-exit.t 2011-03-18 20:53:17.000000000 +0000 @@ -8,9 +8,9 @@ exit; } -plan tests => 1; system( $^X, 't/email-exit-helper.pl' ); is( $? >> 8, 5, 'exit code of helper was 5' ); +done_testing(); diff -Nru liblog-dispatch-perl-2.27/t/03-short-syntax.t liblog-dispatch-perl-2.29/t/03-short-syntax.t --- liblog-dispatch-perl-2.27/t/03-short-syntax.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/03-short-syntax.t 2011-03-18 20:53:17.000000000 +0000 @@ -1,7 +1,7 @@ use strict; use warnings; use lib qw(t/lib); -use Test::More tests => 4; +use Test::More; use Log::Dispatch; use Log::Dispatch::TestUtil qw(cmp_deeply); use File::Temp qw( tempdir ); @@ -65,3 +65,5 @@ like( $@, qr/not one of the allowed types: arrayref/, "got error for expected outer arrayref" ); } + +done_testing(); diff -Nru liblog-dispatch-perl-2.27/t/release-kwalitee.t liblog-dispatch-perl-2.29/t/release-kwalitee.t --- liblog-dispatch-perl-2.27/t/release-kwalitee.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/release-kwalitee.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - - -use Test::More; - -eval "use Test::Kwalitee"; -plan skip_all => "Test::Kwalitee required for testing kwalitee" - if $@; diff -Nru liblog-dispatch-perl-2.27/t/release-pod-coverage.t liblog-dispatch-perl-2.29/t/release-pod-coverage.t --- liblog-dispatch-perl-2.27/t/release-pod-coverage.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/release-pod-coverage.t 2011-03-18 20:53:17.000000000 +0000 @@ -11,9 +11,6 @@ use Test::More; -plan skip_all => 'This test is only run for the module author' - unless -d '.hg' || $ENV{IS_MAINTAINER}; - eval "use Test::Pod::Coverage 1.04"; plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; @@ -25,6 +22,7 @@ qr/^send_email|log_message|new$/, qr/^add_callback$/, qr/^(?:O_)?APPEND$/, + qr/^is_\w+$/ ] } ); diff -Nru liblog-dispatch-perl-2.27/t/release-pod-spell.t liblog-dispatch-perl-2.29/t/release-pod-spell.t --- liblog-dispatch-perl-2.27/t/release-pod-spell.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/release-pod-spell.t 2011-03-18 20:53:17.000000000 +0000 @@ -11,13 +11,6 @@ use Test::Spelling; -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - my @stopwords; for () { chomp; diff -Nru liblog-dispatch-perl-2.27/t/release-pod-syntax.t liblog-dispatch-perl-2.29/t/release-pod-syntax.t --- liblog-dispatch-perl-2.27/t/release-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/release-pod-syntax.t 2011-03-18 20:53:17.000000000 +0000 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{RELEASE_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for release candidate testing'); + } +} + +use Test::More; + +eval "use Test::Pod 1.41"; +plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; + +all_pod_files_ok(); diff -Nru liblog-dispatch-perl-2.27/t/release-pod.t liblog-dispatch-perl-2.29/t/release-pod.t --- liblog-dispatch-perl-2.27/t/release-pod.t 2010-10-16 20:50:15.000000000 +0000 +++ liblog-dispatch-perl-2.29/t/release-pod.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -use strict; -use warnings; - -use Test::More; - -plan skip_all => 'This test is only run for the module author' - unless -d '.hg' || $ENV{IS_MAINTAINER}; - -eval "use Test::Pod 1.14"; -plan skip_all => "Test::Pod 1.14 required for testing POD" if $@; - -all_pod_files_ok();