Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Mojo-Log-Colored for 
openSUSE:Factory checked in at 2021-02-23 20:21:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojo-Log-Colored (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojo-Log-Colored.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojo-Log-Colored"

Tue Feb 23 20:21:54 2021 rev:3 rq:874523 version:0.04

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojo-Log-Colored/perl-Mojo-Log-Colored.changes  
    2020-05-26 17:20:13.648091816 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojo-Log-Colored.new.2378/perl-Mojo-Log-Colored.changes
    2021-02-23 20:23:16.183807672 +0100
@@ -1,0 +2,11 @@
+Mon Feb 22 16:47:26 UTC 2021 - Tina M??ller <timueller+p...@suse.de>
+
+- updated to 0.04
+   see /usr/share/doc/packages/perl-Mojo-Log-Colored/Changes
+
+  0.04 2021-02-20T21:04:20Z
+
+      - Automatically honour Mojolicious 9 breaking change in default log 
format based on
+        installed Mojo version
+
+-------------------------------------------------------------------

Old:
----
  Mojo-Log-Colored-0.03.tar.gz

New:
----
  Mojo-Log-Colored-0.04.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Mojo-Log-Colored.spec ++++++
--- /var/tmp/diff_new_pack.jiHqKL/_old  2021-02-23 20:23:16.827808242 +0100
+++ /var/tmp/diff_new_pack.jiHqKL/_new  2021-02-23 20:23:16.827808242 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Mojo-Log-Colored
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,16 @@
 #
 
 
+%define cpan_name Mojo-Log-Colored
 Name:           perl-Mojo-Log-Colored
-Version:        0.03
+Version:        0.04
 Release:        0
-%define cpan_name Mojo-Log-Colored
 Summary:        Colored Mojo logging
 License:        Artistic-1.0 OR GPL-1.0-or-later
-Group:          Development/Libraries/Perl
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Capture::Tiny)
@@ -50,7 +48,7 @@
 don't want to do that. Use this for development, not production.
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version}
 
 %build
 perl Build.PL --installdirs=vendor
@@ -64,7 +62,6 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes minil.toml README.md
 %license LICENSE
 

++++++ Mojo-Log-Colored-0.03.tar.gz -> Mojo-Log-Colored-0.04.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/Changes 
new/Mojo-Log-Colored-0.04/Changes
--- old/Mojo-Log-Colored-0.03/Changes   2020-05-22 14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/Changes   2021-02-20 22:04:23.000000000 +0100
@@ -1,5 +1,10 @@
 Revision history for Perl extension Mojo-Log-Colored
 
+0.04 2021-02-20T21:04:20Z
+
+    - Automatically honour Mojolicious 9 breaking change in default log format 
based on
+      installed Mojo version
+
 0.03 2020-05-22T12:32:37Z
 
     - Do not color line endings (Tina M??ller)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/MANIFEST 
new/Mojo-Log-Colored-0.04/MANIFEST
--- old/Mojo-Log-Colored-0.03/MANIFEST  2020-05-22 14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/MANIFEST  2021-02-20 22:04:23.000000000 +0100
@@ -8,6 +8,8 @@
 minil.toml
 t/00_compile.t
 t/log.t
+t/logformat_post_9.t
+t/logformat_pre_9.t
 t/via_mojo.t
 META.yml
 MANIFEST
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/META.json 
new/Mojo-Log-Colored-0.04/META.json
--- old/Mojo-Log-Colored-0.03/META.json 2020-05-22 14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/META.json 2021-02-20 22:04:23.000000000 +0100
@@ -4,7 +4,7 @@
       "simbabque <simbab...@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Minilla/v3.1.10",
+   "generated_by" : "Minilla/v3.1.11",
    "license" : [
       "perl_5"
    ],
@@ -57,7 +57,7 @@
    "provides" : {
       "Mojo::Log::Colored" : {
          "file" : "lib/Mojo/Log/Colored.pm",
-         "version" : "0.03"
+         "version" : "0.04"
       }
    },
    "release_status" : "stable",
@@ -71,12 +71,12 @@
          "web" : "https://github.com/simbabque/Mojo-Log-Colored";
       }
    },
-   "version" : "0.03",
+   "version" : "0.04",
    "x_contributors" : [
       "E. Choroba <chor...@matfyz.cz>",
       "Mohammad S Anwar <mohammad.an...@yahoo.com>",
       "Tina M??ller <cp...@tinita.de>"
    ],
-   "x_serialization_backend" : "JSON::PP version 2.27400_02",
+   "x_serialization_backend" : "JSON::PP version 2.97001",
    "x_static_install" : 1
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/META.yml 
new/Mojo-Log-Colored-0.04/META.yml
--- old/Mojo-Log-Colored-0.03/META.yml  2020-05-22 14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/META.yml  2021-02-20 22:04:23.000000000 +0100
@@ -8,7 +8,7 @@
 configure_requires:
   Module::Build::Tiny: '0.035'
 dynamic_config: 0
-generated_by: 'Minilla/v3.1.10, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Minilla/v3.1.11, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -27,7 +27,7 @@
 provides:
   Mojo::Log::Colored:
     file: lib/Mojo/Log/Colored.pm
-    version: '0.03'
+    version: '0.04'
 requires:
   Mojolicious: '5.00'
   Term::ANSIColor: '3.00'
@@ -36,7 +36,7 @@
   bugtracker: https://github.com/simbabque/Mojo-Log-Colored/issues
   homepage: https://github.com/simbabque/Mojo-Log-Colored
   repository: git://github.com/simbabque/Mojo-Log-Colored.git
-version: '0.03'
+version: '0.04'
 x_contributors:
   - 'E. Choroba <chor...@matfyz.cz>'
   - 'Mohammad S Anwar <mohammad.an...@yahoo.com>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/README.md 
new/Mojo-Log-Colored-0.04/README.md
--- old/Mojo-Log-Colored-0.03/README.md 2020-05-22 14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/README.md 2021-02-20 22:04:23.000000000 +0100
@@ -79,6 +79,11 @@
 
 [Mojo::Log::Colored](https://metacpan.org/pod/Mojo::Log::Colored) inherits all 
methods from [Mojo::Log](https://metacpan.org/pod/Mojo::Log) and does not 
implement new ones.
 
+# BREAKING CHANGES
+
+Mojolicious changed the way multi-line log messages are emitted [in version 
9](https://mojolicious.io/blog/2021/02/14/announcing-mojolicious-9-0/).
+This logger honours this default format.
+
 # SEE ALSO
 
 [Mojo::Log](https://metacpan.org/pod/Mojo::Log), 
[Term::ANSIColor](https://metacpan.org/pod/Term::ANSIColor)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/lib/Mojo/Log/Colored.pm 
new/Mojo-Log-Colored-0.04/lib/Mojo/Log/Colored.pm
--- old/Mojo-Log-Colored-0.03/lib/Mojo/Log/Colored.pm   2020-05-22 
14:32:38.000000000 +0200
+++ new/Mojo-Log-Colored-0.04/lib/Mojo/Log/Colored.pm   2021-02-20 
22:04:23.000000000 +0100
@@ -4,7 +4,7 @@
 
 use if $^O eq "MSWin32", "Win32::Console::ANSI";
 
-our $VERSION = "0.03";
+our $VERSION = "0.04";
 
 has 'colors' => sub {
     return {
@@ -37,8 +37,16 @@
     )->_format;
 }
 
-sub _default_format {
-    '[' . localtime(shift) . '] [' . shift() . '] ' . join "\n", @_, '';
+# use the default logger format based on the Mojo version we're running under
+sub _default_format;
+if ($Mojolicious::VERSION && $Mojolicious::VERSION >= 9) {
+    *_default_format = sub {
+        '[' . localtime(shift) . '] [' . shift() . '] ' . join(' ', @_, "\n"); 
      
+    };
+} else {
+    *_default_format = sub {
+        '[' . localtime(shift) . '] [' . shift() . '] ' . join("\n", @_, '');
+    };
 }
 
 1;
@@ -128,6 +136,11 @@
 
 L<Mojo::Log::Colored> inherits all methods from L<Mojo::Log> and does not 
implement new ones.
 
+=head1 BREAKING CHANGES
+
+Mojolicious changed the way multi-line log messages are emitted L<in version 
9|https://mojolicious.io/blog/2021/02/14/announcing-mojolicious-9-0/>.
+This logger honours this default format.
+
 =head1 SEE ALSO
 
 L<Mojo::Log>, L<Term::ANSIColor>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/t/logformat_post_9.t 
new/Mojo-Log-Colored-0.04/t/logformat_post_9.t
--- old/Mojo-Log-Colored-0.03/t/logformat_post_9.t      1970-01-01 
01:00:00.000000000 +0100
+++ new/Mojo-Log-Colored-0.04/t/logformat_post_9.t      2021-02-20 
22:04:23.000000000 +0100
@@ -0,0 +1,20 @@
+use strict;
+use warnings;
+use Test::More;
+use Capture::Tiny 'capture_stderr';
+use Term::ANSIColor 'colorstrip';
+
+{
+    no warnings 'once';
+    $Mojolicious::VERSION = 9.01;
+
+    require Mojo::Log::Colored;
+}
+
+my $stderr = capture_stderr {
+    Mojo::Log::Colored->new->warn('foo', 'bar', "baz\nqrr");
+};
+
+like colorstrip($stderr), qr{foo\sbar\sbaz\nqrr}, "log contains spaces between 
elements";
+
+done_testing;
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Log-Colored-0.03/t/logformat_pre_9.t 
new/Mojo-Log-Colored-0.04/t/logformat_pre_9.t
--- old/Mojo-Log-Colored-0.03/t/logformat_pre_9.t       1970-01-01 
01:00:00.000000000 +0100
+++ new/Mojo-Log-Colored-0.04/t/logformat_pre_9.t       2021-02-20 
22:04:23.000000000 +0100
@@ -0,0 +1,20 @@
+use strict;
+use warnings;
+use Test::More;
+use Capture::Tiny 'capture_stderr';
+use Term::ANSIColor 'colorstrip';
+
+{
+    no warnings 'once';
+    $Mojolicious::VERSION = 8;
+
+    require Mojo::Log::Colored;
+}
+
+my $stderr = capture_stderr {
+    Mojo::Log::Colored->new->warn('foo', 'bar', "baz\nqrr");
+};
+
+like colorstrip($stderr), qr{foo\nbar\nbaz\nqrr}, "log contains spaces between 
elements";
+
+done_testing;
\ No newline at end of file

Reply via email to