Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Mojo-Redis for openSUSE:Factory checked in at 2021-04-12 17:10:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Mojo-Redis (Old) and /work/SRC/openSUSE:Factory/.perl-Mojo-Redis.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mojo-Redis" Mon Apr 12 17:10:23 2021 rev:5 rq:876528 version:3.26 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Mojo-Redis/perl-Mojo-Redis.changes 2020-10-13 15:47:48.397505673 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Mojo-Redis.new.2401/perl-Mojo-Redis.changes 2021-04-12 17:10:24.418567800 +0200 @@ -1,0 +2,10 @@ +Mon Mar 1 03:07:25 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 3.26 + see /usr/share/doc/packages/perl-Mojo-Redis/Changes + + 3.26 2021-03-01T09:01:51+0900 + - Avoid circular reference in redis response parser + Contributor: Dan Book + +------------------------------------------------------------------- Old: ---- Mojo-Redis-3.25.tar.gz New: ---- Mojo-Redis-3.26.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mojo-Redis.spec ++++++ --- /var/tmp/diff_new_pack.1QMCI2/_old 2021-04-12 17:10:25.586569093 +0200 +++ /var/tmp/diff_new_pack.1QMCI2/_new 2021-04-12 17:10:25.590569098 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Mojo-Redis # -# 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,24 +16,22 @@ # +%define cpan_name Mojo-Redis Name: perl-Mojo-Redis -Version: 3.25 +Version: 3.26 Release: 0 -%define cpan_name Mojo-Redis Summary: Redis driver based on Mojo::IOLoop License: Artistic-2.0 -Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Mojolicious) >= 7.80 +BuildRequires: perl(Mojolicious) >= 8.50 BuildRequires: perl(Protocol::Redis::Faster) >= 0.002 BuildRequires: perl(Test::More) >= 0.88 -Requires: perl(Mojolicious) >= 7.80 +Requires: perl(Mojolicious) >= 8.50 Requires: perl(Protocol::Redis::Faster) >= 0.002 %{perl_requires} @@ -55,11 +53,11 @@ 'jhthor...@cpan.org'. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -70,7 +68,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes examples README.md %changelog ++++++ Mojo-Redis-3.25.tar.gz -> Mojo-Redis-3.26.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/Changes new/Mojo-Redis-3.26/Changes --- old/Mojo-Redis-3.25/Changes 2020-10-02 03:21:30.000000000 +0200 +++ new/Mojo-Redis-3.26/Changes 2021-03-01 01:01:51.000000000 +0100 @@ -1,5 +1,9 @@ Revision history for perl distribution Mojo-Redis +3.26 2021-03-01T09:01:51+0900 + - Avoid circular reference in redis response parser + Contributor: Dan Book + 3.25 2020-10-02T10:21:30+0900 - Fix handling undef() in _process_...() methods #56 - Fix some leaks in Mojo::Redis::PubSub diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/META.json new/Mojo-Redis-3.26/META.json --- old/Mojo-Redis-3.25/META.json 2020-10-02 03:21:32.000000000 +0200 +++ new/Mojo-Redis-3.26/META.json 2021-03-01 01:01:52.000000000 +0100 @@ -30,8 +30,9 @@ }, "runtime" : { "requires" : { - "Mojolicious" : "7.80", - "Protocol::Redis::Faster" : "0.002" + "Mojolicious" : "8.50", + "Protocol::Redis::Faster" : "0.002", + "perl" : "5.016" } }, "test" : { @@ -52,7 +53,7 @@ "web" : "https://github.com/jhthorsen/mojo-redis" } }, - "version" : "3.25", + "version" : "3.26", "x_contributors" : [ "Jan Henning Thorsen <jhthor...@cpan.org>", "Dan Book <gri...@grinnz.com>" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/META.yml new/Mojo-Redis-3.26/META.yml --- old/Mojo-Redis-3.25/META.yml 2020-10-02 03:21:31.000000000 +0200 +++ new/Mojo-Redis-3.26/META.yml 2021-03-01 01:01:52.000000000 +0100 @@ -18,13 +18,14 @@ - t - inc requires: - Mojolicious: '7.80' + Mojolicious: '8.50' Protocol::Redis::Faster: '0.002' + perl: '5.016' resources: bugtracker: https://github.com/jhthorsen/mojo-redis/issues homepage: https://github.com/jhthorsen/mojo-redis repository: https://github.com/jhthorsen/mojo-redis.git -version: '3.25' +version: '3.26' x_contributors: - 'Jan Henning Thorsen <jhthor...@cpan.org>' - 'Dan Book <gri...@grinnz.com>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/Makefile.PL new/Mojo-Redis-3.26/Makefile.PL --- old/Mojo-Redis-3.25/Makefile.PL 2020-10-02 03:21:29.000000000 +0200 +++ new/Mojo-Redis-3.26/Makefile.PL 2021-03-01 01:01:51.000000000 +0100 @@ -16,8 +16,9 @@ } , PREREQ_PM => { - 'Mojolicious' => '7.80', - 'Protocol::Redis::Faster' => '0.002' + 'Mojolicious' => '8.50', + 'Protocol::Redis::Faster' => '0.002', + 'perl' => '5.016' } , META_MERGE => { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/cpanfile new/Mojo-Redis-3.26/cpanfile --- old/Mojo-Redis-3.25/cpanfile 2019-04-04 05:26:26.000000000 +0200 +++ new/Mojo-Redis-3.26/cpanfile 2021-03-01 00:53:56.000000000 +0100 @@ -1,5 +1,6 @@ # You can install this projct with curl -L http://cpanmin.us | perl - https://github.com/jhthorsen/mojo-redis/archive/master.tar.gz -requires "Mojolicious" => "7.80"; +requires "perl" => "5.016"; +requires "Mojolicious" => "8.50"; requires "Protocol::Redis::Faster" => "0.002"; test_requires "Test::More" => "0.88"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/lib/Mojo/Redis/Connection.pm new/Mojo-Redis-3.26/lib/Mojo/Redis/Connection.pm --- old/Mojo-Redis-3.25/lib/Mojo/Redis/Connection.pm 2020-04-24 06:11:43.000000000 +0200 +++ new/Mojo-Redis-3.26/lib/Mojo/Redis/Connection.pm 2021-03-01 00:56:23.000000000 +0100 @@ -6,7 +6,7 @@ use Mojo::Promise; use constant DEBUG => $ENV{MOJO_REDIS_DEBUG}; -use constant CONNECT_TIMEOUT => $ENV{MOJO_REDIS_CONNECT_TIMEOUT} || 10; +use constant CONNECT_TIMEOUT => $ENV{MOJO_REDIS_CONNECT_TIMEOUT} || 10; use constant SENTINELS_CONNECT_TIMEOUT => $ENV{MOJO_REDIS_SENTINELS_CONNECT_TIMEOUT} || CONNECT_TIMEOUT; has encoding => sub { Carp::confess('encoding is required in constructor') }; @@ -158,7 +158,7 @@ delete $self->{$_} for qw(id stream); $self->{gone_away} = 1; $self->_reject_queue($err); - $self->emit('close') if @_ == 1; + $self->emit('close') if @_ == 1; warn qq([@{[$self->_id]}] @{[$err ? "ERROR $err" : "CLOSED"]}\n) if $self and DEBUG; }; } @@ -184,8 +184,7 @@ my $encoding = $self->encoding; $self->_write; - my $unpack; - $unpack = sub { + my $unpack = sub { my @res; while (my $m = shift @_) { @@ -196,7 +195,7 @@ push @res, 0 + $m->{data}; } elsif ($m->{type} eq '*' and ref $m->{data} eq 'ARRAY') { - my ($err, $res) = $unpack->(@{$m->{data}}); + my ($err, $res) = __SUB__->(@{$m->{data}}); return $err if defined $err; push @res, $res; } @@ -215,7 +214,7 @@ my ($err, $res) = $unpack->(@messages); my $p = shift @{$self->{waiting} || []}; - return $p ? $p->reject($err) : $self->emit(error => $err) unless $res; + return $p ? $p->reject($err) : $self->emit(error => $err) unless $res; return $p ? $p->resolve($res->[0]) : $self->emit(response => $res->[0]); }; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/lib/Mojo/Redis/Cursor.pm new/Mojo-Redis-3.26/lib/Mojo/Redis/Cursor.pm --- old/Mojo-Redis-3.25/lib/Mojo/Redis/Cursor.pm 2019-01-31 04:38:30.000000000 +0100 +++ new/Mojo-Redis-3.26/lib/Mojo/Redis/Cursor.pm 2021-03-01 00:59:21.000000000 +0100 @@ -32,29 +32,25 @@ } # Non-blocking - my $then; - $then = sub { + $self->_next_p($conn)->then(sub { push @res, @{$_[0]}; return $self->$cb('', $self->{process}->($self, \@res)) if $self->{finished}; - return $self->_next_p($conn)->then($then); - }; + return $self->_next_p($conn)->then(__SUB__); + })->catch(sub { $self->$cb($_[0], []) }); - $self->_next_p($conn)->then($then)->catch(sub { $self->$cb($_[0], []) }); return $self; } sub all_p { my $self = shift->again; # Reset cursor my $conn = $self->connection; - my ($then, @res); + my @res; - $then = sub { + return $self->_next_p($conn)->then(sub { push @res, @{$_[0]}; return $self->{process}->($self, \@res) if $self->{finished}; - return $self->_next_p($conn)->then($then); - }; - - return $self->_next_p($conn)->then($then); + return $self->_next_p($conn)->then(__SUB__); + }); } sub next { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Redis-3.25/lib/Mojo/Redis.pm new/Mojo-Redis-3.26/lib/Mojo/Redis.pm --- old/Mojo-Redis-3.25/lib/Mojo/Redis.pm 2020-10-02 03:21:30.000000000 +0200 +++ new/Mojo-Redis-3.26/lib/Mojo/Redis.pm 2021-03-01 01:01:51.000000000 +0100 @@ -9,7 +9,7 @@ use Mojo::Redis::PubSub; use Scalar::Util 'blessed'; -our $VERSION = '3.25'; +our $VERSION = '3.26'; $ENV{MOJO_REDIS_URL} ||= 'redis://localhost:6379';