Hello community, here is the log from the commit of package perl-Log-Any for openSUSE:Factory checked in at 2018-02-09 15:47:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Log-Any (Old) and /work/SRC/openSUSE:Factory/.perl-Log-Any.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Log-Any" Fri Feb 9 15:47:29 2018 rev:22 rq:573985 version:1.705 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Log-Any/perl-Log-Any.changes 2018-01-09 14:51:15.445247368 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Log-Any.new/perl-Log-Any.changes 2018-02-09 15:47:30.291479928 +0100 @@ -1,0 +2,23 @@ +Wed Feb 7 16:44:12 UTC 2018 - [email protected] + +- updated to 1.705 + see /usr/share/doc/packages/perl-Log-Any/Changes + + 1.705 2018-01-17 13:49:22-06:00 America/Chicago + + [Fixed] + + - Fixed the `binmode` attribute of the File adapter not working + properly. Thanks @MadLord80! [Github #71] + + 1.704 2017-12-17 18:13:33-06:00 America/Chicago + + [Fixed] + + - Fixed some invalid POD and added a test to ensure POD validity + before release. Thanks @shlomif! [Github #67][Github #68] + + - Improved performance when no work needed to be done. Thanks + @mephinet! [Github #70] + +------------------------------------------------------------------- Old: ---- Log-Any-1.703.tar.gz New: ---- Log-Any-1.705.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Log-Any.spec ++++++ --- /var/tmp/diff_new_pack.Xlyxuc/_old 2018-02-09 15:47:31.159448759 +0100 +++ /var/tmp/diff_new_pack.Xlyxuc/_new 2018-02-09 15:47:31.159448759 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Log-Any # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: perl-Log-Any -Version: 1.703 +Version: 1.705 Release: 0 %define cpan_name Log-Any Summary: Bringing loggers and listeners together ++++++ Log-Any-1.703.tar.gz -> Log-Any-1.705.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/Changes new/Log-Any-1.705/Changes --- old/Log-Any-1.703/Changes 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/Changes 2018-01-17 20:49:43.000000000 +0100 @@ -2,6 +2,23 @@ ** denotes an incompatible change +1.705 2018-01-17 13:49:22-06:00 America/Chicago + + [Fixed] + + - Fixed the `binmode` attribute of the File adapter not working + properly. Thanks @MadLord80! [Github #71] + +1.704 2017-12-17 18:13:33-06:00 America/Chicago + + [Fixed] + + - Fixed some invalid POD and added a test to ensure POD validity + before release. Thanks @shlomif! [Github #67][Github #68] + + - Improved performance when no work needed to be done. Thanks + @mephinet! [Github #70] + 1.703 2017-11-29 10:56:17-06:00 America/Chicago [Fixed] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/MANIFEST new/Log-Any-1.705/MANIFEST --- old/Log-Any-1.703/MANIFEST 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/MANIFEST 2018-01-17 20:49:43.000000000 +0100 @@ -30,6 +30,7 @@ t/00-report-prereqs.t t/TestAdapters.pm t/adapter-import.t +t/author-pod-syntax.t t/context.t t/default-adapter-env.t t/default-adapter-params.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/META.json new/Log-Any-1.705/META.json --- old/Log-Any-1.703/META.json 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/META.json 2018-01-17 20:49:43.000000000 +0100 @@ -36,6 +36,11 @@ "ExtUtils::MakeMaker" : "0" } }, + "develop" : { + "requires" : { + "Test::Pod" : "1.41" + } + }, "runtime" : { "requires" : { "B" : "0", @@ -70,63 +75,63 @@ "provides" : { "Log::Any" : { "file" : "lib/Log/Any.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter" : { "file" : "lib/Log/Any/Adapter.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Base" : { "file" : "lib/Log/Any/Adapter/Base.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::File" : { "file" : "lib/Log/Any/Adapter/File.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Null" : { "file" : "lib/Log/Any/Adapter/Null.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Stderr" : { "file" : "lib/Log/Any/Adapter/Stderr.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Stdout" : { "file" : "lib/Log/Any/Adapter/Stdout.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Syslog" : { "file" : "lib/Log/Any/Adapter/Syslog.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Test" : { "file" : "lib/Log/Any/Adapter/Test.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Adapter::Util" : { "file" : "lib/Log/Any/Adapter/Util.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Manager" : { "file" : "lib/Log/Any/Manager.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Proxy" : { "file" : "lib/Log/Any/Proxy.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Proxy::Null" : { "file" : "lib/Log/Any/Proxy/Null.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Proxy::Test" : { "file" : "lib/Log/Any/Proxy/Test.pm", - "version" : "1.703" + "version" : "1.705" }, "Log::Any::Test" : { "file" : "lib/Log/Any/Test.pm", - "version" : "1.703" + "version" : "1.705" } }, "release_status" : "stable", @@ -141,7 +146,7 @@ "web" : "https://github.com/preaction/Log-Any" } }, - "version" : "1.703", + "version" : "1.705", "x_authority" : "cpan:PREACTION", "x_contributors" : [ "bj5004 <[email protected]>", @@ -152,8 +157,10 @@ "Maros Kollar <[email protected]>", "Maxim Vuets <[email protected]>", "mephinet <[email protected]>", + "Nick Tonkin <[email protected]>", "Philipp Gortan <[email protected]>", - "Phill Legault <[email protected]>" + "Phill Legault <[email protected]>", + "Shlomi Fish <[email protected]>" ], "x_serialization_backend" : "Cpanel::JSON::XS version 3.0216" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/META.yml new/Log-Any-1.705/META.yml --- old/Log-Any-1.703/META.yml 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/META.yml 2018-01-17 20:49:43.000000000 +0100 @@ -34,49 +34,49 @@ provides: Log::Any: file: lib/Log/Any.pm - version: '1.703' + version: '1.705' Log::Any::Adapter: file: lib/Log/Any/Adapter.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Base: file: lib/Log/Any/Adapter/Base.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::File: file: lib/Log/Any/Adapter/File.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Null: file: lib/Log/Any/Adapter/Null.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Stderr: file: lib/Log/Any/Adapter/Stderr.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Stdout: file: lib/Log/Any/Adapter/Stdout.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Syslog: file: lib/Log/Any/Adapter/Syslog.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Test: file: lib/Log/Any/Adapter/Test.pm - version: '1.703' + version: '1.705' Log::Any::Adapter::Util: file: lib/Log/Any/Adapter/Util.pm - version: '1.703' + version: '1.705' Log::Any::Manager: file: lib/Log/Any/Manager.pm - version: '1.703' + version: '1.705' Log::Any::Proxy: file: lib/Log/Any/Proxy.pm - version: '1.703' + version: '1.705' Log::Any::Proxy::Null: file: lib/Log/Any/Proxy/Null.pm - version: '1.703' + version: '1.705' Log::Any::Proxy::Test: file: lib/Log/Any/Proxy/Test.pm - version: '1.703' + version: '1.705' Log::Any::Test: file: lib/Log/Any/Test.pm - version: '1.703' + version: '1.705' requires: B: '0' Carp: '0' @@ -96,7 +96,7 @@ bugtracker: https://github.com/preaction/Log-Any/issues homepage: https://github.com/preaction/Log-Any repository: https://github.com/preaction/Log-Any.git -version: '1.703' +version: '1.705' x_authority: cpan:PREACTION x_contributors: - 'bj5004 <[email protected]>' @@ -107,6 +107,8 @@ - 'Maros Kollar <[email protected]>' - 'Maxim Vuets <[email protected]>' - 'mephinet <[email protected]>' + - 'Nick Tonkin <[email protected]>' - 'Philipp Gortan <[email protected]>' - 'Phill Legault <[email protected]>' + - 'Shlomi Fish <[email protected]>' x_serialization_backend: 'YAML::Tiny version 1.69' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/Makefile.PL new/Log-Any-1.705/Makefile.PL --- old/Log-Any-1.703/Makefile.PL 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/Makefile.PL 2018-01-17 20:49:43.000000000 +0100 @@ -38,7 +38,7 @@ "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "1.703", + "VERSION" => "1.705", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/cpanfile new/Log-Any-1.705/cpanfile --- old/Log-Any-1.703/cpanfile 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/cpanfile 2018-01-17 20:49:43.000000000 +0100 @@ -28,3 +28,7 @@ on 'configure' => sub { requires "ExtUtils::MakeMaker" => "0"; }; + +on 'develop' => sub { + requires "Test::Pod" => "1.41"; +}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Base.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Base.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Base.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Base.pm 2018-01-17 20:49:43.000000000 +0100 @@ -4,7 +4,7 @@ package Log::Any::Adapter::Base; -our $VERSION = '1.703'; +our $VERSION = '1.705'; our @CARP_NOT = ( 'Log::Any::Adapter' ); # we import these in case any legacy adapter uses them as class methods @@ -52,7 +52,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Development.pod new/Log-Any-1.705/lib/Log/Any/Adapter/Development.pod --- old/Log-Any-1.703/lib/Log/Any/Adapter/Development.pod 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Development.pod 2018-01-17 20:49:43.000000000 +0100 @@ -16,7 +16,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/File.pm new/Log-Any-1.705/lib/Log/Any/Adapter/File.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/File.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/File.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::File; # ABSTRACT: Simple adapter for logging to files -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Config; use Fcntl qw/:flock/; @@ -37,7 +37,7 @@ $self->{log_level} = $trace_level; } my $file = $self->{file}; - my $binmode ||= ':utf8'; + my $binmode = $self->{binmode} || ':utf8'; $binmode = ":$binmode" unless substr($binmode,0,1) eq ':'; open( $self->{fh}, ">>$binmode", $file ) or die "cannot open '$file' for append: $!"; @@ -80,7 +80,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Null.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Null.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Null.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Null.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::Null; # ABSTRACT: Discards all log messages -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Base; our @ISA = qw/Log::Any::Adapter::Base/; @@ -33,7 +33,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Stderr.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Stderr.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Stderr.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Stderr.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::Stderr; # ABSTRACT: Simple adapter for logging to STDERR -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util (); @@ -62,7 +62,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Stdout.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Stdout.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Stdout.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Stdout.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::Stdout; # ABSTRACT: Simple adapter for logging to STDOUT -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util (); @@ -62,7 +62,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Syslog.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Syslog.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Syslog.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Syslog.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::Syslog; # ABSTRACT: Send Log::Any logs to syslog -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util qw{make_method}; use base qw{Log::Any::Adapter::Base}; @@ -141,7 +141,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Test.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Test.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Test.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Test.pm 2018-01-17 20:49:43.000000000 +0100 @@ -4,7 +4,7 @@ package Log::Any::Adapter::Test; -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util qw/dump_one_line/; use Test::Builder; @@ -218,7 +218,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter/Util.pm new/Log-Any-1.705/lib/Log/Any/Adapter/Util.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter/Util.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter/Util.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter::Util; # ABSTRACT: Common utility functions for Log::Any -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Exporter; our @ISA = qw/Exporter/; @@ -65,7 +65,7 @@ @logging_and_detection_methods = ( @logging_methods, @detection_methods ); } -#pod =func logging_methods +#pod =sub logging_methods #pod #pod Returns a list of all logging method. E.g. "trace", "info", etc. #pod @@ -73,7 +73,7 @@ sub logging_methods { @logging_methods } -#pod =func detection_methods +#pod =sub detection_methods #pod #pod Returns a list of detection methods. E.g. "is_trace", "is_info", etc. #pod @@ -81,7 +81,7 @@ sub detection_methods { @detection_methods } -#pod =func logging_and_detection_methods +#pod =sub logging_and_detection_methods #pod #pod Returns a list of logging and detection methods (but not aliases). #pod @@ -89,7 +89,7 @@ sub logging_and_detection_methods { @logging_and_detection_methods } -#pod =func log_level_aliases +#pod =sub log_level_aliases #pod #pod Returns key/value pairs mapping aliases to "official" names. E.g. "err" maps #pod to "error". @@ -98,7 +98,7 @@ sub log_level_aliases { %LOG_LEVEL_ALIASES } -#pod =func logging_aliases +#pod =sub logging_aliases #pod #pod Returns a list of logging alias names. These are the keys from #pod L</log_level_aliases>. @@ -107,7 +107,7 @@ sub logging_aliases { @logging_aliases } -#pod =func detection_aliases +#pod =sub detection_aliases #pod #pod Returns a list of detection aliases. E.g. "is_err", "is_fatal", etc. #pod @@ -115,7 +115,7 @@ sub detection_aliases { @detection_aliases } -#pod =func numeric_level +#pod =sub numeric_level #pod #pod Given a level name (or alias), returns the numeric value described above under #pod log level constants. E.g. "err" would return 3. @@ -129,7 +129,7 @@ return $LOG_LEVELS{ uc($canonical) }; } -#pod =func dump_one_line +#pod =sub dump_one_line #pod #pod Given a reference, returns a one-line L<Data::Dumper> dump with keys sorted. #pod @@ -153,7 +153,7 @@ return $string; }; -#pod =func make_method +#pod =sub make_method #pod #pod Given a method name, a code reference and a package name, installs the code #pod reference as a method in the package. @@ -168,7 +168,7 @@ *{ $pkg . "::$method" } = $code; } -#pod =func require_dynamic (DEPRECATED) +#pod =sub require_dynamic (DEPRECATED) #pod #pod Given a class name, attempts to load it via require unless the class #pod already has a constructor available. Throws an error on failure. Used @@ -187,7 +187,7 @@ } } -#pod =func read_file (DEPRECATED) +#pod =sub read_file (DEPRECATED) #pod #pod Slurp a file. Does *not* apply any layers. Used for testing and may #pod become private in the future. @@ -204,7 +204,7 @@ return $contents; } -#pod =func cmp_deeply (DEPRECATED) +#pod =sub cmp_deeply (DEPRECATED) #pod #pod Compares L<dump_one_line> results for two references. Also takes a test #pod label as a third argument. Used for testing and may become private in the @@ -241,7 +241,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 DESCRIPTION @@ -249,58 +249,60 @@ subclasses or L<Log::Any::Proxy> formatters/filters. It also has some functions used in internal testing. -=func logging_methods +=head1 SUBROUTINES + +=head2 logging_methods Returns a list of all logging method. E.g. "trace", "info", etc. -=func detection_methods +=head2 detection_methods Returns a list of detection methods. E.g. "is_trace", "is_info", etc. -=func logging_and_detection_methods +=head2 logging_and_detection_methods Returns a list of logging and detection methods (but not aliases). -=func log_level_aliases +=head2 log_level_aliases Returns key/value pairs mapping aliases to "official" names. E.g. "err" maps to "error". -=func logging_aliases +=head2 logging_aliases Returns a list of logging alias names. These are the keys from L</log_level_aliases>. -=func detection_aliases +=head2 detection_aliases Returns a list of detection aliases. E.g. "is_err", "is_fatal", etc. -=func numeric_level +=head2 numeric_level Given a level name (or alias), returns the numeric value described above under log level constants. E.g. "err" would return 3. -=func dump_one_line +=head2 dump_one_line Given a reference, returns a one-line L<Data::Dumper> dump with keys sorted. -=func make_method +=head2 make_method Given a method name, a code reference and a package name, installs the code reference as a method in the package. -=func require_dynamic (DEPRECATED) +=head2 require_dynamic (DEPRECATED) Given a class name, attempts to load it via require unless the class already has a constructor available. Throws an error on failure. Used internally and may become private in the future. -=func read_file (DEPRECATED) +=head2 read_file (DEPRECATED) Slurp a file. Does *not* apply any layers. Used for testing and may become private in the future. -=func cmp_deeply (DEPRECATED) +=head2 cmp_deeply (DEPRECATED) Compares L<dump_one_line> results for two references. Also takes a test label as a third argument. Used for testing and may become private in the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Adapter.pm new/Log-Any-1.705/lib/Log/Any/Adapter.pm --- old/Log-Any-1.703/lib/Log/Any/Adapter.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Adapter.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Adapter; # ABSTRACT: Tell Log::Any where to send its logs -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any; our @CARP_NOT = ( 'Log::Any::Manager' ); @@ -39,7 +39,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Manager.pm new/Log-Any-1.705/lib/Log/Any/Manager.pm --- old/Log-Any-1.703/lib/Log/Any/Manager.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Manager.pm 2018-01-17 20:49:43.000000000 +0100 @@ -4,7 +4,7 @@ package Log::Any::Manager; -our $VERSION = '1.703'; +our $VERSION = '1.705'; sub new { my $class = shift; @@ -249,7 +249,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Proxy/Null.pm new/Log-Any-1.705/lib/Log/Any/Proxy/Null.pm --- old/Log-Any-1.703/lib/Log/Any/Proxy/Null.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Proxy/Null.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Proxy::Null; # ABSTRACT: Log::Any generator proxy for no adapters -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util (); use Log::Any::Proxy; @@ -57,7 +57,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Proxy/Test.pm new/Log-Any-1.705/lib/Log/Any/Proxy/Test.pm --- old/Log-Any-1.703/lib/Log/Any/Proxy/Test.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Proxy/Test.pm 2018-01-17 20:49:43.000000000 +0100 @@ -4,7 +4,7 @@ package Log::Any::Proxy::Test; -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Proxy; our @ISA = qw/Log::Any::Proxy/; @@ -42,7 +42,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Proxy.pm new/Log-Any-1.705/lib/Log/Any/Proxy.pm --- old/Log-Any-1.703/lib/Log/Any/Proxy.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Proxy.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Proxy; # ABSTRACT: Log::Any generator proxy object -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Adapter::Util (); use overload; @@ -89,6 +89,7 @@ }; *{$name} = sub { my ( $self, @parts ) = @_; + return if !$self->{adapter}->$is_realname && !defined wantarray; my $structured_logging = $self->{adapter}->can('structured') && !$self->{filter}; @@ -146,7 +147,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any/Test.pm new/Log-Any-1.705/lib/Log/Any/Test.pm --- old/Log-Any-1.703/lib/Log/Any/Test.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any/Test.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any::Test; # ABSTRACT: Test what you're logging with Log::Any -our $VERSION = '1.703'; +our $VERSION = '1.705'; no warnings 'once'; $Log::Any::OverrideDefaultAdapterClass = 'Log::Any::Adapter::Test'; @@ -25,7 +25,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/lib/Log/Any.pm new/Log-Any-1.705/lib/Log/Any.pm --- old/Log-Any-1.703/lib/Log/Any.pm 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/lib/Log/Any.pm 2018-01-17 20:49:43.000000000 +0100 @@ -5,7 +5,7 @@ package Log::Any; # ABSTRACT: Bringing loggers and listeners together -our $VERSION = '1.703'; +our $VERSION = '1.705'; use Log::Any::Manager; use Log::Any::Proxy::Null; @@ -134,7 +134,7 @@ =head1 VERSION -version 1.703 +version 1.705 =head1 SYNOPSIS @@ -389,8 +389,8 @@ =head2 Configuring the proxy -Any parameter passed on the import line or via the C<get_logger> method -are passed on the the L<Log::Any::Proxy> constructor. +Any parameters passed on the import line or via the C<get_logger> method +are passed on to the L<Log::Any::Proxy> constructor. use Log::Any '$log', filter => \&myfilter; @@ -475,7 +475,7 @@ =head1 CONTRIBUTORS -=for stopwords bj5004 cm-perl Karen Etheridge Konstantin S. Uvarin Lucas Kanashiro Maros Kollar Maxim Vuets mephinet Philipp Gortan Phill Legault +=for stopwords bj5004 cm-perl Karen Etheridge Konstantin S. Uvarin Lucas Kanashiro Maros Kollar Maxim Vuets mephinet Nick Tonkin Philipp Gortan Phill Legault Shlomi Fish =over 4 @@ -513,12 +513,20 @@ =item * +Nick Tonkin <[email protected]> + +=item * + Philipp Gortan <[email protected]> =item * Phill Legault <[email protected]> +=item * + +Shlomi Fish <[email protected]> + =back =head1 COPYRIGHT AND LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/t/00-report-prereqs.dd new/Log-Any-1.705/t/00-report-prereqs.dd --- old/Log-Any-1.703/t/00-report-prereqs.dd 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/t/00-report-prereqs.dd 2018-01-17 20:49:43.000000000 +0100 @@ -4,6 +4,11 @@ 'ExtUtils::MakeMaker' => '0' } }, + 'develop' => { + 'requires' => { + 'Test::Pod' => '1.41' + } + }, 'runtime' => { 'requires' => { 'B' => '0', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/t/author-pod-syntax.t new/Log-Any-1.705/t/author-pod-syntax.t --- old/Log-Any-1.703/t/author-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Log-Any-1.705/t/author-pod-syntax.t 2018-01-17 20:49:43.000000000 +0100 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + print qq{1..0 # SKIP these tests are for testing by the author\n}; + exit + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Log-Any-1.703/t/filescreen.t new/Log-Any-1.705/t/filescreen.t --- old/Log-Any-1.703/t/filescreen.t 2017-11-29 17:56:37.000000000 +0100 +++ new/Log-Any-1.705/t/filescreen.t 2018-01-17 20:49:43.000000000 +0100 @@ -4,7 +4,7 @@ use File::Temp qw(tempdir); use Log::Any::Adapter::Util qw(cmp_deeply read_file); -plan tests => 25; +plan tests => 27; my $__FILE__ = quotemeta __FILE__; require Log::Any::Adapter; @@ -39,6 +39,16 @@ qr{Invalid log level "FOOBAR"\. Defaulting to "trace" at $__FILE__ line \d+}, 'warning is correct'; } + + { # Test that File adapter accepts binmode properly + my @warnings; + local $SIG{__WARN__} = sub { push @warnings, $_[0] }; + Log::Any::Adapter->set( {lexically => \my $lex}, 'File', $file, binmode => 'raw' ); + my $log = Log::Any->get_logger(); + $log->warn("\x{263A} \x{263B}"); + like( scalar( read_file($file) ), qr/\x{263A} \x{263B}$/ms, "warn logged raw to file" ); + like $warnings[0], qr{Wide character in print}, 'got warning printing UTF-8 as raw'; + } } {
