Hello community,
here is the log from the commit of package perl-App-Dochazka-REST for
openSUSE:Factory checked in at 2016-11-15 17:58:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-App-Dochazka-REST (Old)
and /work/SRC/openSUSE:Factory/.perl-App-Dochazka-REST.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-App-Dochazka-REST"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-App-Dochazka-REST/perl-App-Dochazka-REST.changes
2016-10-25 17:44:34.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-App-Dochazka-REST.new/perl-App-Dochazka-REST.changes
2016-11-15 17:58:51.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Nov 1 14:47:01 UTC 2016 - [email protected]
+
+- updated to 0.548
+ see /usr/share/doc/packages/perl-App-Dochazka-REST/Changes
+
+-------------------------------------------------------------------
Old:
----
App-Dochazka-REST-0.547.tar.gz
New:
----
App-Dochazka-REST-0.548.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-App-Dochazka-REST.spec ++++++
--- /var/tmp/diff_new_pack.kM4M9m/_old 2016-11-15 17:58:52.000000000 +0100
+++ /var/tmp/diff_new_pack.kM4M9m/_new 2016-11-15 17:58:52.000000000 +0100
@@ -17,14 +17,14 @@
Name: perl-App-Dochazka-REST
-Version: 0.547
+Version: 0.548
Release: 0
%define cpan_name App-Dochazka-REST
Summary: Dochazka REST server
License: BSD-3-Clause
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-Dochazka-REST/
-Source0: App-Dochazka-REST-0.547.tar.gz
+Source0: App-Dochazka-REST-0.548.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ App-Dochazka-REST-0.547.tar.gz -> App-Dochazka-REST-0.548.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-Dochazka-REST-0.547/Changes
new/App-Dochazka-REST-0.548/Changes
--- old/App-Dochazka-REST-0.547/Changes 2016-09-26 14:00:11.000000000 +0200
+++ new/App-Dochazka-REST-0.548/Changes 2016-11-01 15:46:49.000000000 +0100
@@ -3681,3 +3681,8 @@
- model: stricter match for system users in ldap_sync()
- dispatch: improve error messages generated by LDAP handlers
+0.548 2016-11-01 15:43 CET
+- build/ops: move project back to Application:Dochazka (in OBS)
+- Dispatch.pm: fix session resource
+- Implement new "session/terminate" resource
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-Dochazka-REST-0.547/META.json
new/App-Dochazka-REST-0.548/META.json
--- old/App-Dochazka-REST-0.547/META.json 2016-09-26 14:00:11.000000000
+0200
+++ new/App-Dochazka-REST-0.548/META.json 2016-11-01 15:46:49.000000000
+0100
@@ -75,7 +75,7 @@
"provides" : {
"App::Dochazka::REST" : {
"file" : "lib/App/Dochazka/REST.pm",
- "version" : "0.547"
+ "version" : "0.548"
},
"App::Dochazka::REST::ACL" : {
"file" : "lib/App/Dochazka/REST/ACL.pm"
@@ -168,6 +168,6 @@
"url" : "https://github.com/smithfarm/dochazka-rest"
}
},
- "version" : "0.547",
+ "version" : "0.548",
"x_serialization_backend" : "JSON::PP version 2.27203"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-Dochazka-REST-0.547/META.yml
new/App-Dochazka-REST-0.548/META.yml
--- old/App-Dochazka-REST-0.547/META.yml 2016-09-26 14:00:11.000000000
+0200
+++ new/App-Dochazka-REST-0.548/META.yml 2016-11-01 15:46:49.000000000
+0100
@@ -34,7 +34,7 @@
provides:
App::Dochazka::REST:
file: lib/App/Dochazka/REST.pm
- version: '0.547'
+ version: '0.548'
App::Dochazka::REST::ACL:
file: lib/App/Dochazka/REST/ACL.pm
App::Dochazka::REST::Auth:
@@ -115,5 +115,5 @@
bugtracker: https://github.com/smithfarm/dochazka-rest/issues
license: http://opensource.org/licenses/bsd-license.php
repository: https://github.com/smithfarm/dochazka-rest
-version: '0.547'
+version: '0.548'
x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST/Dispatch.pm
new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST/Dispatch.pm
--- old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST/Dispatch.pm
2016-09-26 14:00:11.000000000 +0200
+++ new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST/Dispatch.pm
2016-11-01 15:46:49.000000000 +0100
@@ -504,7 +504,7 @@
}
-=head2
+=head3
Handler for the C<session> resource.
@@ -518,13 +518,32 @@
return 1 if $pass == 1;
# second pass
+ my $session = $self->request->{'env'}->{'psgix.session'};
return $CELL->status_ok( 'DISPATCH_SESSION_DATA', payload => {
- session_id => $self->context->{'session_id'},
- session => $self->context->{'session'},
+ session => $session,
} );
}
+=head3
+
+Handler for the C<session/terminate> resource.
+
+=cut
+
+sub handler_session_terminate {
+ my ( $self, $pass ) = @_;
+ $log->debug( "Entering " . __PACKAGE__ . "::handler_session_terminate" );
+
+ # first pass
+ return 1 if $pass == 1;
+
+ # second pass
+ $self->request->{'env'}->{'psgix.session'} = {};
+ return $CELL->status_ok;
+}
+
+
=head3 handler_version
Handler for the C<version> resource.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST/ResourceDefs.pm
new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST/ResourceDefs.pm
--- old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST/ResourceDefs.pm
2016-09-26 14:00:11.000000000 +0200
+++ new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST/ResourceDefs.pm
2016-11-01 15:46:49.000000000 +0100
@@ -352,6 +352,23 @@
EOH
},
+ # session/terminate
+ 'session/terminate' =>
+ {
+ parent => '/session',
+ handler => {
+ POST => 'handler_session_terminate',
+ },
+ acl_profile => 'passerby',
+ cli => 'session terminate',
+ description => 'Terminate the current session',
+ documentation => <<'EOH',
+=pod
+
+Terminates the current session
+EOH
+ },
+
# version
'version' =>
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST.pm
new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST.pm
--- old/App-Dochazka-REST-0.547/lib/App/Dochazka/REST.pm 2016-09-26
14:00:11.000000000 +0200
+++ new/App-Dochazka-REST-0.548/lib/App/Dochazka/REST.pm 2016-11-01
15:46:49.000000000 +0100
@@ -59,11 +59,11 @@
=head1 VERSION
-Version 0.547
+Version 0.548
=cut
-our $VERSION = '0.547';
+our $VERSION = '0.548';
=head2 Development status