Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-Status for 
openSUSE:Factory checked in at 2018-09-19 14:30:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-Status (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-Status.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious-Plugin-Status"

Wed Sep 19 14:30:13 2018 rev:2 rq:636375 version:1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-Status/perl-Mojolicious-Plugin-Status.changes
    2018-09-15 15:26:13.481384949 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-Status.new/perl-Mojolicious-Plugin-Status.changes
       2018-09-19 14:32:19.147345935 +0200
@@ -1,0 +2,9 @@
+Tue Sep 18 10:55:31 UTC 2018 - Stephan Kulow <[email protected]>
+
+- updated to 1.0
+   see /usr/share/doc/packages/perl-Mojolicious-Plugin-Status/Changes
+
+  1.0  2018-09-17
+    - Fixed a problem where subprocesses would show up in the worker list.
+
+-------------------------------------------------------------------

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

New:
----
  Mojolicious-Plugin-Status-1.0.tar.gz
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-Status.spec ++++++
--- /var/tmp/diff_new_pack.oGgkPZ/_old  2018-09-19 14:32:25.379341709 +0200
+++ /var/tmp/diff_new_pack.oGgkPZ/_new  2018-09-19 14:32:25.379341709 +0200
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           perl-Mojolicious-Plugin-Status
-Version:        0.03
+Version:        1.0
 Release:        0
 %define cpan_name Mojolicious-Plugin-Status
 Summary:        Mojolicious server status
@@ -25,6 +25,7 @@
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Mojolicious-Plugin-Status/
 Source0:        
https://cpan.metacpan.org/authors/id/S/SR/SRI/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl

++++++ Mojolicious-Plugin-Status-0.03.tar.gz -> 
Mojolicious-Plugin-Status-1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/Changes 
new/Mojolicious-Plugin-Status-1.0/Changes
--- old/Mojolicious-Plugin-Status-0.03/Changes  2018-07-23 18:29:18.000000000 
+0200
+++ new/Mojolicious-Plugin-Status-1.0/Changes   2018-09-18 11:41:13.000000000 
+0200
@@ -1,4 +1,9 @@
 
+1.0  2018-09-17
+  - Fixed a problem where subprocesses would show up in the worker list.
+
+0.04  2019-07-24
+
 0.03  2019-07-23
   - Fixed package metadata.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/META.json 
new/Mojolicious-Plugin-Status-1.0/META.json
--- old/Mojolicious-Plugin-Status-0.03/META.json        2018-07-23 
18:29:50.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/META.json 2018-09-18 11:44:08.000000000 
+0200
@@ -44,7 +44,7 @@
    "release_status" : "stable",
    "resources" : {
       "bugtracker" : {
-         "web" : "https://github.com/kraih/mojo-status/issues";
+         "web" : "https://github.com/mojolicious/mojo-status/issues";
       },
       "homepage" : "https://mojolicious.org";,
       "license" : [
@@ -52,11 +52,11 @@
       ],
       "repository" : {
          "type" : "git",
-         "url" : "https://github.com/kraih/mojo-status.git";,
-         "web" : "https://github.com/kraih/mojo-status";
+         "url" : "https://github.com/mojolicious/mojo-status.git";,
+         "web" : "https://github.com/mojolicious/mojo-status";
       },
-      "x_IRC" : "irc://irc.perl.org/#mojo"
+      "x_IRC" : "irc://irc.freenode.net/#mojo"
    },
-   "version" : "0.03",
+   "version" : "1.0",
    "x_serialization_backend" : "JSON::PP version 2.97001"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/META.yml 
new/Mojolicious-Plugin-Status-1.0/META.yml
--- old/Mojolicious-Plugin-Status-0.03/META.yml 2018-07-23 18:29:49.000000000 
+0200
+++ new/Mojolicious-Plugin-Status-1.0/META.yml  2018-09-18 11:44:08.000000000 
+0200
@@ -25,10 +25,10 @@
   Sereal: '0'
   perl: '5.010001'
 resources:
-  IRC: irc://irc.perl.org/#mojo
-  bugtracker: https://github.com/kraih/mojo-status/issues
+  IRC: irc://irc.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/kraih/mojo-status.git
-version: '0.03'
+  repository: https://github.com/mojolicious/mojo-status.git
+version: '1.0'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/Makefile.PL 
new/Mojolicious-Plugin-Status-1.0/Makefile.PL
--- old/Mojolicious-Plugin-Status-0.03/Makefile.PL      2018-07-22 
19:09:20.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/Makefile.PL       2018-09-18 
11:43:11.000000000 +0200
@@ -17,15 +17,16 @@
     no_index       => {directory => ['t']},
     prereqs        => {runtime => {requires => {perl => '5.010001'}}},
     resources      => {
-      bugtracker => {web => 'https://github.com/kraih/mojo-status/issues'},
+      bugtracker =>
+        {web => 'https://github.com/mojolicious/mojo-status/issues'},
       homepage   => 'https://mojolicious.org',
       license    => 
['http://www.opensource.org/licenses/artistic-license-2.0'],
       repository => {
         type => 'git',
-        url  => 'https://github.com/kraih/mojo-status.git',
-        web  => 'https://github.com/kraih/mojo-status',
+        url  => 'https://github.com/mojolicious/mojo-status.git',
+        web  => 'https://github.com/mojolicious/mojo-status',
       },
-      x_IRC => 'irc://irc.perl.org/#mojo'
+      x_IRC => 'irc://irc.freenode.net/#mojo'
     },
   },
   PREREQ_PM => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/README.md 
new/Mojolicious-Plugin-Status-1.0/README.md
--- old/Mojolicious-Plugin-Status-0.03/README.md        2018-07-13 
17:03:09.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/README.md 2018-09-11 22:49:06.000000000 
+0200
@@ -1,7 +1,7 @@
 
-# Mojolicious-Plugin-Status [![Build 
Status](https://travis-ci.com/kraih/mojo-status.svg?branch=master)](https://travis-ci.com/kraih/mojo-status)
+# Mojolicious-Plugin-Status [![Build 
Status](https://travis-ci.com/mojolicious/mojo-status.svg?branch=master)](https://travis-ci.com/mojolicious/mojo-status)
 
-![Screenshot](https://raw.github.com/kraih/mojo-status/master/examples/status.png?raw=true)
+![Screenshot](https://raw.github.com/mojolicious/mojo-status/master/examples/status.png?raw=true)
 
   A server status ui for the [Mojolicious](https://mojolicious.org) real-time
   web framework. Very useful for debugging.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/examples/mixed.pl 
new/Mojolicious-Plugin-Status-1.0/examples/mixed.pl
--- old/Mojolicious-Plugin-Status-0.03/examples/mixed.pl        2018-07-13 
02:36:13.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/examples/mixed.pl 2018-09-18 
10:54:42.000000000 +0200
@@ -17,6 +17,15 @@
   Mojo::IOLoop->timer($delay => sub { $c->redirect_to('dashboard') });
 };
 
+get '/subprocess' => sub {
+  my $c = shift;
+
+  $c->inactivity_timeout(3600);
+
+  Mojo::IOLoop->subprocess(sub { sleep 5 },
+    sub { $c->redirect_to('dashboard') });
+};
+
 get '/chat';
 
 websocket '/channel' => sub {
@@ -37,9 +46,10 @@
 __DATA__
 
 @@ dashboard.html.ep
-<%= link_to Chat  => 'chat' %>
-<%= link_to Slow  => 'slow' %>
-<%= link_to Status => 'mojo_status' %>
+<%= link_to Chat       => 'chat' %>
+<%= link_to Slow       => 'slow' %>
+<%= link_to Subprocess => 'subprocess' %>
+<%= link_to Status     => 'mojo_status' %>
 
 @@ chat.html.ep
 <form onsubmit="sendChat(this.children[0]); return false"><input></form>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-Status-0.03/lib/Mojolicious/Plugin/Status.pm 
new/Mojolicious-Plugin-Status-1.0/lib/Mojolicious/Plugin/Status.pm
--- old/Mojolicious-Plugin-Status-0.03/lib/Mojolicious/Plugin/Status.pm 
2018-07-23 17:11:06.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/lib/Mojolicious/Plugin/Status.pm  
2018-09-18 11:41:25.000000000 +0200
@@ -7,7 +7,7 @@
 use Mojo::File 'path';
 use Mojo::IOLoop;
 
-our $VERSION = '0.03';
+our $VERSION = '1.0';
 
 sub register {
   my ($self, $app, $config) = @_;
@@ -100,6 +100,7 @@
     finish => sub {
       my $tx = shift;
       $self->_guard->_change(sub {
+        return unless $_->{workers}{$$};
         $_->{workers}{$$}{connections}{$id}{request}{finished} = time;
         $_->{workers}{$$}{connections}{$id}{request}{status}   = 
$tx->res->code;
       });
@@ -150,11 +151,11 @@
   my $stream = Mojo::IOLoop->stream($id);
   $stream->on(
     close => sub {
-      $self->_guard->_change(sub { delete $_->{workers}{$$}{connections}{$id} }
+      $self->_guard->_change(
+        sub { delete $_->{workers}{$$}{connections}{$id} if $_->{workers}{$$} }
       );
     }
   );
-  $stream->on(transition => sub { $self->_stream($id) });
 }
 
 sub _table {
@@ -284,7 +285,7 @@
 
 <p>
   <img alt="Screenshot"
-    
src="https://raw.github.com/kraih/mojo-status/master/examples/status.png?raw=true";
+    
src="https://raw.github.com/mojolicious/mojo-status/master/examples/status.png?raw=true";
     width="600px">
 </p>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-Status-0.03/t/status.t 
new/Mojolicious-Plugin-Status-1.0/t/status.t
--- old/Mojolicious-Plugin-Status-0.03/t/status.t       2018-07-22 
18:33:16.000000000 +0200
+++ new/Mojolicious-Plugin-Status-1.0/t/status.t        2018-09-18 
11:40:25.000000000 +0200
@@ -1,7 +1,9 @@
 use Mojo::Base -strict;
 
 use Test::More;
+use Config;
 use Mojolicious::Lite;
+use Mojo::IOLoop;
 use Test::Mojo;
 
 my $route = any '/status';
@@ -14,6 +16,22 @@
   $c->render(text => 'Hello Mojo!');
 };
 
+get '/subprocess' => sub {
+  my $c = shift;
+
+  $c->inactivity_timeout(3600);
+
+  Mojo::IOLoop->subprocess(
+    sub {
+      return $$;
+    },
+    sub {
+      my ($subprocess, $err, $pid) = @_;
+      $c->render(text => $pid);
+    }
+  );
+};
+
 my $t = Test::Mojo->new;
 
 # Basics
@@ -61,6 +79,16 @@
   ->element_exists_not('meta[http-equiv=refresh][content=5]')
   ->text_like('a[href=/does_not_exist]' => qr/Back to Site/);
 
+# 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");
+}
+
 # Refresh
 $t->get_ok('/status?refresh=5')
   ->element_exists('meta[http-equiv=refresh][content=5]');

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to