Hello community,

here is the log from the commit of package perl-Mojolicious for 
openSUSE:Factory checked in at 2018-04-26 13:38:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious"

Thu Apr 26 13:38:26 2018 rev:95 rq:600834 version:7.76

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Mojolicious/perl-Mojolicious.changes        
2018-04-19 15:28:49.072701989 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Mojolicious.new/perl-Mojolicious.changes   
2018-04-26 13:38:27.971123951 +0200
@@ -1,0 +2,13 @@
+Wed Apr 25 05:33:36 UTC 2018 - [email protected]
+
+- updated to 7.76
+   see /usr/share/doc/packages/perl-Mojolicious/Changes
+
+  7.76  2018-04-23
+    - Due to lack of domain experts on the team, Windows is no longer 
officially
+      supported. Moving foward, we will try to keep Mojolicious installable on
+      Windows, but cannot make any promises regarding security and/or 
reliability.
+    - Fixed a bug in Mojolicious::Plugin::Config where the config stash value 
was
+      not available when the config_override feature was used. (tim)
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-7.75.tar.gz

New:
----
  Mojolicious-7.76.tar.gz

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

Other differences:
------------------
++++++ perl-Mojolicious.spec ++++++
--- /var/tmp/diff_new_pack.CT47wz/_old  2018-04-26 13:38:28.559102400 +0200
+++ /var/tmp/diff_new_pack.CT47wz/_new  2018-04-26 13:38:28.563102253 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojolicious
-Version:        7.75
+Version:        7.76
 Release:        0
 %define cpan_name Mojolicious
 Summary:        Real-time web framework

++++++ Mojolicious-7.75.tar.gz -> Mojolicious-7.76.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/Changes new/Mojolicious-7.76/Changes
--- old/Mojolicious-7.75/Changes        2018-04-09 17:27:43.000000000 +0200
+++ new/Mojolicious-7.76/Changes        2018-04-23 22:35:18.000000000 +0200
@@ -1,4 +1,11 @@
 
+7.76  2018-04-23
+  - Due to lack of domain experts on the team, Windows is no longer officially
+    supported. Moving foward, we will try to keep Mojolicious installable on
+    Windows, but cannot make any promises regarding security and/or 
reliability.
+  - Fixed a bug in Mojolicious::Plugin::Config where the config stash value was
+    not available when the config_override feature was used. (tim)
+
 7.75  2018-04-09
   - Deprecated placeholder quoting with "(placeholder)" in favor of
     "<placeholder>".
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/META.json 
new/Mojolicious-7.76/META.json
--- old/Mojolicious-7.75/META.json      2018-04-10 18:03:30.000000000 +0200
+++ new/Mojolicious-7.76/META.json      2018-04-24 18:54:58.000000000 +0200
@@ -58,6 +58,6 @@
       },
       "x_IRC" : "irc://irc.perl.org/#mojo"
    },
-   "version" : "7.75",
+   "version" : "7.76",
    "x_serialization_backend" : "JSON::PP version 2.97001"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/META.yml 
new/Mojolicious-7.76/META.yml
--- old/Mojolicious-7.75/META.yml       2018-04-10 18:03:30.000000000 +0200
+++ new/Mojolicious-7.76/META.yml       2018-04-24 18:54:58.000000000 +0200
@@ -31,5 +31,5 @@
   homepage: http://mojolicious.org
   license: http://www.opensource.org/licenses/artistic-license-2.0
   repository: https://github.com/kraih/mojo.git
-version: '7.75'
+version: '7.76'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/lib/Mojolicious/Guides/Cookbook.pod 
new/Mojolicious-7.76/lib/Mojolicious/Guides/Cookbook.pod
--- old/Mojolicious-7.75/lib/Mojolicious/Guides/Cookbook.pod    2018-03-15 
20:11:17.000000000 +0100
+++ new/Mojolicious-7.76/lib/Mojolicious/Guides/Cookbook.pod    2018-04-18 
17:37:23.000000000 +0200
@@ -619,8 +619,8 @@
 
   app->start;
 
-To create promises maually you just wrap your continuation-passing style APIs 
in
-functions that return promises. Here's an example for how
+To create promises manually you just wrap your continuation-passing style APIs
+in functions that return promises. Here's an example for how
 L<Mojo::UserAgent/"get_p"> works internally.
 
   use Mojo::UserAgent;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/lib/Mojolicious/Guides/FAQ.pod 
new/Mojolicious-7.76/lib/Mojolicious/Guides/FAQ.pod
--- old/Mojolicious-7.75/lib/Mojolicious/Guides/FAQ.pod 2017-11-06 
18:19:39.000000000 +0100
+++ new/Mojolicious-7.76/lib/Mojolicious/Guides/FAQ.pod 2018-04-23 
22:32:56.000000000 +0200
@@ -81,9 +81,11 @@
 
 =head2 How well is Windows supported by Mojolicious?
 
-Windows is fully supported by L<Mojolicious>, some of the more advanced
-features, such as L<subprocesses|Mojo::IOLoop/"subprocess"> and the
-L<Hypnotoad|Mojo::Server::Hypnotoad> web server, will however require the use 
of
+Windows is not officially supported by L<Mojolicious>, even though we try to
+keep the distribution installable. There may be serious security and/or
+reliability issues. Some of the more advanced features, such as
+L<subprocesses|Mojo::IOLoop/"subprocess"> and the
+L<Hypnotoad|Mojo::Server::Hypnotoad> web server, will also require the use of
 the L<Windows Subsystem for Linux|https://msdn.microsoft.com/commandline/wsl/>.
 
 =head2 Do I need to clean my environment before testing Mojolicious?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/lib/Mojolicious/Plugin/Config.pm 
new/Mojolicious-7.76/lib/Mojolicious/Plugin/Config.pm
--- old/Mojolicious-7.75/lib/Mojolicious/Plugin/Config.pm       2018-03-15 
20:12:18.000000000 +0100
+++ new/Mojolicious-7.76/lib/Mojolicious/Plugin/Config.pm       2018-04-20 
13:19:35.000000000 +0200
@@ -23,6 +23,7 @@
   my ($self, $app, $conf) = @_;
 
   # Override
+  $app->defaults(config => $app->config);
   return $app->config if $app->config->{config_override};
 
   # Config file
@@ -49,7 +50,7 @@
   # Merge everything
   $config = {%$config, %{$self->load($mode, $conf, $app)}} if $mode;
   $config = {%{$conf->{default}}, %$config} if $conf->{default};
-  return $app->defaults(config => $app->config)->config($config)->config;
+  return $app->config($config)->config;
 }
 
 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/lib/Mojolicious/Validator.pm 
new/Mojolicious-7.76/lib/Mojolicious/Validator.pm
--- old/Mojolicious-7.75/lib/Mojolicious/Validator.pm   2018-04-04 
23:35:30.000000000 +0200
+++ new/Mojolicious-7.76/lib/Mojolicious/Validator.pm   2018-04-18 
17:38:17.000000000 +0200
@@ -38,7 +38,7 @@
 sub _num {
   my ($v, $name, $value, $min, $max) = @_;
   return 1 if $value !~ /^[0-9]+$/;
-  return defined $min && $max ? $min > $value || $max < $value : undef;
+  return defined $min && $min > $value || defined $max && $max < $value;
 }
 
 sub _size {
@@ -97,6 +97,8 @@
 
   $v = $v->num;
   $v = $v->num(2, 5);
+  $v = $v->num(2, undef);
+  $v = $v->num(undef, 5);
 
 String value needs to be a non-fractional number and if provided in the given
 range.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/lib/Mojolicious.pm 
new/Mojolicious-7.76/lib/Mojolicious.pm
--- old/Mojolicious-7.75/lib/Mojolicious.pm     2018-04-08 00:15:39.000000000 
+0200
+++ new/Mojolicious-7.76/lib/Mojolicious.pm     2018-04-21 18:25:19.000000000 
+0200
@@ -65,7 +65,7 @@
 has validator => sub { Mojolicious::Validator->new };
 
 our $CODENAME = 'Doughnut';
-our $VERSION  = '7.75';
+our $VERSION  = '7.76';
 
 sub AUTOLOAD {
   my $self = shift;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/t/mojo/user_agent_online.t 
new/Mojolicious-7.76/t/mojo/user_agent_online.t
--- old/Mojolicious-7.75/t/mojo/user_agent_online.t     2018-02-19 
00:43:02.000000000 +0100
+++ new/Mojolicious-7.76/t/mojo/user_agent_online.t     2018-04-18 
17:40:18.000000000 +0200
@@ -152,15 +152,11 @@
 like $res->body, qr/Mojolicious/, 'right content';
 is $res->code,   200,             'right status';
 
-# Simple requests
+# Simple request
 $tx = $ua->get('metacpan.org');
 is $tx->req->method, 'GET',                 'right method';
 is $tx->req->url,    'http://metacpan.org', 'right url';
 is $tx->res->code,   301,                   'right status';
-$tx = $ua->get('http://google.com');
-is $tx->req->method, 'GET',               'right method';
-is $tx->req->url,    'http://google.com', 'right url';
-is $tx->res->code,   302,                 'right status';
 
 # Simple keep-alive requests
 $tx = $ua->get('https://www.wikipedia.org');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/t/mojolicious/external/lib/MyApp.pm 
new/Mojolicious-7.76/t/mojolicious/external/lib/MyApp.pm
--- old/Mojolicious-7.75/t/mojolicious/external/lib/MyApp.pm    2018-02-19 
00:44:23.000000000 +0100
+++ new/Mojolicious-7.76/t/mojolicious/external/lib/MyApp.pm    2018-04-20 
13:16:13.000000000 +0200
@@ -27,6 +27,13 @@
       $self->render(text => ++$self->session->{secondary});
     }
   );
+
+  $r->get(
+    '/inline' => sub {
+      my $self = shift;
+      $self->render(inline => '<%= $config->{whatever} =%>');
+    }
+  );
 }
 
 1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/t/mojolicious/external_app.t 
new/Mojolicious-7.76/t/mojolicious/external_app.t
--- old/Mojolicious-7.75/t/mojolicious/external_app.t   2018-02-19 
00:43:11.000000000 +0100
+++ new/Mojolicious-7.76/t/mojolicious/external_app.t   2018-04-20 
13:15:57.000000000 +0200
@@ -38,4 +38,7 @@
 # More text from config override
 $t->get_ok('/test')->status_is(200)->content_is('override!');
 
+# Config stash value from template
+$t->get_ok('/inline')->status_is(200)->content_is('override!');
+
 done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-7.75/t/mojolicious/validation_lite_app.t 
new/Mojolicious-7.76/t/mojolicious/validation_lite_app.t
--- old/Mojolicious-7.75/t/mojolicious/validation_lite_app.t    2018-04-04 
02:21:06.000000000 +0200
+++ new/Mojolicious-7.76/t/mojolicious/validation_lite_app.t    2018-04-18 
17:38:30.000000000 +0200
@@ -142,6 +142,22 @@
 ok !$v->required('foo')->num(24, 25)->is_valid, 'not valid';
 ok $v->has_error, 'has error';
 is_deeply $v->error('foo'), [qw(num 1 24 25)], 'right error';
+$v = $t->app->validation->input({foo => 23});
+ok $v->required('foo')->num(22, undef)->is_valid, 'valid';
+$v = $t->app->validation->input({foo => 23});
+ok $v->required('foo')->num(23, undef)->is_valid, 'valid';
+$v = $t->app->validation->input({foo => 23});
+ok !$v->required('foo')->num(24, undef)->is_valid, 'not valid';
+ok $v->has_error, 'has error';
+is_deeply $v->error('foo'), ['num', 1, 24, undef], 'right error';
+$v = $t->app->validation->input({foo => 23});
+ok $v->required('foo')->num(undef, 24)->is_valid, 'valid';
+$v = $t->app->validation->input({foo => 23});
+ok $v->required('foo')->num(undef, 23)->is_valid, 'valid';
+$v = $t->app->validation->input({foo => 23});
+ok !$v->required('foo')->num(undef, 22)->is_valid, 'not valid';
+ok $v->has_error, 'has error';
+is_deeply $v->error('foo'), ['num', 1, undef, 22], 'right error';
 
 # Size
 $v = $t->app->validation->input({foo => 'bar', baz => 'yada', yada => 'yada'});


Reply via email to