Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Mojolicious for
openSUSE:Factory checked in at 2021-04-15 16:57:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious (Old)
and /work/SRC/openSUSE:Factory/.perl-Mojolicious.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mojolicious"
Thu Apr 15 16:57:35 2021 rev:158 rq:885353 version:9.17
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Mojolicious/perl-Mojolicious.changes
2021-04-14 10:11:50.429580961 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Mojolicious.new.12324/perl-Mojolicious.changes
2021-04-15 16:58:17.198756832 +0200
@@ -1,0 +2,9 @@
+Wed Apr 14 03:07:32 UTC 2021 - Tina M??ller <[email protected]>
+
+- updated to 9.17
+ see /usr/share/doc/packages/perl-Mojolicious/Changes
+
+ 9.17 2021-04-12
+ - Deprecated ?format=* parameter in favor of ?_format=* for content
negotiation in Mojolicious::Renderer.
+
+-------------------------------------------------------------------
Old:
----
Mojolicious-9.16.tar.gz
New:
----
Mojolicious-9.17.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Mojolicious.spec ++++++
--- /var/tmp/diff_new_pack.8yhaMn/_old 2021-04-15 16:58:17.734757680 +0200
+++ /var/tmp/diff_new_pack.8yhaMn/_new 2021-04-15 16:58:17.734757680 +0200
@@ -18,7 +18,7 @@
%define cpan_name Mojolicious
Name: perl-Mojolicious
-Version: 9.16
+Version: 9.17
Release: 0
Summary: Real-time web framework
License: Artistic-2.0
++++++ Mojolicious-9.16.tar.gz -> Mojolicious-9.17.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/Changes new/Mojolicious-9.17/Changes
--- old/Mojolicious-9.16/Changes 2021-04-08 22:25:13.000000000 +0200
+++ new/Mojolicious-9.17/Changes 2021-04-12 18:59:35.000000000 +0200
@@ -1,4 +1,7 @@
+9.17 2021-04-12
+ - Deprecated ?format=* parameter in favor of ?_format=* for content
negotiation in Mojolicious::Renderer.
+
9.16 2021-04-08
- Added support for format inheritance.
- Improved Mojo::Server::CGI with support for before_server_start hook.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/META.json
new/Mojolicious-9.17/META.json
--- old/Mojolicious-9.16/META.json 2021-04-09 13:29:58.000000000 +0200
+++ new/Mojolicious-9.17/META.json 2021-04-13 12:10:02.000000000 +0200
@@ -63,6 +63,6 @@
"web" : "https://webchat.freenode.net/#mojo"
}
},
- "version" : "9.16",
+ "version" : "9.17",
"x_serialization_backend" : "JSON::PP version 4.06"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/META.yml
new/Mojolicious-9.17/META.yml
--- old/Mojolicious-9.16/META.yml 2021-04-09 13:29:58.000000000 +0200
+++ new/Mojolicious-9.17/META.yml 2021-04-13 12:10:02.000000000 +0200
@@ -34,5 +34,5 @@
homepage: https://mojolicious.org
license: http://www.opensource.org/licenses/artistic-license-2.0
repository: https://github.com/mojolicious/mojo.git
-version: '9.16'
+version: '9.17'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-9.16/lib/Mojolicious/Guides/Rendering.pod
new/Mojolicious-9.17/lib/Mojolicious/Guides/Rendering.pod
--- old/Mojolicious-9.16/lib/Mojolicious/Guides/Rendering.pod 2021-03-20
14:45:17.000000000 +0100
+++ new/Mojolicious-9.17/lib/Mojolicious/Guides/Rendering.pod 2021-04-12
18:37:11.000000000 +0200
@@ -341,14 +341,14 @@
# /hello (Accept: application/xml) -> "xml"
# /hello.json -> "json"
# /hello.xml -> "xml"
- # /hello?format=json -> "json"
- # /hello?format=xml -> "xml"
+ # /hello?_format=json -> "json"
+ # /hello?_format=xml -> "xml"
$c->respond_to(
json => {json => {hello => 'world'}},
xml => {text => '<hello>world</hello>'}
);
-The best possible representation will be automatically selected from the
C<format> C<GET>/C<POST> parameter, C<format>
+The best possible representation will be automatically selected from the
C<_format> C<GET>/C<POST> parameter, C<format>
stash value or C<Accept> request header and stored in the C<format> stash
value. To change MIME type mappings for the
C<Accept> request header or the C<Content-Type> response header you can use
L<Mojolicious/"types">.
@@ -368,9 +368,9 @@
# /hello.json -> "json"
# /hello.html -> "html"
# /hello.png -> "any"
- # /hello?format=json -> "json"
- # /hello?format=html -> "html"
- # /hello?format=png -> "any"
+ # /hello?_format=json -> "json"
+ # /hello?_format=html -> "html"
+ # /hello?_format=png -> "any"
$c->respond_to(
json => {json => {hello => 'world'}},
html => {template => 'hello', message => 'world'},
@@ -387,9 +387,9 @@
# /hello.html -> "html"
# /hello.xml -> "xml"
# /hello.txt -> undef
- # /hello?format=html -> "html"
- # /hello?format=xml -> "xml"
- # /hello?format=txt -> undef
+ # /hello?_format=html -> "html"
+ # /hello?_format=xml -> "xml"
+ # /hello?_format=txt -> undef
if (my $format = $c->accepts('html', 'xml')) {
...
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/lib/Mojolicious/Guides/Tutorial.pod
new/Mojolicious-9.17/lib/Mojolicious/Guides/Tutorial.pod
--- old/Mojolicious-9.16/lib/Mojolicious/Guides/Tutorial.pod 2021-03-20
02:40:47.000000000 +0100
+++ new/Mojolicious-9.17/lib/Mojolicious/Guides/Tutorial.pod 2021-04-12
18:37:27.000000000 +0200
@@ -614,8 +614,8 @@
# /hello (Accept: application/xml)
# /hello.json
# /hello.xml
- # /hello?format=json
- # /hello?format=xml
+ # /hello?_format=json
+ # /hello?_format=xml
get '/hello' => [format => ['json', 'xml']] => {format => undef} => sub ($c)
{
$c->respond_to(
json => {json => {hello => 'world'}},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/lib/Mojolicious/Renderer.pm
new/Mojolicious-9.17/lib/Mojolicious/Renderer.pm
--- old/Mojolicious-9.16/lib/Mojolicious/Renderer.pm 2021-03-19
23:07:25.000000000 +0100
+++ new/Mojolicious-9.17/lib/Mojolicious/Renderer.pm 2021-04-12
19:00:19.000000000 +0200
@@ -6,7 +6,7 @@
use Mojo::File qw(curfile path);
use Mojo::JSON qw(encode_json);
use Mojo::Loader qw(data_section);
-use Mojo::Util qw(decamelize encode gzip md5_sum monkey_patch);
+use Mojo::Util qw(decamelize deprecated encode gzip md5_sum monkey_patch);
has cache => sub { Mojo::Cache->new };
has classes => sub { ['main'] };
@@ -25,9 +25,13 @@
sub accepts {
my ($self, $c) = (shift, shift);
+ # DEPRECATED!
+ my $req = $c->req;
+ my $param = $req->param('format');
+ deprecated 'The ?format=* parameter is deprecated in favor of ?_format=* for
content negotiation' if defined $param;
+
# List representations
- my $req = $c->req;
- my $fmt = $req->param('format') || $c->stash->{format};
+ my $fmt = $param // $req->param('_format') || $c->stash->{format};
my @exts = $fmt ? ($fmt) : ();
push @exts, @{$c->app->types->detect($req->headers->accept)};
return \@exts unless @_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/lib/Mojolicious.pm
new/Mojolicious-9.17/lib/Mojolicious.pm
--- old/Mojolicious-9.16/lib/Mojolicious.pm 2021-04-06 18:55:28.000000000
+0200
+++ new/Mojolicious-9.17/lib/Mojolicious.pm 2021-04-09 13:30:42.000000000
+0200
@@ -56,7 +56,7 @@
has validator => sub { Mojolicious::Validator->new };
our $CODENAME = 'Waffle';
-our $VERSION = '9.16';
+our $VERSION = '9.17';
sub BUILD_DYNAMIC {
my ($class, $method, $dyn_methods) = @_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-9.16/t/mojolicious/restful_lite_app.t
new/Mojolicious-9.17/t/mojolicious/restful_lite_app.t
--- old/Mojolicious-9.16/t/mojolicious/restful_lite_app.t 2021-03-20
02:03:06.000000000 +0100
+++ new/Mojolicious-9.17/t/mojolicious/restful_lite_app.t 2021-04-12
18:42:40.000000000 +0200
@@ -74,7 +74,7 @@
};
subtest '"txt" query' => sub {
- $t->get_ok('/accepts?format=txt')->status_is(200)->json_is({best => 'txt'});
+ $t->get_ok('/accepts?_format=txt')->status_is(200)->json_is({best => 'txt'});
};
subtest 'Accept "txt"' => sub {
@@ -82,7 +82,7 @@
};
subtest 'Accept "txt" with everything' => sub {
- $t->get_ok('/accepts.json?format=txt' => {Accept =>
'text/html'})->status_is(200)->json_is({best => 'txt'});
+ $t->get_ok('/accepts.json?_format=txt' => {Accept =>
'text/html'})->status_is(200)->json_is({best => 'txt'});
};
subtest 'Nothing' => sub {
@@ -132,22 +132,22 @@
};
subtest '"html" query' => sub {
-
$t->get_ok('/rest?format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
+
$t->get_ok('/rest?_format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works');
};
subtest '"html" format with query' => sub {
-
$t->get_ok('/rest.html?format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
+
$t->get_ok('/rest.html?_format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works');
};
subtest 'Accept "html" with query' => sub {
- $t->get_ok('/rest?format=html' => {Accept => 'text/html'})->status_is(200)
+ $t->get_ok('/rest?_format=html' => {Accept => 'text/html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works');
};
subtest 'Accept "html" with everything' => sub {
- $t->get_ok('/rest.html?format=html' => {Accept =>
'text/html'})->status_is(200)
+ $t->get_ok('/rest.html?_format=html' => {Accept =>
'text/html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works');
};
@@ -177,22 +177,22 @@
};
subtest '"json" query' => sub {
-
$t->get_ok('/rest?format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
+
$t->get_ok('/rest?_format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
->json_is({just => 'works'});
};
subtest '"json" format with query' => sub {
-
$t->get_ok('/rest.json?format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
+
$t->get_ok('/rest.json?_format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
->json_is({just => 'works'});
};
subtest 'Accept "json" with query' => sub {
- $t->get_ok('/rest?format=json' => {Accept =>
'application/json'})->status_is(200)
+ $t->get_ok('/rest?_format=json' => {Accept =>
'application/json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works'});
};
subtest 'Accept "json" with everything' => sub {
- $t->get_ok('/rest.json?format=json' => {Accept =>
'application/json'})->status_is(200)
+ $t->get_ok('/rest.json?_format=json' => {Accept =>
'application/json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works'});
};
@@ -221,20 +221,20 @@
};
subtest '"xml" query' => sub {
-
$t->get_ok('/rest?format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works');
+
$t->get_ok('/rest?_format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works');
};
subtest '"xml" format with query' => sub {
-
$t->get_ok('/rest.xml?format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works');
+
$t->get_ok('/rest.xml?_format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works');
};
subtest 'Accept "json" with query' => sub {
- $t->get_ok('/rest?format=xml' => {Accept =>
'application/xml'})->status_is(200)->content_type_is('application/xml')
+ $t->get_ok('/rest?_format=xml' => {Accept =>
'application/xml'})->status_is(200)->content_type_is('application/xml')
->text_is(just => 'works');
};
subtest 'Accept "json" with everything' => sub {
- $t->get_ok('/rest.xml?format=xml' => {Accept =>
'application/xml'})->status_is(200)
+ $t->get_ok('/rest.xml?_format=xml' => {Accept =>
'application/xml'})->status_is(200)
->content_type_is('application/xml')->text_is(just => 'works');
};
@@ -272,42 +272,42 @@
};
subtest '"html" query' => sub {
-
$t->post_ok('/rest?format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
+
$t->post_ok('/rest?_format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works too');
};
subtest '"html" format with query' => sub {
-
$t->post_ok('/rest.html?format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
+
$t->post_ok('/rest.html?_format=html')->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works too');
};
subtest 'Accept html with query' => sub {
- $t->post_ok('/rest?format=html' => {Accept => 'text/html'})->status_is(200)
+ $t->post_ok('/rest?_format=html' => {Accept => 'text/html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works too');
};
subtest 'Accept "html" with everything' => sub {
- $t->post_ok('/rest.html?format=html' => {Accept =>
'text/html'})->status_is(200)
+ $t->post_ok('/rest.html?_format=html' => {Accept =>
'text/html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works too');
};
subtest '"html" form' => sub {
- $t->post_ok('/rest' => form => {format =>
'html'})->status_is(200)->content_type_is('text/html;charset=UTF-8')
+ $t->post_ok('/rest' => form => {_format =>
'html'})->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works too');
};
subtest '"html" format with form' => sub {
- $t->post_ok('/rest.html' => form => {format =>
'html'})->status_is(200)->content_type_is('text/html;charset=UTF-8')
+ $t->post_ok('/rest.html' => form => {_format =>
'html'})->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works too');
};
subtest 'Accept "html" with form' => sub {
- $t->post_ok('/rest' => {Accept => 'text/html'} => form => {format =>
'html'})->status_is(200)
+ $t->post_ok('/rest' => {Accept => 'text/html'} => form => {_format =>
'html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works too');
};
subtest 'Accept "html" with everything, form alternative' => sub {
- $t->post_ok('/rest.html' => {Accept => 'text/html'} => form => {format =>
'html'})->status_is(200)
+ $t->post_ok('/rest.html' => {Accept => 'text/html'} => form => {_format =>
'html'})->status_is(200)
->content_type_is('text/html;charset=UTF-8')->text_is('html > body',
'works too');
};
@@ -337,42 +337,42 @@
};
subtest '"json" query' => sub {
-
$t->post_ok('/rest?format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
+
$t->post_ok('/rest?_format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
->json_is({just => 'works too'});
};
subtest '"json" format with query' => sub {
-
$t->post_ok('/rest.json?format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
+
$t->post_ok('/rest.json?_format=json')->status_is(200)->content_type_is('application/json;charset=UTF-8')
->json_is({just => 'works too'});
};
subtest 'Accept "json" with query' => sub {
- $t->post_ok('/rest?format=json' => {Accept =>
'application/json'})->status_is(200)
+ $t->post_ok('/rest?_format=json' => {Accept =>
'application/json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
subtest 'Accept "json" with everything' => sub {
- $t->post_ok('/rest.json?format=json' => {Accept =>
'application/json'})->status_is(200)
+ $t->post_ok('/rest.json?_format=json' => {Accept =>
'application/json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
subtest '"json" form' => sub {
- $t->post_ok('/rest' => form => {format =>
'json'})->status_is(200)->content_type_is('application/json;charset=UTF-8')
- ->json_is({just => 'works too'});
+ $t->post_ok('/rest' => form => {_format => 'json'})->status_is(200)
+ ->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
subtest '"json" format with form' => sub {
- $t->post_ok('/rest.json' => form => {format => 'json'})->status_is(200)
+ $t->post_ok('/rest.json' => form => {_format => 'json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
subtest 'Accept "json" with form' => sub {
- $t->post_ok('/rest' => {Accept => 'application/json'} => form => {format =>
'json'})->status_is(200)
+ $t->post_ok('/rest' => {Accept => 'application/json'} => form => {_format =>
'json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
subtest 'Accept "json" with everything, form alternative' => sub {
- $t->post_ok('/rest.json' => {Accept => 'application/json'} => form =>
{format => 'json'})->status_is(200)
+ $t->post_ok('/rest.json' => {Accept => 'application/json'} => form =>
{_format => 'json'})->status_is(200)
->content_type_is('application/json;charset=UTF-8')->json_is({just =>
'works too'});
};
@@ -401,40 +401,41 @@
};
subtest '"xml" query' => sub {
-
$t->post_ok('/rest?format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works too');
+
$t->post_ok('/rest?_format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works too');
};
subtest '"xml" format with query' => sub {
-
$t->post_ok('/rest.xml?format=xml')->status_is(200)->content_type_is('application/xml')->text_is(just
=> 'works too');
+
$t->post_ok('/rest.xml?_format=xml')->status_is(200)->content_type_is('application/xml')
+ ->text_is(just => 'works too');
};
subtest 'Accept "json" with query' => sub {
- $t->post_ok('/rest?format=xml' => {Accept =>
'application/xml'})->status_is(200)->content_type_is('application/xml')
+ $t->post_ok('/rest?_format=xml' => {Accept =>
'application/xml'})->status_is(200)->content_type_is('application/xml')
->text_is(just => 'works too');
};
subtest 'Accept "json" with everything' => sub {
- $t->post_ok('/rest.xml?format=xml' => {Accept =>
'application/xml'})->status_is(200)
+ $t->post_ok('/rest.xml?_format=xml' => {Accept =>
'application/xml'})->status_is(200)
->content_type_is('application/xml')->text_is(just => 'works too');
};
subtest '"xml" form' => sub {
- $t->post_ok('/rest' => form => {format =>
'xml'})->status_is(200)->content_type_is('application/xml')
+ $t->post_ok('/rest' => form => {_format =>
'xml'})->status_is(200)->content_type_is('application/xml')
->text_is(just => 'works too');
};
subtest '"xml" format with form' => sub {
- $t->post_ok('/rest.xml' => form => {format =>
'xml'})->status_is(200)->content_type_is('application/xml')
+ $t->post_ok('/rest.xml' => form => {_format =>
'xml'})->status_is(200)->content_type_is('application/xml')
->text_is(just => 'works too');
};
subtest 'Accept "json" with form' => sub {
- $t->post_ok('/rest' => {Accept => 'application/xml'} => form => {format =>
'xml'})->status_is(200)
+ $t->post_ok('/rest' => {Accept => 'application/xml'} => form => {_format =>
'xml'})->status_is(200)
->content_type_is('application/xml')->text_is(just => 'works too');
};
subtest 'Accept "json" with everything, form alternative' => sub {
- $t->post_ok('/rest.xml' => {Accept => 'application/xml'} => form => {format
=> 'xml'})->status_is(200)
+ $t->post_ok('/rest.xml' => {Accept => 'application/xml'} => form => {_format
=> 'xml'})->status_is(200)
->content_type_is('application/xml')->text_is(just => 'works too');
};
@@ -444,7 +445,7 @@
};
subtest 'Unsupported everything' => sub {
- $t->post_ok('/rest.png?format=jpg' => {Accept =>
'image/whatever'})->status_is(201)
+ $t->post_ok('/rest.png?_format=jpg' => {Accept =>
'image/whatever'})->status_is(201)
->content_type_is('text/html;charset=UTF-8')->content_is('works too');
};
@@ -453,7 +454,7 @@
};
subtest 'Unsupported format and query' => sub {
-
$t->post_ok('/rest.png?format=png')->status_is(201)->content_type_is('text/html;charset=UTF-8')
+
$t->post_ok('/rest.png?_format=png')->status_is(201)->content_type_is('text/html;charset=UTF-8')
->content_is('works too');
};
@@ -475,7 +476,7 @@
subtest 'Chrome 11 with query' => sub {
my $chrome = 'text/html,application/xhtml+xml,application/xml;q=0.9' .
',image/webp,image/apng,*/*;q=0.8';
- $t->get_ok('/rest?format=html' => {Accept =>
$chrome})->status_is(200)->content_type_is('text/html;charset=UTF-8')
+ $t->get_ok('/rest?_format=html' => {Accept =>
$chrome})->status_is(200)->content_type_is('text/html;charset=UTF-8')
->text_is('html > body', 'works');
};