Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-Status for 
openSUSE:Factory checked in at 2020-06-17 14:49:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-Status (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-Status.new.3606 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious-Plugin-Status"

Wed Jun 17 14:49:53 2020 rev:9 rq:815253 version:1.12

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-Status/perl-Mojolicious-Plugin-Status.changes
    2020-06-03 20:33:26.373345083 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-Status.new.3606/perl-Mojolicious-Plugin-Status.changes
  2020-06-17 14:50:08.944942507 +0200
@@ -1,0 +2,9 @@
+Sat Jun 13 03:12:30 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 1.12
+   see /usr/share/doc/packages/perl-Mojolicious-Plugin-Status/Changes
+
+  1.12  2020-06-01
+    - Updated project metadata.
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-Plugin-Status-1.11.tar.gz

New:
----
  Mojolicious-Plugin-Status-1.12.tar.gz

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-Status.spec ++++++
--- /var/tmp/diff_new_pack.q8cfyK/_old  2020-06-17 14:50:10.424947574 +0200
+++ /var/tmp/diff_new_pack.q8cfyK/_new  2020-06-17 14:50:10.424947574 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojolicious-Plugin-Status
-Version:        1.11
+Version:        1.12
 Release:        0
 %define cpan_name Mojolicious-Plugin-Status
 Summary:        Mojolicious server status

++++++ Mojolicious-Plugin-Status-1.11.tar.gz -> 
Mojolicious-Plugin-Status-1.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/Changes 
new/Mojolicious-Plugin-Status-1.12/Changes
--- old/Mojolicious-Plugin-Status-1.11/Changes  2020-05-31 14:24:56.000000000 
+0200
+++ new/Mojolicious-Plugin-Status-1.12/Changes  2020-06-03 16:09:47.000000000 
+0200
@@ -1,4 +1,7 @@
 
+1.12  2020-06-01
+  - Updated project metadata.
+
 1.11  2020-05-30
   - Improved .perltidyrc with more modern settings.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/META.json 
new/Mojolicious-Plugin-Status-1.12/META.json
--- old/Mojolicious-Plugin-Status-1.11/META.json        2020-05-31 
14:26:47.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.12/META.json        2020-06-12 
12:28:59.000000000 +0200
@@ -56,8 +56,11 @@
          "url" : "https://github.com/mojolicious/mojo-status.git";,
          "web" : "https://github.com/mojolicious/mojo-status";
       },
-      "x_IRC" : "irc://irc.freenode.net/#mojo"
+      "x_IRC" : {
+         "url" : "irc://irc.freenode.net/#mojo",
+         "web" : "https://webchat.freenode.net/#mojo";
+      }
    },
-   "version" : "1.11",
+   "version" : "1.12",
    "x_serialization_backend" : "JSON::PP version 4.04"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/META.yml 
new/Mojolicious-Plugin-Status-1.12/META.yml
--- old/Mojolicious-Plugin-Status-1.11/META.yml 2020-05-31 14:26:46.000000000 
+0200
+++ new/Mojolicious-Plugin-Status-1.12/META.yml 2020-06-12 12:28:59.000000000 
+0200
@@ -26,10 +26,12 @@
   Mojolicious: '8.50'
   perl: '5.016'
 resources:
-  IRC: irc://irc.freenode.net/#mojo
+  IRC:
+    url: irc://irc.freenode.net/#mojo
+    web: https://webchat.freenode.net/#mojo
   bugtracker: https://github.com/mojolicious/mojo-status/issues
   homepage: https://mojolicious.org
   license: http://www.opensource.org/licenses/artistic-license-2.0
   repository: https://github.com/mojolicious/mojo-status.git
-version: '1.11'
+version: '1.12'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/Makefile.PL 
new/Mojolicious-Plugin-Status-1.12/Makefile.PL
--- old/Mojolicious-Plugin-Status-1.11/Makefile.PL      2020-05-31 
14:25:42.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.12/Makefile.PL      2020-06-03 
16:09:37.000000000 +0200
@@ -26,7 +26,7 @@
         url  => 'https://github.com/mojolicious/mojo-status.git',
         web  => 'https://github.com/mojolicious/mojo-status',
       },
-      x_IRC => 'irc://irc.freenode.net/#mojo'
+      x_IRC => {url => 'irc://irc.freenode.net/#mojo', web => 
'https://webchat.freenode.net/#mojo'}
     },
   },
   PREREQ_PM => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-Status-1.11/lib/Mojo/MemoryMap/Writer.pm 
new/Mojolicious-Plugin-Status-1.12/lib/Mojo/MemoryMap/Writer.pm
--- old/Mojolicious-Plugin-Status-1.11/lib/Mojo/MemoryMap/Writer.pm     
2020-05-30 23:42:24.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.12/lib/Mojo/MemoryMap/Writer.pm     
2020-06-11 22:24:39.000000000 +0200
@@ -6,7 +6,7 @@
 
 my $JSON = Cpanel::JSON::XS->new->utf8;
 
-sub DESTROY { flock shift->{fh}, LOCK_UN }
+sub DESTROY { flock(shift->{fh}, LOCK_UN) or die "Couldn't flock: $!" }
 
 sub change {
   my ($self, $cb) = @_;
@@ -23,7 +23,7 @@
 
 sub new {
   my $self = shift->SUPER::new(@_);
-  flock $self->{fh}, LOCK_EX;
+  flock($self->{fh}, LOCK_EX) or die "Couldn't flock: $!";
   return $self;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-Status-1.11/lib/Mojolicious/Plugin/Status.pm 
new/Mojolicious-Plugin-Status-1.12/lib/Mojolicious/Plugin/Status.pm
--- old/Mojolicious-Plugin-Status-1.11/lib/Mojolicious/Plugin/Status.pm 
2020-05-30 23:43:24.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.12/lib/Mojolicious/Plugin/Status.pm 
2020-06-11 21:57:53.000000000 +0200
@@ -10,7 +10,7 @@
 
 use constant MACOS => $^O eq 'darwin';
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 sub register {
   my ($self, $app, $config) = @_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/t/map.t 
new/Mojolicious-Plugin-Status-1.12/t/map.t
--- old/Mojolicious-Plugin-Status-1.11/t/map.t  2020-05-30 23:42:13.000000000 
+0200
+++ new/Mojolicious-Plugin-Status-1.12/t/map.t  2020-05-31 15:42:15.000000000 
+0200
@@ -6,45 +6,49 @@
 use Mojo::MemoryMap;
 use Mojo::Promise;
 
-# Basics
-my $map = Mojo::MemoryMap->new;
-is_deeply $map->writer->fetch, {}, 'empty hash';
-ok $map->writer->store({foo => 123}), 'written';
-is_deeply $map->writer->fetch, {foo => 123}, 'data retained';
-ok $map->writer->change(sub { $_->{foo} += 1 }), 'written';
-is_deeply $map->writer->fetch, {foo => 124}, 'data modified';
-is $map->size, 52428800, 'right default size';
-ok $map->usage > 0, 'has usage';
-ok $map->usage < $map->size, 'size not exceeded';
+subtest 'Basics' => sub {
+  my $map = Mojo::MemoryMap->new;
+  is_deeply $map->writer->fetch, {}, 'empty hash';
+  ok $map->writer->store({foo => 123}), 'written';
+  is_deeply $map->writer->fetch, {foo => 123}, 'data retained';
+  ok $map->writer->change(sub { $_->{foo} += 1 }), 'written';
+  is_deeply $map->writer->fetch, {foo => 124}, 'data modified';
+  is $map->size, 52428800, 'right default size';
+  ok $map->usage > 0, 'has usage';
+  ok $map->usage < $map->size, 'size not exceeded';
+};
 
-# Small limit
-$map = Mojo::MemoryMap->new(256);
-ok $map->writer->store({foo => 'test'}), 'written';
-is_deeply $map->writer->fetch, {foo => 'test'}, 'data retained';
-ok !$map->writer->store({foo => join('', 1 .. 1000000)}), 'not written';
-is_deeply $map->writer->fetch, {foo => 'test'}, 'data unmodified';
-ok $map->writer->store({foo => 'works'}), 'written';
-is_deeply $map->writer->fetch, {foo => 'works'}, 'data retained';
-is $map->size, 256, 'right size';
+subtest 'Small limit' => sub {
+  my $map = Mojo::MemoryMap->new(256);
+  ok $map->writer->store({foo => 'test'}), 'written';
+  is_deeply $map->writer->fetch, {foo => 'test'}, 'data retained';
+  ok !$map->writer->store({foo => join('', 1 .. 1000000)}), 'not written';
+  is_deeply $map->writer->fetch, {foo => 'test'}, 'data unmodified';
+  ok $map->writer->store({foo => 'works'}), 'written';
+  is_deeply $map->writer->fetch, {foo => 'works'}, 'data retained';
+  is $map->size, 256, 'right size';
+};
 
-# Multiple processes
 SKIP: {
   skip 'Real fork is required!', 1 if $Config{d_pseudofork};
-  $map = Mojo::MemoryMap->new;
-  my $incr = sub {
-    my $promise = Mojo::Promise->new;
-    Mojo::IOLoop->subprocess(
-      sub {
-        my $writer = $map->writer;
-        sleep 1;
-        $writer->change(sub { $_->{counter}++ });
-      },
-      sub { $promise->resolve }
-    );
-    return $promise;
+
+  subtest 'Multiple processes' => sub {
+    my $map  = Mojo::MemoryMap->new;
+    my $incr = sub {
+      my $promise = Mojo::Promise->new;
+      Mojo::IOLoop->subprocess(
+        sub {
+          my $writer = $map->writer;
+          sleep 1;
+          $writer->change(sub { $_->{counter}++ });
+        },
+        sub { $promise->resolve }
+      );
+      return $promise;
+    };
+    Mojo::Promise->all($incr->(), $incr->(), $incr->())->wait;
+    is_deeply $map->writer->fetch, {counter => 3}, 'incremented three times';
   };
-  Mojo::Promise->all($incr->(), $incr->(), $incr->())->wait;
-  is_deeply $map->writer->fetch, {counter => 3}, 'incremented three times';
 }
 
 done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-1.11/t/status.t 
new/Mojolicious-Plugin-Status-1.12/t/status.t
--- old/Mojolicious-Plugin-Status-1.11/t/status.t       2020-05-30 
23:42:13.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.12/t/status.t       2020-05-31 
15:44:20.000000000 +0200
@@ -33,60 +33,68 @@
 
 my $t = Test::Mojo->new;
 
-# Basics
-$t->get_ok('/status.json')->status_is(200)->json_is('/processed', 0);
-$t->get_ok('/')->status_is(200)->content_is('Hello Mojo!');
-$t->get_ok('/status.json')->status_is(200)->json_is('/processed', 4);
-
-# Bundled static files
-$t->get_ok('/mojo-status/bootstrap/bootstrap.js')->status_is(200)->content_type_is('application/javascript');
-$t->get_ok('/mojo-status/bootstrap/bootstrap.css')->status_is(200)->content_type_is('text/css');
-$t->get_ok('/mojo-status/fontawesome/fontawesome.css')->status_is(200)->content_type_is('text/css');
-$t->get_ok('/mojo-status/webfonts/fa-brands-400.eot')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-brands-400.svg')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-brands-400.ttf')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-brands-400.woff')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-brands-400.woff2')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-regular-400.eot')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-regular-400.svg')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-regular-400.ttf')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-regular-400.woff')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-regular-400.woff2')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-solid-900.eot')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-solid-900.svg')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-solid-900.ttf')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-solid-900.woff')->status_is(200);
-$t->get_ok('/mojo-status/webfonts/fa-solid-900.woff2')->status_is(200);
-$t->get_ok('/mojo-status/app.css')->status_is(200)->content_type_is('text/css');
-$t->get_ok('/mojo-status/logo-black-2x.png')->status_is(200)->content_type_is('image/png');
-$t->get_ok('/mojo-status/logo-black.png')->status_is(200)->content_type_is('image/png');
-
-# JSON
-$t->get_ok('/status.json')->status_is(200)->json_is('/processed', 
48)->json_has('/started')
-  
->json_has("/workers/$$/connections")->json_has("/workers/$$/maxrss")->json_has("/workers/$$/processed")
-  
->json_has("/workers/$$/started")->json_has("/workers/$$/stime")->json_has("/workers/$$/utime")
-  
->json_has('/slowest/0')->json_has('/slowest/0/time')->json_has('/slowest/0/path')->json_has('/slowest/0/request_id')
-  ->json_has('/slowest/1')->json_has('/slowest/4')->json_hasnt('/slowest/5');
-
-# HTML
-$t->get_ok('/status')->element_exists_not('meta[http-equiv=refresh][content=5]')
-  ->text_like('a[href=/does_not_exist]' => qr/Back to Site/);
-
-# Reset
-$t->get_ok('/status.json')->status_is(200)->json_has('/slowest/2');
-$t->get_ok('/status?reset=1')->status_is(302);
-$t->get_ok('/status.json')->status_is(200)->json_hasnt('/slowest/2');
+subtest 'Basics' => sub {
+  $t->get_ok('/status.json')->status_is(200)->json_is('/processed', 0);
+  $t->get_ok('/')->status_is(200)->content_is('Hello Mojo!');
+  $t->get_ok('/status.json')->status_is(200)->json_is('/processed', 4);
+};
+
+subtest 'Bundled static files' => sub {
+  
$t->get_ok('/mojo-status/bootstrap/bootstrap.js')->status_is(200)->content_type_is('application/javascript');
+  
$t->get_ok('/mojo-status/bootstrap/bootstrap.css')->status_is(200)->content_type_is('text/css');
+  
$t->get_ok('/mojo-status/fontawesome/fontawesome.css')->status_is(200)->content_type_is('text/css');
+  $t->get_ok('/mojo-status/webfonts/fa-brands-400.eot')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-brands-400.svg')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-brands-400.ttf')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-brands-400.woff')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-brands-400.woff2')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-regular-400.eot')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-regular-400.svg')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-regular-400.ttf')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-regular-400.woff')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-regular-400.woff2')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-solid-900.eot')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-solid-900.svg')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-solid-900.ttf')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-solid-900.woff')->status_is(200);
+  $t->get_ok('/mojo-status/webfonts/fa-solid-900.woff2')->status_is(200);
+  
$t->get_ok('/mojo-status/app.css')->status_is(200)->content_type_is('text/css');
+  
$t->get_ok('/mojo-status/logo-black-2x.png')->status_is(200)->content_type_is('image/png');
+  
$t->get_ok('/mojo-status/logo-black.png')->status_is(200)->content_type_is('image/png');
+};
+
+subtest 'JSON' => sub {
+  $t->get_ok('/status.json')->status_is(200)->json_is('/processed', 
48)->json_has('/started')
+    
->json_has("/workers/$$/connections")->json_has("/workers/$$/maxrss")->json_has("/workers/$$/processed")
+    
->json_has("/workers/$$/started")->json_has("/workers/$$/stime")->json_has("/workers/$$/utime")
+    
->json_has('/slowest/0')->json_has('/slowest/0/time')->json_has('/slowest/0/path')
+    
->json_has('/slowest/0/request_id')->json_has('/slowest/1')->json_has('/slowest/4')->json_hasnt('/slowest/5');
+};
+
+subtest 'HTML' => sub {
+  
$t->get_ok('/status')->element_exists_not('meta[http-equiv=refresh][content=5]')
+    ->text_like('a[href=/does_not_exist]' => qr/Back to Site/);
+};
+
+subtest 'Reset' => sub {
+  $t->get_ok('/status.json')->status_is(200)->json_has('/slowest/2');
+  $t->get_ok('/status?reset=1')->status_is(302);
+  $t->get_ok('/status.json')->status_is(200)->json_hasnt('/slowest/2');
+};
 
-# Subprocess
 SKIP: {
   skip 'Subprocess does not work with fork emulation', 2 if 
$Config{d_pseudofork};
-  $t->get_ok('/subprocess')->status_is(200);
-  my $pid = $t->tx->res->text;
-  
$t->get_ok('/status.json')->status_is(200)->json_has('/started')->json_has("/workers/$$")
-    ->json_hasnt("/workers/$pid");
+
+  subtest 'Subprocess' => sub {
+    $t->get_ok('/subprocess')->status_is(200);
+    my $pid = $t->tx->res->text;
+    
$t->get_ok('/status.json')->status_is(200)->json_has('/started')->json_has("/workers/$$")
+      ->json_hasnt("/workers/$pid");
+  };
 }
 
-# Refresh
-$t->get_ok('/status?refresh=5')->element_exists('meta[http-equiv=refresh][content=5]');
+subtest 'Refresh' => sub {
+  
$t->get_ok('/status?refresh=5')->element_exists('meta[http-equiv=refresh][content=5]');
+};
 
 done_testing;


Reply via email to