Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Mojo-Pg for openSUSE:Factory checked in at 2021-09-14 21:14:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Mojo-Pg (Old) and /work/SRC/openSUSE:Factory/.perl-Mojo-Pg.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mojo-Pg" Tue Sep 14 21:14:14 2021 rev:29 rq:918701 version:4.26 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Mojo-Pg/perl-Mojo-Pg.changes 2021-03-17 20:19:14.307258761 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Mojo-Pg.new.1899/perl-Mojo-Pg.changes 2021-09-14 21:14:16.692398466 +0200 @@ -1,0 +2,9 @@ +Thu Sep 9 03:07:33 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 4.26 + see /usr/share/doc/packages/perl-Mojo-Pg/Changes + + 4.26 2021-09-08 + - Fixed a bug in Mojo::Pg::PubSub would sometimes miss notifications. (akarelas) + +------------------------------------------------------------------- Old: ---- Mojo-Pg-4.25.tar.gz New: ---- Mojo-Pg-4.26.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mojo-Pg.spec ++++++ --- /var/tmp/diff_new_pack.tDeSnk/_old 2021-09-14 21:14:18.376400120 +0200 +++ /var/tmp/diff_new_pack.tDeSnk/_new 2021-09-14 21:14:18.380400123 +0200 @@ -18,7 +18,7 @@ %define cpan_name Mojo-Pg Name: perl-Mojo-Pg -Version: 4.25 +Version: 4.26 Release: 0 Summary: Wrapper around DBD::Pg for using PostgreSql with Mojolicious License: Artistic-2.0 ++++++ Mojo-Pg-4.25.tar.gz -> Mojo-Pg-4.26.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/Changes new/Mojo-Pg-4.26/Changes --- old/Mojo-Pg-4.25/Changes 2021-02-20 17:53:58.000000000 +0100 +++ new/Mojo-Pg-4.26/Changes 2021-09-08 23:41:13.000000000 +0200 @@ -1,4 +1,7 @@ +4.26 2021-09-08 + - Fixed a bug in Mojo::Pg::PubSub would sometimes miss notifications. (akarelas) + 4.25 2021-02-20 - Moved SQL::Abstract::Pg into a separate distribution. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/META.json new/Mojo-Pg-4.26/META.json --- old/Mojo-Pg-4.25/META.json 2021-02-20 18:12:15.000000000 +0100 +++ new/Mojo-Pg-4.26/META.json 2021-09-08 23:42:48.000000000 +0200 @@ -4,7 +4,7 @@ "Sebastian Riedel <s...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "ExtUtils::MakeMaker version 7.60, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010", "license" : [ "artistic_2" ], @@ -56,10 +56,10 @@ "web" : "https://github.com/mojolicious/mojo-pg" }, "x_IRC" : { - "url" : "irc://chat.freenode.net/#mojo", - "web" : "https://webchat.freenode.net/#mojo" + "url" : "irc://irc.libera.chat/#mojo", + "web" : "https://web.libera.chat/#mojo" } }, - "version" : "4.25", + "version" : "4.26", "x_serialization_backend" : "JSON::PP version 4.06" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/META.yml new/Mojo-Pg-4.26/META.yml --- old/Mojo-Pg-4.25/META.yml 2021-02-20 18:12:15.000000000 +0100 +++ new/Mojo-Pg-4.26/META.yml 2021-09-08 23:42:48.000000000 +0200 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'ExtUtils::MakeMaker version 7.60, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -26,11 +26,11 @@ perl: '5.016' resources: IRC: - url: irc://chat.freenode.net/#mojo - web: https://webchat.freenode.net/#mojo + url: irc://irc.libera.chat/#mojo + web: https://web.libera.chat/#mojo bugtracker: https://github.com/mojolicious/mojo-pg/issues homepage: https://mojolicious.org license: http://www.opensource.org/licenses/artistic-license-2.0 repository: https://github.com/mojolicious/mojo-pg.git -version: '4.25' +version: '4.26' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/Makefile.PL new/Mojo-Pg-4.26/Makefile.PL --- old/Mojo-Pg-4.25/Makefile.PL 2021-02-20 17:54:07.000000000 +0100 +++ new/Mojo-Pg-4.26/Makefile.PL 2021-09-08 23:40:12.000000000 +0200 @@ -26,7 +26,7 @@ url => 'https://github.com/mojolicious/mojo-pg.git', web => 'https://github.com/mojolicious/mojo-pg', }, - x_IRC => {url => 'irc://chat.freenode.net/#mojo', web => 'https://webchat.freenode.net/#mojo'} + x_IRC => {url => 'irc://irc.libera.chat/#mojo', web => 'https://web.libera.chat/#mojo'} }, }, PREREQ_PM => {'DBD::Pg' => 3.007004, Mojolicious => '8.50', 'SQL::Abstract::Pg' => '1.0'}, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/examples/blog/lib/Blog/Controller/Posts.pm new/Mojo-Pg-4.26/examples/blog/lib/Blog/Controller/Posts.pm --- old/Mojo-Pg-4.25/examples/blog/lib/Blog/Controller/Posts.pm 2020-12-10 17:52:29.000000000 +0100 +++ new/Mojo-Pg-4.26/examples/blog/lib/Blog/Controller/Posts.pm 2021-09-04 17:57:09.000000000 +0200 @@ -26,7 +26,7 @@ my $v = $self->_validation; return $self->render(action => 'create', post => {}) if $v->has_error; - my $id = $self->posts->add($v->output); + my $id = $self->posts->add({title => $v->param('title'), body => $v->param('body')}); $self->redirect_to('show_post', id => $id); } @@ -35,7 +35,7 @@ return $self->render(action => 'edit', post => {}) if $v->has_error; my $id = $self->param('id'); - $self->posts->save($id, $v->output); + $self->posts->save($id, {title => $v->param('title'), body => $v->param('body')}); $self->redirect_to('show_post', id => $id); } @@ -43,7 +43,6 @@ my $v = $self->validation; $v->required('title', 'not_empty'); $v->required('body', 'not_empty'); - return $v; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/lib/Mojo/Pg/Database.pm new/Mojo-Pg-4.26/lib/Mojo/Pg/Database.pm --- old/Mojo-Pg-4.25/lib/Mojo/Pg/Database.pm 2021-01-17 15:58:18.000000000 +0100 +++ new/Mojo-Pg-4.26/lib/Mojo/Pg/Database.pm 2021-09-08 23:40:12.000000000 +0200 @@ -53,6 +53,7 @@ my $dbh = $self->dbh; $dbh->do('LISTEN ' . $dbh->quote_identifier($name)) unless $self->{listen}{$name}++; $self->_watch; + $self->_notifications; return $self; } @@ -127,6 +128,7 @@ my $dbh = $self->dbh; $dbh->do('UNLISTEN ' . $dbh->quote_identifier($name)); $name eq '*' ? delete $self->{listen} : delete $self->{listen}{$name}; + $self->_notifications; $self->_unwatch unless $self->{waiting} || $self->is_listening; return $self; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/lib/Mojo/Pg.pm new/Mojo-Pg-4.26/lib/Mojo/Pg.pm --- old/Mojo-Pg-4.25/lib/Mojo/Pg.pm 2021-02-20 17:54:51.000000000 +0100 +++ new/Mojo-Pg-4.26/lib/Mojo/Pg.pm 2021-09-04 17:57:09.000000000 +0200 @@ -22,7 +22,7 @@ has [qw(password username)] => ''; has pubsub => sub { Mojo::Pg::PubSub->new(pg => shift) }; -our $VERSION = '4.25'; +our $VERSION = '4.26'; sub db { $_[0]->database_class->new(dbh => $_[0]->_prepare, pg => $_[0]) } @@ -266,11 +266,11 @@ =head1 EXAMPLES This distribution also contains two great L<example -applications|https://github.com/mojolicious/mojo-pg/tree/master/examples/> you can use for inspiration. The minimal -L<chat|https://github.com/mojolicious/mojo-pg/tree/master/examples/chat.pl> application will show you how to scale +applications|https://github.com/mojolicious/mojo-pg/tree/main/examples/> you can use for inspiration. The minimal +L<chat|https://github.com/mojolicious/mojo-pg/tree/main/examples/chat.pl> application will show you how to scale WebSockets to multiple servers, and the well-structured -L<blog|https://github.com/mojolicious/mojo-pg/tree/master/examples/blog> application how to apply the MVC design -pattern in practice. +L<blog|https://github.com/mojolicious/mojo-pg/tree/main/examples/blog> application how to apply the MVC design pattern +in practice. =head1 EVENTS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojo-Pg-4.25/t/pubsub.t new/Mojo-Pg-4.26/t/pubsub.t --- old/Mojo-Pg-4.25/t/pubsub.t 2020-10-24 23:29:49.000000000 +0200 +++ new/Mojo-Pg-4.26/t/pubsub.t 2021-09-08 23:41:54.000000000 +0200 @@ -179,4 +179,16 @@ }; }; +subtest 'Call listen/unlisten immediately after notify' => sub { + my $pg = Mojo::Pg->new($ENV{TEST_ONLINE}); + my @test; + $pg->pubsub->listen(pstest => sub { push @test, pop }); + $pg->db->notify(pstest => 'works'); + $pg->pubsub->listen(pstest2 => sub { }); + is_deeply \@test, ['works'], 'right messages'; + $pg->db->notify(pstest => 'works too'); + $pg->pubsub->unlisten(pstest3 => sub { }); + is_deeply \@test, ['works', 'works too'], 'right messages'; +}; + done_testing();