Hello community, here is the log from the commit of package perl-Log-Dispatch for openSUSE:Factory checked in at 2017-10-09 19:45:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Log-Dispatch (Old) and /work/SRC/openSUSE:Factory/.perl-Log-Dispatch.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Log-Dispatch" Mon Oct 9 19:45:05 2017 rev:43 rq:532521 version:2.67 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Log-Dispatch/perl-Log-Dispatch.changes 2017-09-04 12:36:41.992326385 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Log-Dispatch.new/perl-Log-Dispatch.changes 2017-10-09 19:47:41.300988935 +0200 @@ -1,0 +2,12 @@ +Sun Oct 1 05:40:30 UTC 2017 - co...@suse.com + +- updated to 2.67 + see /usr/share/doc/packages/perl-Log-Dispatch/Changes + + 2.67 2017-09-24 + + - Added a lazy_open option to the File output. This delays opening the file + until the first time a log message is written to it. Implemented by Slaven + Rezić. GH #50. + +------------------------------------------------------------------- Old: ---- Log-Dispatch-2.66.tar.gz New: ---- Log-Dispatch-2.67.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Log-Dispatch.spec ++++++ --- /var/tmp/diff_new_pack.P8ecVM/_old 2017-10-09 19:47:41.888963092 +0200 +++ /var/tmp/diff_new_pack.P8ecVM/_new 2017-10-09 19:47:41.892962917 +0200 @@ -17,7 +17,7 @@ Name: perl-Log-Dispatch -Version: 2.66 +Version: 2.67 Release: 0 %define cpan_name Log-Dispatch Summary: Dispatches messages to one or more outputs ++++++ Log-Dispatch-2.66.tar.gz -> Log-Dispatch-2.67.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/Changes new/Log-Dispatch-2.67/Changes --- old/Log-Dispatch-2.66/Changes 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/Changes 2017-09-25 05:46:55.000000000 +0200 @@ -1,3 +1,10 @@ +2.67 2017-09-24 + +- Added a lazy_open option to the File output. This delays opening the file + until the first time a log message is written to it. Implemented by Slaven + Rezić. GH #50. + + 2.66 2017-08-14 - Fixed the ApacheLog output, which was broken in 2.60. Fixed by Michael diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/MANIFEST new/Log-Dispatch-2.67/MANIFEST --- old/Log-Dispatch-2.66/MANIFEST 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/MANIFEST 2017-09-25 05:46:55.000000000 +0200 @@ -41,6 +41,7 @@ t/email-exit-helper.pl t/email-exit.t t/file-locked.t +t/lazy-open.t t/lib/Log/Dispatch/TestUtil.pm t/screen-helper.pl t/screen.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/META.json new/Log-Dispatch-2.67/META.json --- old/Log-Dispatch-2.66/META.json 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/META.json 2017-09-25 05:46:55.000000000 +0200 @@ -109,75 +109,75 @@ "provides" : { "Log::Dispatch" : { "file" : "lib/Log/Dispatch.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::ApacheLog" : { "file" : "lib/Log/Dispatch/ApacheLog.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Base" : { "file" : "lib/Log/Dispatch/Base.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Code" : { "file" : "lib/Log/Dispatch/Code.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Email" : { "file" : "lib/Log/Dispatch/Email.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Email::MIMELite" : { "file" : "lib/Log/Dispatch/Email/MIMELite.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Email::MailSend" : { "file" : "lib/Log/Dispatch/Email/MailSend.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Email::MailSender" : { "file" : "lib/Log/Dispatch/Email/MailSender.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Email::MailSendmail" : { "file" : "lib/Log/Dispatch/Email/MailSendmail.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::File" : { "file" : "lib/Log/Dispatch/File.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::File::Locked" : { "file" : "lib/Log/Dispatch/File/Locked.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Handle" : { "file" : "lib/Log/Dispatch/Handle.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Null" : { "file" : "lib/Log/Dispatch/Null.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Output" : { "file" : "lib/Log/Dispatch/Output.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Screen" : { "file" : "lib/Log/Dispatch/Screen.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Syslog" : { "file" : "lib/Log/Dispatch/Syslog.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Types" : { "file" : "lib/Log/Dispatch/Types.pm", - "version" : "2.66" + "version" : "2.67" }, "Log::Dispatch::Vars" : { "file" : "lib/Log/Dispatch/Vars.pm", - "version" : "2.66" + "version" : "2.67" } }, "release_status" : "stable", @@ -192,7 +192,7 @@ "web" : "https://github.com/houseabsolute/Log-Dispatch" } }, - "version" : "2.66", + "version" : "2.67", "x_Dist_Zilla" : { "perl" : { "version" : "5.024001" @@ -418,7 +418,7 @@ } }, "name" : "@DROLSKY/Dist::Zilla::PluginBundle::DROLSKY", - "version" : "0.053" + "version" : "0.054" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", @@ -440,7 +440,7 @@ } }, "name" : "@DROLSKY/PromptIfStale", - "version" : "0.053" + "version" : "0.054" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", @@ -938,7 +938,7 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v2.66", + "tag" : "v2.67", "tag_format" : "v%v", "tag_message" : "v%v" }, @@ -1142,6 +1142,7 @@ "Rohan Carly <se...@rohan.id.au>", "Ross Attrill <ross.attr...@gmail.com>", "Salvador Fandi\u00f1o <sfand...@yahoo.com>", + "Slaven Rezic <sre...@cpan.org>", "Steve Bertrand <ste...@cpan.org>", "Whitney Jackson <whitney.jack...@baml.com>" ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/META.yml new/Log-Dispatch-2.67/META.yml --- old/Log-Dispatch-2.66/META.yml 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/META.yml 2017-09-25 05:46:55.000000000 +0200 @@ -31,58 +31,58 @@ provides: Log::Dispatch: file: lib/Log/Dispatch.pm - version: '2.66' + version: '2.67' Log::Dispatch::ApacheLog: file: lib/Log/Dispatch/ApacheLog.pm - version: '2.66' + version: '2.67' Log::Dispatch::Base: file: lib/Log/Dispatch/Base.pm - version: '2.66' + version: '2.67' Log::Dispatch::Code: file: lib/Log/Dispatch/Code.pm - version: '2.66' + version: '2.67' Log::Dispatch::Email: file: lib/Log/Dispatch/Email.pm - version: '2.66' + version: '2.67' Log::Dispatch::Email::MIMELite: file: lib/Log/Dispatch/Email/MIMELite.pm - version: '2.66' + version: '2.67' Log::Dispatch::Email::MailSend: file: lib/Log/Dispatch/Email/MailSend.pm - version: '2.66' + version: '2.67' Log::Dispatch::Email::MailSender: file: lib/Log/Dispatch/Email/MailSender.pm - version: '2.66' + version: '2.67' Log::Dispatch::Email::MailSendmail: file: lib/Log/Dispatch/Email/MailSendmail.pm - version: '2.66' + version: '2.67' Log::Dispatch::File: file: lib/Log/Dispatch/File.pm - version: '2.66' + version: '2.67' Log::Dispatch::File::Locked: file: lib/Log/Dispatch/File/Locked.pm - version: '2.66' + version: '2.67' Log::Dispatch::Handle: file: lib/Log/Dispatch/Handle.pm - version: '2.66' + version: '2.67' Log::Dispatch::Null: file: lib/Log/Dispatch/Null.pm - version: '2.66' + version: '2.67' Log::Dispatch::Output: file: lib/Log/Dispatch/Output.pm - version: '2.66' + version: '2.67' Log::Dispatch::Screen: file: lib/Log/Dispatch/Screen.pm - version: '2.66' + version: '2.67' Log::Dispatch::Syslog: file: lib/Log/Dispatch/Syslog.pm - version: '2.66' + version: '2.67' Log::Dispatch::Types: file: lib/Log/Dispatch/Types.pm - version: '2.66' + version: '2.67' Log::Dispatch::Vars: file: lib/Log/Dispatch/Vars.pm - version: '2.66' + version: '2.67' requires: Carp: '0' Devel::GlobalDestruction: '0' @@ -112,7 +112,7 @@ bugtracker: https://github.com/houseabsolute/Log-Dispatch/issues homepage: http://metacpan.org/release/Log-Dispatch repository: git://github.com/houseabsolute/Log-Dispatch.git -version: '2.66' +version: '2.67' x_Dist_Zilla: perl: version: '5.024001' @@ -287,7 +287,7 @@ run_under_travis: 0 skip: [] name: '@DROLSKY/Dist::Zilla::PluginBundle::DROLSKY' - version: '0.053' + version: '0.054' - class: Dist::Zilla::Plugin::PromptIfStale config: @@ -305,7 +305,7 @@ - Dist::Zilla::Plugin::DROLSKY::WeaverConfig - Pod::Weaver::PluginBundle::DROLSKY name: '@DROLSKY/PromptIfStale' - version: '0.053' + version: '0.054' - class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable name: '@DROLSKY/Test::Pod::Coverage::Configurable' @@ -699,7 +699,7 @@ branch: ~ changelog: Changes signed: 0 - tag: v2.66 + tag: v2.67 tag_format: v%v tag_message: v%v Dist::Zilla::Role::Git::Repo: @@ -854,6 +854,7 @@ - 'Rohan Carly <se...@rohan.id.au>' - 'Ross Attrill <ross.attr...@gmail.com>' - 'Salvador Fandiño <sfand...@yahoo.com>' + - 'Slaven Rezic <sre...@cpan.org>' - 'Steve Bertrand <ste...@cpan.org>' - 'Whitney Jackson <whitney.jack...@baml.com>' x_serialization_backend: 'YAML::Tiny version 1.70' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/Makefile.PL new/Log-Dispatch-2.67/Makefile.PL --- old/Log-Dispatch-2.66/Makefile.PL 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/Makefile.PL 2017-09-25 05:46:55.000000000 +0200 @@ -60,7 +60,7 @@ "lib" => 0, "utf8" => 0 }, - "VERSION" => "2.66", + "VERSION" => "2.67", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/README.md new/Log-Dispatch-2.67/README.md --- old/Log-Dispatch-2.66/README.md 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/README.md 2017-09-25 05:46:55.000000000 +0200 @@ -4,7 +4,7 @@ # VERSION -version 2.66 +version 2.67 # SYNOPSIS @@ -415,6 +415,7 @@ - Rohan Carly <se...@rohan.id.au> - Ross Attrill <ross.attr...@gmail.com> - Salvador Fandiño <sfand...@yahoo.com> +- Slaven Rezic <sre...@cpan.org> - Steve Bertrand <ste...@cpan.org> - Whitney Jackson <whitney.jack...@baml.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/ApacheLog.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/ApacheLog.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/ApacheLog.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/ApacheLog.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Log::Dispatch::Types; use Params::ValidationCompiler qw( validation_for ); @@ -71,7 +71,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Base.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Base.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Base.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Base.pm 2017-09-25 05:46:55.000000000 +0200 @@ -4,7 +4,7 @@ use warnings; use Scalar::Util qw( refaddr ); -our $VERSION = '2.66'; +our $VERSION = '2.67'; ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) sub _apply_callbacks { @@ -62,7 +62,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Code.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Code.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Code.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Code.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Log::Dispatch::Types; use Params::ValidationCompiler qw( validation_for ); @@ -53,7 +53,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MIMELite.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MIMELite.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MIMELite.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MIMELite.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use MIME::Lite; @@ -44,7 +44,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSend.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSend.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSend.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSend.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Mail::Send; use Try::Tiny; @@ -56,7 +56,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSender.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSender.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSender.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSender.pm 2017-09-25 05:46:55.000000000 +0200 @@ -8,7 +8,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Log::Dispatch::Types; use Mail::Sender (); @@ -114,7 +114,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSendmail.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSendmail.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Email/MailSendmail.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Email/MailSendmail.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Mail::Sendmail (); @@ -44,7 +44,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Email.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Email.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Email.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Email.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Devel::GlobalDestruction qw( in_global_destruction ); use Log::Dispatch::Types; @@ -117,7 +117,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/File/Locked.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/File/Locked.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/File/Locked.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/File/Locked.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Fcntl qw(:DEFAULT :flock); @@ -59,7 +59,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/File.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/File.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/File.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/File.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use IO::Handle; use Log::Dispatch::Types; @@ -37,6 +37,10 @@ type => t('Bool'), default => 0, }, + lazy_open => { + type => t('Bool'), + default => 0, + }, permissions => { type => t('PositiveOrZeroInt'), optional => 1, @@ -49,14 +53,22 @@ slurpy => 1, ); + # We stick these in $self as-is without looking at them in new(). + my @self_p = qw( + autoflush + binmode + close_after_write + filename + lazy_open + permissions + syswrite + ); + sub new { my $class = shift; my %p = $validator->(@_); - my $self - = bless { map { $_ => delete $p{$_} } - qw( filename binmode autoflush close_after_write permissions syswrite ) - }, $class; + my $self = bless { map { $_ => delete $p{$_} } @self_p }, $class; if ( $self->{close_after_write} ) { $self->{mode} = '>>'; @@ -74,18 +86,13 @@ delete $p{mode}; $self->_basic_init(%p); - $self->_make_handle; + $self->_open_file() + unless $self->{close_after_write} || $self->{lazy_open}; return $self; } } -sub _make_handle { - my $self = shift; - - $self->_open_file() unless $self->{close_after_write}; -} - sub _open_file { my $self = shift; @@ -127,6 +134,10 @@ if ( $self->{close_after_write} ) { $self->_open_file; } + elsif ( $self->{lazy_open} ) { + $self->_open_file; + $self->{lazy_open} = 0; + } my $fh = $self->{fh}; @@ -172,7 +183,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS @@ -236,6 +247,11 @@ If this is true, then the mode will always be append, so that the file is not re-written for each new message. +=item * lazy_open ($) + +Whether or not the file should be opened only on first write. This defaults to +false. + =item * autoflush ($) Whether or not the file should be autoflushed. This defaults to true. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Handle.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Handle.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Handle.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Handle.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Log::Dispatch::Types; use Params::ValidationCompiler qw( validation_for ); @@ -51,7 +51,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Null.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Null.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Null.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Null.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use base qw( Log::Dispatch::Output ); @@ -34,7 +34,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Output.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Output.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Output.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Output.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Carp (); use Try::Tiny; @@ -204,7 +204,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Screen.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Screen.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Screen.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Screen.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Encode qw( encode ); use IO::Handle; @@ -76,7 +76,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Syslog.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Syslog.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Syslog.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Syslog.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Log::Dispatch::Types; use Params::ValidationCompiler qw( validation_for ); @@ -137,7 +137,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Types.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Types.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Types.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Types.pm 2017-09-25 05:46:55.000000000 +0200 @@ -4,7 +4,7 @@ use warnings; use namespace::autoclean; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use parent 'Specio::Exporter'; @@ -84,7 +84,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch/Vars.pm new/Log-Dispatch-2.67/lib/Log/Dispatch/Vars.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch/Vars.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch/Vars.pm 2017-09-25 05:46:55.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Exporter qw( import ); @@ -69,7 +69,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/lib/Log/Dispatch.pm new/Log-Dispatch-2.67/lib/Log/Dispatch.pm --- old/Log-Dispatch-2.66/lib/Log/Dispatch.pm 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/lib/Log/Dispatch.pm 2017-09-25 05:46:55.000000000 +0200 @@ -5,7 +5,7 @@ use strict; use warnings; -our $VERSION = '2.66'; +our $VERSION = '2.67'; use Carp (); use Log::Dispatch::Types; @@ -298,7 +298,7 @@ =head1 VERSION -version 2.66 +version 2.67 =head1 SYNOPSIS @@ -711,7 +711,7 @@ =head1 CONTRIBUTORS -=for stopwords Anirvan Chatterjee Carsten Grohmann Doug Bell Graham Ollis Gregory Oschwald Johann Rolschewski Jonathan Swartz Karen Etheridge Kerin Millar Kivanc Yazan Konrad Bucheli Michael Schout Olaf Alders Olivier Mengué Rohan Carly Ross Attrill Salvador Fandiño Steve Bertrand Whitney Jackson +=for stopwords Anirvan Chatterjee Carsten Grohmann Doug Bell Graham Ollis Gregory Oschwald Johann Rolschewski Jonathan Swartz Karen Etheridge Kerin Millar Kivanc Yazan Konrad Bucheli Michael Schout Olaf Alders Olivier Mengué Rohan Carly Ross Attrill Salvador Fandiño Slaven Rezic Steve Bertrand Whitney Jackson =over 4 @@ -785,6 +785,10 @@ =item * +Slaven Rezic <sre...@cpan.org> + +=item * + Steve Bertrand <ste...@cpan.org> =item * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/t/lazy-open.t new/Log-Dispatch-2.67/t/lazy-open.t --- old/Log-Dispatch-2.66/t/lazy-open.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Log-Dispatch-2.67/t/lazy-open.t 2017-09-25 05:46:55.000000000 +0200 @@ -0,0 +1,68 @@ +use strict; +use warnings FATAL => 'all'; + +use Test::More 0.88; + +use File::Spec; +use File::Temp qw( tempdir ); +use Log::Dispatch; + +my $dir = tempdir( CLEANUP => 1 ); + +{ + my $logger = Log::Dispatch->new( + outputs => [ + [ + 'File', + min_level => 'debug', + newline => 1, + name => 'lazy_open', + filename => File::Spec->catfile( $dir, 'lazy_open.log' ), + lazy_open => 1, + ], + ], + ); + + ok( + !$logger->output('lazy_open')->{fh}, + 'lazy_open output has not created a fh before first write' + ); + + $logger->log( level => 'info', message => 'first message' ); + is( + _slurp( $logger->output('lazy_open')->{filename} ), + "first message\n", + 'first line from lazy_open output' + ); + + ok( + $logger->output('lazy_open')->{fh}, + 'lazy_open output has still an open fh' + ); + + $logger->log( level => 'info', message => 'second message' ); + + is( + _slurp( $logger->output('lazy_open')->{filename} ), + "first message\nsecond message\n", + 'full content from caw output' + ); + + ok( + $logger->output('lazy_open')->{fh}, + 'lazy_open output has still an open fh' + ); +} + +done_testing(); + +sub _slurp { + open my $fh, '<', $_[0] + or die "Cannot read $_[0]: $!"; + my $s = do { + local $/ = undef; + <$fh>; + }; + close $fh or die $!; + return $s; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/xt/author/eol.t new/Log-Dispatch-2.67/xt/author/eol.t --- old/Log-Dispatch-2.66/xt/author/eol.t 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/xt/author/eol.t 2017-09-25 05:46:55.000000000 +0200 @@ -35,6 +35,7 @@ 't/email-exit-helper.pl', 't/email-exit.t', 't/file-locked.t', + 't/lazy-open.t', 't/lib/Log/Dispatch/TestUtil.pm', 't/screen-helper.pl', 't/screen.t', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/xt/author/no-tabs.t new/Log-Dispatch-2.67/xt/author/no-tabs.t --- old/Log-Dispatch-2.66/xt/author/no-tabs.t 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/xt/author/no-tabs.t 2017-09-25 05:46:55.000000000 +0200 @@ -35,6 +35,7 @@ 't/email-exit-helper.pl', 't/email-exit.t', 't/file-locked.t', + 't/lazy-open.t', 't/lib/Log/Dispatch/TestUtil.pm', 't/screen-helper.pl', 't/screen.t', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/xt/author/pod-coverage.t new/Log-Dispatch-2.67/xt/author/pod-coverage.t --- old/Log-Dispatch-2.66/xt/author/pod-coverage.t 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/xt/author/pod-coverage.t 2017-09-25 05:46:55.000000000 +0200 @@ -30,12 +30,12 @@ qr/^(?:warn|err|crit|emerg)$/, qr/^is_\w+$/ ], - 'Log::Dispatch::File' => [ - qr/^(?:O_)?APPEND$/ - ], 'Log::Dispatch::Output' => [ qr/^new$/ - ] + ], + 'Log::Dispatch::File' => [ + qr/^(?:O_)?APPEND$/ + ] ); my @also_private; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Dispatch-2.66/xt/author/pod-spell.t new/Log-Dispatch-2.67/xt/author/pod-spell.t --- old/Log-Dispatch-2.66/xt/author/pod-spell.t 2017-08-15 04:47:14.000000000 +0200 +++ new/Log-Dispatch-2.67/xt/author/pod-spell.t 2017-09-25 05:46:55.000000000 +0200 @@ -68,6 +68,7 @@ Output PayPal Pfeiffer +Rezic Rohan Rolschewski Rolsky @@ -79,6 +80,7 @@ Schilli Schout Screen +Slaven Steve Straup Subclasses @@ -129,6 +131,7 @@ se456 sfandino smtp +srezic stderr steveb subclass's