Hello community,

here is the log from the commit of package perl-Mojo-Pg for openSUSE:Factory 
checked in at 2017-11-11 14:19:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojo-Pg (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojo-Pg.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojo-Pg"

Sat Nov 11 14:19:36 2017 rev:8 rq:539483 version:4.03

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Mojo-Pg/perl-Mojo-Pg.changes        
2017-11-07 09:58:00.138293341 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Mojo-Pg.new/perl-Mojo-Pg.changes   
2017-11-11 14:19:40.523047597 +0100
@@ -1,0 +2,21 @@
+Tue Nov  7 06:40:47 UTC 2017 - [email protected]
+
+- updated to 4.03
+   see /usr/share/doc/packages/perl-Mojo-Pg/Changes
+
+-------------------------------------------------------------------
+Mon Nov  6 06:56:30 UTC 2017 - [email protected]
+
+- updated to 4.03
+   see /usr/share/doc/packages/perl-Mojo-Pg/Changes
+
+-------------------------------------------------------------------
+Sun Nov  5 06:40:53 UTC 2017 - [email protected]
+
+- updated to 4.03
+   see /usr/share/doc/packages/perl-Mojo-Pg/Changes
+
+  4.03  2017-11-04
+    - Improved Mojo::Pg::Database to use Mojo::Promise.
+
+-------------------------------------------------------------------

Old:
----
  Mojo-Pg-4.02.tar.gz

New:
----
  Mojo-Pg-4.03.tar.gz

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

Other differences:
------------------
++++++ perl-Mojo-Pg.spec ++++++
--- /var/tmp/diff_new_pack.djJGXh/_old  2017-11-11 14:19:41.167023995 +0100
+++ /var/tmp/diff_new_pack.djJGXh/_new  2017-11-11 14:19:41.171023848 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojo-Pg
-Version:        4.02
+Version:        4.03
 Release:        0
 %define cpan_name Mojo-Pg
 Summary:        Mojolicious ♥ PostgreSQL
@@ -31,10 +31,10 @@
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(DBD::Pg) >= 3.005001
-BuildRequires:  perl(Mojolicious) >= 7.51
+BuildRequires:  perl(Mojolicious) >= 7.53
 BuildRequires:  perl(SQL::Abstract) >= 1.81
 Requires:       perl(DBD::Pg) >= 3.005001
-Requires:       perl(Mojolicious) >= 7.51
+Requires:       perl(Mojolicious) >= 7.53
 Requires:       perl(SQL::Abstract) >= 1.81
 %{perl_requires}
 

++++++ Mojo-Pg-4.02.tar.gz -> Mojo-Pg-4.03.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/Changes new/Mojo-Pg-4.03/Changes
--- old/Mojo-Pg-4.02/Changes    2017-11-02 19:41:32.000000000 +0100
+++ new/Mojo-Pg-4.03/Changes    2017-11-04 18:01:39.000000000 +0100
@@ -1,4 +1,7 @@
 
+4.03  2017-11-04
+  - Improved Mojo::Pg::Database to use Mojo::Promise.
+
 4.02  2017-11-02
   - Added delete_p, insert_p, query_p, select_p and update_p methods to
     Mojo::Pg::Database.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/META.json new/Mojo-Pg-4.03/META.json
--- old/Mojo-Pg-4.02/META.json  2017-11-02 23:25:21.000000000 +0100
+++ new/Mojo-Pg-4.03/META.json  2017-11-04 18:04:41.000000000 +0100
@@ -35,7 +35,7 @@
       "runtime" : {
          "requires" : {
             "DBD::Pg" : "3.005001",
-            "Mojolicious" : "7.51",
+            "Mojolicious" : "7.53",
             "SQL::Abstract" : "1.81",
             "perl" : "5.010001"
          }
@@ -57,6 +57,6 @@
       },
       "x_IRC" : "irc://irc.perl.org/#mojo"
    },
-   "version" : "4.02",
+   "version" : "4.03",
    "x_serialization_backend" : "JSON::PP version 2.94"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/META.yml new/Mojo-Pg-4.03/META.yml
--- old/Mojo-Pg-4.02/META.yml   2017-11-02 23:25:21.000000000 +0100
+++ new/Mojo-Pg-4.03/META.yml   2017-11-04 18:04:41.000000000 +0100
@@ -21,7 +21,7 @@
     - t
 requires:
   DBD::Pg: '3.005001'
-  Mojolicious: '7.51'
+  Mojolicious: '7.53'
   SQL::Abstract: '1.81'
   perl: '5.010001'
 resources:
@@ -30,5 +30,5 @@
   homepage: http://mojolicious.org
   license: http://www.opensource.org/licenses/artistic-license-2.0
   repository: https://github.com/kraih/mojo-pg.git
-version: '4.02'
+version: '4.03'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/Makefile.PL new/Mojo-Pg-4.03/Makefile.PL
--- old/Mojo-Pg-4.02/Makefile.PL        2017-11-02 19:10:49.000000000 +0100
+++ new/Mojo-Pg-4.03/Makefile.PL        2017-11-04 16:20:03.000000000 +0100
@@ -30,6 +30,6 @@
     },
   },
   PREREQ_PM =>
-    {'DBD::Pg' => 3.005001, Mojolicious => '7.51', 'SQL::Abstract' => '1.81'},
+    {'DBD::Pg' => 3.005001, Mojolicious => '7.53', 'SQL::Abstract' => '1.81'},
   test => {TESTS => 't/*.t t/*/*.t'}
 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/lib/Mojo/Pg/Database.pm 
new/Mojo-Pg-4.03/lib/Mojo/Pg/Database.pm
--- old/Mojo-Pg-4.02/lib/Mojo/Pg/Database.pm    2017-11-02 19:40:46.000000000 
+0100
+++ new/Mojo-Pg-4.03/lib/Mojo/Pg/Database.pm    2017-11-04 16:21:36.000000000 
+0100
@@ -7,6 +7,7 @@
 use Mojo::JSON 'to_json';
 use Mojo::Pg::Results;
 use Mojo::Pg::Transaction;
+use Mojo::Promise;
 use Mojo::Util 'monkey_patch';
 use Scalar::Util 'weaken';
 
@@ -115,7 +116,7 @@
 
 sub query_p {
   my $self    = shift;
-  my $promise = Mojo::IOLoop->delay;
+  my $promise = Mojo::Promise->new;
   $self->query(
     @_ => sub { $_[1] ? $promise->reject($_[1]) : $promise->resolve($_[2]) });
   return $promise;
@@ -307,8 +308,7 @@
   my $promise = $db->delete_p($table, \%where, \%options);
 
 Same as L</"delete">, but performs all operations non-blocking and returns a
-L<Mojo::IOLoop::Delay> object to be used as a promise instead of accepting a
-callback.
+L<Mojo::Promise> object to be used as a promise instead of accepting a 
callback.
 
   $db->delete_p('some_table')->then(sub {
     my $results = shift;
@@ -369,8 +369,7 @@
   my $promise = $db->insert_p($table, \@values || \%fieldvals, \%options);
 
 Same as L</"insert">, but performs all operations non-blocking and returns a
-L<Mojo::IOLoop::Delay> object to be used as a promise instead of accepting a
-callback.
+L<Mojo::Promise> object to be used as a promise instead of accepting a 
callback.
 
   $db->insert_p(some_table => {foo => 'bar'})->then(sub {
     my $results = shift;
@@ -452,8 +451,7 @@
   my $promise = $db->query_p('select * from foo');
 
 Same as L</"query">, but performs all operations non-blocking and returns a
-L<Mojo::IOLoop::Delay> object to be used as a promise instead of accepting a
-callback.
+L<Mojo::Promise> object to be used as a promise instead of accepting a 
callback.
 
   $db->query_p('insert into foo values (?, ?, ?)' => @values)->then(sub {
     my $results = shift;
@@ -500,8 +498,7 @@
   my $promise = $db->select_p($source, $fields, $where, $order);
 
 Same as L</"select">, but performs all operations non-blocking and returns a
-L<Mojo::IOLoop::Delay> object to be used as a promise instead of accepting a
-callback.
+L<Mojo::Promise> object to be used as a promise instead of accepting a 
callback.
 
   $db->select_p(some_table => ['foo'] => {bar => 'yada'})->then(sub {
     my $results = shift;
@@ -562,7 +559,7 @@
   my $promise = $db->update_p($table, \%fieldvals, \%where, \%options);
 
 Same as L</"update">, but performs all operations non-blocking and returns a
-L<Mojo::IOLoop::Delay> object to be used as a promise instead of accepting a
+L<Mojo::Promise> object to be used as a promise instead of accepting a
 callback.
 
   $db->update_p(some_table => {foo => 'baz'} => {foo => 'bar'})->then(sub {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojo-Pg-4.02/lib/Mojo/Pg.pm 
new/Mojo-Pg-4.03/lib/Mojo/Pg.pm
--- old/Mojo-Pg-4.02/lib/Mojo/Pg.pm     2017-11-02 19:50:15.000000000 +0100
+++ new/Mojo-Pg-4.03/lib/Mojo/Pg.pm     2017-11-04 18:03:27.000000000 +0100
@@ -38,7 +38,7 @@
   return $pubsub;
 };
 
-our $VERSION = '4.02';
+our $VERSION = '4.03';
 
 sub db { $_[0]->database_class->new(dbh => $_[0]->_prepare, pg => $_[0]) }
 
@@ -186,7 +186,7 @@
   # Concurrent non-blocking queries (synchronized with promises)
   my $now   = $pg->db->query_p('select now() as now');
   my $names = $pg->db->query_p('select * from names');
-  $now->all($names)->then(sub {
+  Mojo::Promise->all($now, $names)->then(sub {
     my ($now, $names) = @_;
     say $now->[0]->hash->{now};
     say $_->{name} for $names->[0]->hashes->each;


Reply via email to