Hello community,

here is the log from the commit of package perl-Mojolicious for 
openSUSE:Factory checked in at 2015-09-24 06:15:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Mojolicious/perl-Mojolicious.changes        
2015-09-17 09:20:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Mojolicious.new/perl-Mojolicious.changes   
2015-09-24 06:15:04.000000000 +0200
@@ -1,0 +2,11 @@
+Sun Sep 20 09:02:55 UTC 2015 - co...@suse.com
+
+- updated to 6.20
+   see /usr/share/doc/packages/perl-Mojolicious/Changes
+
+  6.20  2015-09-15
+    - Deprecated Mojo::UserAgent::CookieJar::collecting in favor of
+      Mojo::UserAgent::CookieJar::ignore.
+    - Improved support for epoll/kqueue in Mojo::IOLoop::Client.
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-6.19.tar.gz

New:
----
  Mojolicious-6.20.tar.gz

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

Other differences:
------------------
++++++ perl-Mojolicious.spec ++++++
--- /var/tmp/diff_new_pack.sL9OL9/_old  2015-09-24 06:15:05.000000000 +0200
+++ /var/tmp/diff_new_pack.sL9OL9/_new  2015-09-24 06:15:05.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojolicious
-Version:        6.19
+Version:        6.20
 Release:        0
 %define cpan_name Mojolicious
 Summary:        Real-time web framework

++++++ Mojolicious-6.19.tar.gz -> Mojolicious-6.20.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/Changes new/Mojolicious-6.20/Changes
--- old/Mojolicious-6.19/Changes        2015-09-12 13:55:58.000000000 +0200
+++ new/Mojolicious-6.20/Changes        2015-09-17 00:44:17.000000000 +0200
@@ -1,4 +1,9 @@
 
+6.20  2015-09-15
+  - Deprecated Mojo::UserAgent::CookieJar::collecting in favor of
+    Mojo::UserAgent::CookieJar::ignore.
+  - Improved support for epoll/kqueue in Mojo::IOLoop::Client.
+
 6.19  2015-09-12
   - Added code of conduct to Mojolicious::Guides::Contributing.
   - Added ignore attribute to Mojo::UserAgent::CookieJar.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/META.json 
new/Mojolicious-6.20/META.json
--- old/Mojolicious-6.19/META.json      2015-09-13 01:36:18.000000000 +0200
+++ new/Mojolicious-6.20/META.json      2015-09-17 00:49:25.000000000 +0200
@@ -57,6 +57,6 @@
       },
       "x_IRC" : "irc://irc.perl.org/#mojo"
    },
-   "version" : "6.19",
+   "version" : "6.20",
    "x_serialization_backend" : "JSON::PP version 2.27300"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/META.yml 
new/Mojolicious-6.20/META.yml
--- old/Mojolicious-6.19/META.yml       2015-09-13 01:36:18.000000000 +0200
+++ new/Mojolicious-6.20/META.yml       2015-09-17 00:49:25.000000000 +0200
@@ -30,5 +30,5 @@
   homepage: http://mojolicio.us
   license: http://www.opensource.org/licenses/artistic-license-2.0
   repository: https://github.com/kraih/mojo.git
-version: '6.19'
+version: '6.20'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/lib/Mojo/IOLoop/Client.pm 
new/Mojolicious-6.20/lib/Mojo/IOLoop/Client.pm
--- old/Mojolicious-6.19/lib/Mojo/IOLoop/Client.pm      2015-08-29 
13:17:09.000000000 +0200
+++ new/Mojolicious-6.20/lib/Mojo/IOLoop/Client.pm      2015-09-17 
00:38:08.000000000 +0200
@@ -86,10 +86,7 @@
   }
   $handle->blocking(0);
 
-  # Wait for handle to become writable
-  weaken $self;
-  $self->reactor->io($handle => sub { $self->_ready($args) })
-    ->watch($handle, 0, 1);
+  $self->_wait($handle, $args);
 }
 
 sub _port { $_[0]{socks_port} || $_[0]{port} || ($_[0]{tls} ? 443 : 80) }
@@ -97,10 +94,14 @@
 sub _ready {
   my ($self, $args) = @_;
 
-  # Retry or handle exceptions
+  # Socket changes in between attempts and needs to be re-added for 
epoll/kqueue
   my $handle = $self->{handle};
-  return $! == EINPROGRESS ? undef : $self->emit(error => $!)
-    if $handle->isa('IO::Socket::IP') && !$handle->connect;
+  if ($handle->isa('IO::Socket::IP') && !$handle->connect) {
+    return $self->emit(error => $!) unless $! == EINPROGRESS;
+    $self->reactor->remove($handle);
+    return $self->_wait($handle, $args);
+  }
+
   return $self->emit(error => $! || 'Not connected') unless $handle->connected;
 
   # Disable Nagle's algorithm
@@ -186,6 +187,13 @@
   $reactor->io($handle => sub { $self->_tls })->watch($handle, 0, 1);
 }
 
+sub _wait {
+  my ($self, $handle, $args) = @_;
+  weaken $self;
+  $self->reactor->io($handle => sub { $self->_ready($args) })
+    ->watch($handle, 0, 1);
+}
+
 1;
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/lib/Mojo/UserAgent/CookieJar.pm 
new/Mojolicious-6.20/lib/Mojo/UserAgent/CookieJar.pm
--- old/Mojolicious-6.19/lib/Mojo/UserAgent/CookieJar.pm        2015-09-12 
18:34:28.000000000 +0200
+++ new/Mojolicious-6.20/lib/Mojo/UserAgent/CookieJar.pm        2015-09-15 
18:55:10.000000000 +0200
@@ -3,8 +3,8 @@
 
 use Mojo::Cookie::Request;
 use Mojo::Path;
+use Mojo::Util 'deprecated';
 
-has collecting => 1;
 has 'ignore';
 has max_cookie_size => 4096;
 
@@ -40,7 +40,8 @@
 sub collect {
   my ($self, $tx) = @_;
 
-  return unless $self->collecting;
+  # DEPRECATED in Clinking Beer Mugs!
+  return unless $self->{collecting} // 1;
 
   my $url = $tx->req->url;
   for my $cookie (@{$tx->res->cookies}) {
@@ -59,6 +60,16 @@
   }
 }
 
+# DEPRECATED in Clinking Beer Mugs!
+sub collecting {
+  deprecated 'Mojo::UserAgent::CookieJar::collecting is DEPRECATED in favor of'
+    . ' Mojo::UserAgent::CookieJar::ignore';
+  my $self = shift;
+  return $self->{collecting} //= 1 unless @_;
+  $self->{collecting} = shift;
+  return $self;
+}
+
 sub empty { delete shift->{jar} }
 
 sub find {
@@ -147,24 +158,21 @@
 
 L<Mojo::UserAgent::CookieJar> implements the following attributes.
 
-=head2 collecting
-
-  my $bool = $jar->collecting;
-  $jar     = $jar->collecting($bool);
-
-Allow L</"collect"> to L</"add"> new cookies to the jar, defaults to a true
-value.
-
 =head2 ignore
 
   my $ignore = $jar->ignore;
   $jar       = $jar->ignore(sub {...});
 
-A callback used to decide if a cookie should be ignored.
+A callback used to decide if a cookie should be ignored by L</"collect">.
+
+  # Ignore all cookies
+  $jar->ignore(sub { 1 });
 
+  # Ignore cookies with domain "com"
   $jar->ignore(sub {
     my $cookie = shift;
-    return $cookie->domain =~ /^\.?com$/;
+    return undef unless my $domain = $cookie->domain;
+    return $domain eq 'com';
   });
 
 =head2 max_cookie_size
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/lib/Mojo/UserAgent.pm 
new/Mojolicious-6.20/lib/Mojo/UserAgent.pm
--- old/Mojolicious-6.19/lib/Mojo/UserAgent.pm  2015-09-10 15:37:51.000000000 
+0200
+++ new/Mojolicious-6.20/lib/Mojo/UserAgent.pm  2015-09-15 18:45:39.000000000 
+0200
@@ -510,8 +510,8 @@
 Cookie jar to use for requests performed by this user agent, defaults to a
 L<Mojo::UserAgent::CookieJar> object.
 
-  # Disable collecting cookies from responses
-  $ua->cookie_jar->collecting(0);
+  # Ignore all cookies
+  $ua->cookie_jar->ignore(sub { 1 });
 
   # Ignore cookies for public suffixes
   my $ps = IO::Socket::SSL::PublicSuffix->default;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/lib/Mojolicious.pm 
new/Mojolicious-6.20/lib/Mojolicious.pm
--- old/Mojolicious-6.19/lib/Mojolicious.pm     2015-09-02 19:26:12.000000000 
+0200
+++ new/Mojolicious-6.20/lib/Mojolicious.pm     2015-09-13 01:36:47.000000000 
+0200
@@ -43,7 +43,7 @@
 has validator => sub { Mojolicious::Validator->new };
 
 our $CODENAME = 'Clinking Beer Mugs';
-our $VERSION  = '6.19';
+our $VERSION  = '6.20';
 
 sub AUTOLOAD {
   my $self = shift;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/t/mojolicious/group_lite_app.t 
new/Mojolicious-6.20/t/mojolicious/group_lite_app.t
--- old/Mojolicious-6.19/t/mojolicious/group_lite_app.t 2015-08-29 
01:31:40.000000000 +0200
+++ new/Mojolicious-6.20/t/mojolicious/group_lite_app.t 2015-09-15 
18:57:10.000000000 +0200
@@ -282,14 +282,14 @@
   ->status_is(200)->content_is("stash too!!!!!!!!\n");
 
 # Not collecting cookies
-$t->reset_session->ua->cookie_jar->collecting(0);
+$t->reset_session->ua->cookie_jar->ignore(sub {1});
 $t->get_ok('/bridge2stash' => {'X-Flash' => 1})->status_is(200)
   ->content_is("stash too!!!!!!!!\n");
 
 # Still not collecting cookies
 $t->get_ok('/bridge2stash' => {'X-Flash' => 1})->status_is(200)
   ->content_is("stash too!!!!!!!!\n");
-$t->ua->cookie_jar->collecting(1);
+$t->ua->cookie_jar->ignore(sub {0});
 
 # Fresh start without cookies, session or flash
 $t->get_ok('/bridge2stash' => {'X-Flash' => 1})->status_is(200)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-6.19/t/pod_coverage.t 
new/Mojolicious-6.20/t/pod_coverage.t
--- old/Mojolicious-6.19/t/pod_coverage.t       2015-08-29 01:31:52.000000000 
+0200
+++ new/Mojolicious-6.20/t/pod_coverage.t       2015-09-15 18:51:48.000000000 
+0200
@@ -7,4 +7,4 @@
 plan skip_all => 'Test::Pod::Coverage 1.04+ required for this test!'
   unless eval 'use Test::Pod::Coverage 1.04; 1';
 
-all_pod_coverage_ok();
+all_pod_coverage_ok({also_private => ['collecting']});


Reply via email to