Hello community, here is the log from the commit of package perl-Mojolicious for openSUSE:Factory checked in at 2015-11-17 14:22:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-11-15 12:48:09.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Mojolicious.new/perl-Mojolicious.changes 2015-11-17 14:22:52.000000000 +0100 @@ -1,0 +2,12 @@ +Sun Nov 15 09:53:48 UTC 2015 - co...@suse.com + +- updated to 6.31 + see /usr/share/doc/packages/perl-Mojolicious/Changes + + 6.31 2015-11-13 + - Improved documentation browser CSS. + - Fixed handling of invalid URLs in Mojo::UserAgent::CookieJar. + - Fixed a few small selector bugs in Mojo::DOM::CSS. + - Fixed a few small formatting bugs in Mojolicious::Plugin::PODRenderer. + +------------------------------------------------------------------- Old: ---- Mojolicious-6.30.tar.gz New: ---- Mojolicious-6.31.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Mojolicious.spec ++++++ --- /var/tmp/diff_new_pack.l6d5Zr/_old 2015-11-17 14:22:53.000000000 +0100 +++ /var/tmp/diff_new_pack.l6d5Zr/_new 2015-11-17 14:22:53.000000000 +0100 @@ -17,7 +17,7 @@ Name: perl-Mojolicious -Version: 6.30 +Version: 6.31 Release: 0 %define cpan_name Mojolicious Summary: Real-time web framework ++++++ Mojolicious-6.30.tar.gz -> Mojolicious-6.31.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/Changes new/Mojolicious-6.31/Changes --- old/Mojolicious-6.30/Changes 2015-11-11 13:52:40.000000000 +0100 +++ new/Mojolicious-6.31/Changes 2015-11-13 20:54:41.000000000 +0100 @@ -1,4 +1,10 @@ +6.31 2015-11-13 + - Improved documentation browser CSS. + - Fixed handling of invalid URLs in Mojo::UserAgent::CookieJar. + - Fixed a few small selector bugs in Mojo::DOM::CSS. + - Fixed a few small formatting bugs in Mojolicious::Plugin::PODRenderer. + 6.30 2015-11-11 - Fixed bug in Mojolicious::Renderer where layouts could not be used with template inheritance. (nic, sri) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/META.json new/Mojolicious-6.31/META.json --- old/Mojolicious-6.30/META.json 2015-11-12 03:58:23.000000000 +0100 +++ new/Mojolicious-6.31/META.json 2015-11-14 20:37:36.000000000 +0100 @@ -58,5 +58,5 @@ }, "x_IRC" : "irc://irc.perl.org/#mojo" }, - "version" : "6.30" + "version" : "6.31" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/META.yml new/Mojolicious-6.31/META.yml --- old/Mojolicious-6.30/META.yml 2015-11-12 03:58:22.000000000 +0100 +++ new/Mojolicious-6.31/META.yml 2015-11-14 20:37:35.000000000 +0100 @@ -31,4 +31,4 @@ homepage: http://mojolicio.us license: http://www.opensource.org/licenses/artistic-license-2.0 repository: https://github.com/kraih/mojo.git -version: '6.30' +version: '6.31' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojo/DOM/CSS.pm new/Mojolicious-6.31/lib/Mojo/DOM/CSS.pm --- old/Mojolicious-6.30/lib/Mojo/DOM/CSS.pm 2015-10-26 16:39:00.000000000 +0100 +++ new/Mojolicious-6.31/lib/Mojo/DOM/CSS.pm 2015-11-13 19:05:08.000000000 +0100 @@ -125,14 +125,13 @@ # "odd" return [2, 1] if $equation =~ /^\s*odd\s*$/i; - # Equation - my $num = [1, 1]; - return $num if $equation !~ /(?:(-?(?:\d+)?)?(n))?\s*\+?\s*(-?\s*\d+)?\s*$/i; - $num->[0] = defined($1) && $1 ne '' ? $1 : $2 ? 1 : 0; - $num->[0] = -1 if $num->[0] eq '-'; - $num->[1] = $3 // 0; - $num->[1] =~ s/\s+//g; - return $num; + # "4", "+4" or "-4" + return [0, $1] if $equation =~ /^\s*((?:\+|-)?\d+)\s*$/; + + # "n", "4n", "+4n", "-4n", "n+1" or "4n-1" + return [] + unless $equation =~ /^\s*((?:\+|-)?(?:\d+)?)?n\s*((?:\+|-)\s*\d+)?\s*$/i; + return [$1 eq '-' ? -1 : $1 eq '' ? 1 : $1, join('', split(' ', $2 // 0))]; } sub _match { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojo/DOM/HTML.pm new/Mojolicious-6.31/lib/Mojo/DOM/HTML.pm --- old/Mojolicious-6.30/lib/Mojo/DOM/HTML.pm 2015-11-10 17:04:07.000000000 +0100 +++ new/Mojolicious-6.31/lib/Mojo/DOM/HTML.pm 2015-11-12 22:53:07.000000000 +0100 @@ -304,8 +304,8 @@ my $bool = $html->xml; $html = $html->xml($bool); -Disable HTML semantics in parser and activate case-sensitivity, defaults to -auto detection based on processing instructions. +Disable HTML semantics in parser and activate case-sensitivity, defaults to auto +detection based on XML declarations. =head1 METHODS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojo/DOM.pm new/Mojolicious-6.31/lib/Mojo/DOM.pm --- old/Mojolicious-6.30/lib/Mojo/DOM.pm 2015-11-11 20:46:35.000000000 +0100 +++ new/Mojolicious-6.31/lib/Mojo/DOM.pm 2015-11-13 14:50:10.000000000 +0100 @@ -748,7 +748,7 @@ Parse HTML/XML fragment with L<Mojo::DOM::HTML>. # Parse XML - my $dom = Mojo::DOM->new->xml(1)->parse('<foo>I ♥ Mojolicious!<foo/>'); + my $dom = Mojo::DOM->new->xml(1)->parse('<foo>I ♥ Mojolicious!</foo>'); =head2 preceding @@ -1013,8 +1013,8 @@ my $bool = $dom->xml; $dom = $dom->xml($bool); -Disable HTML semantics in parser and activate case-sensitivity, defaults to -auto detection based on processing instructions. +Disable HTML semantics in parser and activate case-sensitivity, defaults to auto +detection based on XML declarations. =head1 OPERATORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojo/UserAgent/CookieJar.pm new/Mojolicious-6.31/lib/Mojo/UserAgent/CookieJar.pm --- old/Mojolicious-6.30/lib/Mojo/UserAgent/CookieJar.pm 2015-09-18 22:06:45.000000000 +0200 +++ new/Mojolicious-6.31/lib/Mojo/UserAgent/CookieJar.pm 2015-11-13 02:03:07.000000000 +0100 @@ -100,7 +100,7 @@ } # Remove another part - continue { $domain =~ s/^[^.]+\.?// } + continue { $domain =~ s/^[^.]*\.*// } return \@found; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojolicious/Plugin/EPRenderer.pm new/Mojolicious-6.31/lib/Mojolicious/Plugin/EPRenderer.pm --- old/Mojolicious-6.30/lib/Mojolicious/Plugin/EPRenderer.pm 2015-10-08 16:01:56.000000000 +0200 +++ new/Mojolicious-6.31/lib/Mojolicious/Plugin/EPRenderer.pm 2015-11-13 16:26:44.000000000 +0100 @@ -73,12 +73,12 @@ # Mojolicious $app->plugin('EPRenderer'); $app->plugin(EPRenderer => {name => 'foo'}); - $app->plugin(EPRenderer => {template => {line_start => '.'}}); + $app->plugin(EPRenderer => {name => 'bar', template => {line_start => '.'}}); # Mojolicious::Lite plugin 'EPRenderer'; plugin EPRenderer => {name => 'foo'}; - plugin EPRenderer => {template => {line_start => '.'}}; + plugin EPRenderer => {name => 'bar', template => {line_start => '.'}}; =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojolicious/resources/templates/mojo/perldoc.html.ep new/Mojolicious-6.31/lib/Mojolicious/resources/templates/mojo/perldoc.html.ep --- old/Mojolicious-6.30/lib/Mojolicious/resources/templates/mojo/perldoc.html.ep 2015-11-03 17:11:23.000000000 +0100 +++ new/Mojolicious-6.31/lib/Mojolicious/resources/templates/mojo/perldoc.html.ep 2015-11-13 20:53:38.000000000 +0100 @@ -23,7 +23,7 @@ dt { color: #2a2a2a; font-weight: bold; - margin-left: 1em; + margin-left: 0.9em; } :not(pre) > code { background-color: rgba(0, 0, 0, 0.04); @@ -31,13 +31,16 @@ font: 0.9em Consolas, Menlo, Monaco, Courier, monospace; padding: 0.3em; } - h1, h2, h3 { + h1 { font-size: 1.5em } + h2 { font-size: 1.3em } + h3 { font-size: 1.1em } + h4 { font-size: 0.9em } + h1, h2, h3, h4 { color: #2a2a2a; - font-size: 1.5em; margin: 0; position: relative; } - h1 a, h2 a, h3 a { text-decoration: none } + h1 a, h2 a, h3 a, h4 a { text-decoration: none } li > p { margin-bottom: 0; margin-top: 0; @@ -84,7 +87,8 @@ position: absolute; padding-right: 0.25em; } - h1:hover .permalink, h2:hover .permalink, h3:hover .permalink { + h1:hover .permalink, h2:hover .permalink, h3:hover .permalink, + h4:hover .permalink { display: block; } </style> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/lib/Mojolicious.pm new/Mojolicious-6.31/lib/Mojolicious.pm --- old/Mojolicious-6.30/lib/Mojolicious.pm 2015-11-11 17:43:47.000000000 +0100 +++ new/Mojolicious-6.31/lib/Mojolicious.pm 2015-11-12 03:58:57.000000000 +0100 @@ -43,7 +43,7 @@ has validator => sub { Mojolicious::Validator->new }; our $CODENAME = 'Clinking Beer Mugs'; -our $VERSION = '6.30'; +our $VERSION = '6.31'; sub AUTOLOAD { my $self = shift; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/t/mojo/cookiejar.t new/Mojolicious-6.31/t/mojo/cookiejar.t --- old/Mojolicious-6.30/t/mojo/cookiejar.t 2015-09-12 18:32:24.000000000 +0200 +++ new/Mojolicious-6.31/t/mojo/cookiejar.t 2015-11-13 02:03:26.000000000 +0100 @@ -255,6 +255,10 @@ $tx->req->url->parse('http://mojolicio.us/whatever'); $jar->prepare($tx); is $tx->req->cookie('foo'), undef, 'no cookie'; +$tx = Mojo::Transaction::HTTP->new; +$tx->req->url->parse('http://...many...dots...'); +$jar->prepare($tx); +is $tx->req->cookie('foo'), undef, 'no cookie'; # Gather and prepare cookies with same name (with and without domain) $jar = Mojo::UserAgent::CookieJar->new; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/t/mojo/dom.t new/Mojolicious-6.31/t/mojo/dom.t --- old/Mojolicious-6.30/t/mojo/dom.t 2015-10-30 15:41:09.000000000 +0100 +++ new/Mojolicious-6.31/t/mojo/dom.t 2015-11-13 19:04:12.000000000 +0100 @@ -1027,15 +1027,24 @@ $dom->find('li:Nth-Last-Child(3N)')->each(sub { push @li, shift->text }); is_deeply \@li, [qw(C F)], 'found every third li elements'; @li = (); -$dom->find('li:nth-child(3)')->each(sub { push @li, shift->text }); +$dom->find('li:nth-child( 3 )')->each(sub { push @li, shift->text }); is_deeply \@li, ['C'], 'found third li element'; @li = (); -$dom->find('li:nth-last-child(3)')->each(sub { push @li, shift->text }); +$dom->find('li:nth-last-child( +3 )')->each(sub { push @li, shift->text }); is_deeply \@li, ['F'], 'found third last li element'; @li = (); $dom->find('li:nth-child(1n+0)')->each(sub { push @li, shift->text }); is_deeply \@li, [qw(A B C D E F G)], 'found first three li elements'; @li = (); +$dom->find('li:nth-child(1n-0)')->each(sub { push @li, shift->text }); +is_deeply \@li, [qw(A B C D E F G)], 'found first three li elements'; +@li = (); +$dom->find('li:nth-child(n+0)')->each(sub { push @li, shift->text }); +is_deeply \@li, [qw(A B C D E F G)], 'found first three li elements'; +@li = (); +$dom->find('li:nth-child(n)')->each(sub { push @li, shift->text }); +is_deeply \@li, [qw(A B C D E F G)], 'found first three li elements'; +@li = (); $dom->find('li:nth-child(n+0)')->each(sub { push @li, shift->text }); is_deeply \@li, [qw(A B C D E F G)], 'found first three li elements'; @li = (); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Mojolicious-6.30/t/mojolicious/commands.t new/Mojolicious-6.31/t/mojolicious/commands.t --- old/Mojolicious-6.30/t/mojolicious/commands.t 2015-10-21 18:04:57.000000000 +0200 +++ new/Mojolicious-6.31/t/mojolicious/commands.t 2015-11-12 20:09:57.000000000 +0100 @@ -18,6 +18,8 @@ package Mojolicious::Command::my_test_command; use Mojo::Base 'Mojolicious::Command'; +has description => 'See, it works'; + package main; # Make sure @ARGV is not changed @@ -107,6 +109,7 @@ like $buffer, qr/Usage: APPLICATION COMMAND \[OPTIONS\].*daemon.*my_test_command.*version/s, 'right output'; +like $buffer, qr/See, it works/, 'description has been picked up'; unlike $buffer, qr/my_fake_test_command/, 'fake command has been ignored'; # help