commit perl-App-Dochazka-Common for openSUSE:Factory
Hello community, here is the log from the commit of package perl-App-Dochazka-Common for openSUSE:Factory checked in at 2016-10-10 16:20:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-App-Dochazka-Common (Old) and /work/SRC/openSUSE:Factory/.perl-App-Dochazka-Common.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-App-Dochazka-Common" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-App-Dochazka-Common/perl-App-Dochazka-Common.changes 2016-09-17 14:39:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-App-Dochazka-Common.new/perl-App-Dochazka-Common.changes 2016-10-10 16:20:14.000000000 +0200 @@ -1,0 +2,23 @@ +Sat Sep 24 10:46:10 UTC 2016 - ncutler@suse.com + +- updated to 0.206 + see /usr/share/doc/packages/perl-App-Dochazka-Common/Changes + +------------------------------------------------------------------- +Sat Sep 24 10:44:32 UTC 2016 - ncutler@suse.com + +- updated to 0.206 + see /usr/share/doc/packages/perl-App-Dochazka-Common/Changes + +------------------------------------------------------------------- +Wed Sep 14 11:23:29 UTC 2016 - ncutler@suse.com + +- updated to 0.205 + see /usr/share/doc/packages/perl-App-Dochazka-Common/Changes + +------------------------------------------------------------------- +Thu Sep 8 10:54:03 UTC 2016 - tampakrap@opensuse.org + +- regenerate via cpanspec, remove _service file + +------------------------------------------------------------------- Old: ---- App-Dochazka-Common-0.204.tar.gz _service New: ---- App-Dochazka-Common-0.206.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-App-Dochazka-Common.spec ++++++ --- /var/tmp/diff_new_pack.2H1Vgi/_old 2016-10-10 16:20:15.000000000 +0200 +++ /var/tmp/diff_new_pack.2H1Vgi/_new 2016-10-10 16:20:15.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-App-Dochazka-Common # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,19 @@ Name: perl-App-Dochazka-Common -Version: 0.204 +Version: 0.206 Release: 0 %define cpan_name App-Dochazka-Common Summary: Dochazka Attendance and Time Tracking System shared modules License: BSD-3-Clause Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/App-Dochazka-Common/ -Source: %{cpan_name}-%{version}.tar.gz +Source0: App-Dochazka-Common-0.206.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.37 +BuildRequires: perl(Module::Build) >= 0.370000 BuildRequires: perl(Params::Validate) >= 1.06 BuildRequires: perl(Software::License) BuildRequires: perl(Test::Deep::NoTest) @@ -43,9 +43,8 @@ %{perl_requires} %description -This distro contains modules that are used by both the server the -App::Dochazka::REST manpage and the command-line client the -App::Dochazka::CLI manpage. +This distro contains modules that are used by both the server +App::Dochazka::REST and the command-line client App::Dochazka::CLI. %prep %setup -q -n %{cpan_name}-%{version} @@ -63,6 +62,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes ignore.txt README.rst +%doc Changes LICENSE README.rst %changelog ++++++ App-Dochazka-Common-0.204.tar.gz -> App-Dochazka-Common-0.206.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/Changes new/App-Dochazka-Common-0.206/Changes --- old/App-Dochazka-Common-0.204/Changes 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/Changes 2016-09-24 12:45:59.000000000 +0200 @@ -223,3 +223,13 @@ - Model.pm: make make_accessor more useful - Model/Tempintvl.pm: add int_id accessor +0.205 2016-09-14 09:35 CEST +- Travis CI +- Add sync property to Employee class + +0.206 2016-09-24 12:44 CEST +- build/ops: change OBS_PROJECT to Application:Dochazka:staging +- Session.pm: boilerplate for new module +- Session.pm: implement get_session() function +- MANIFEST: add the new Session.pm module + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/MANIFEST new/App-Dochazka-Common-0.206/MANIFEST --- old/App-Dochazka-Common-0.204/MANIFEST 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/MANIFEST 2016-09-24 12:45:59.000000000 +0200 @@ -1,6 +1,5 @@ Build.PL Changes -ignore.txt lib/App/Dochazka/Common.pm lib/App/Dochazka/Common/Model.pm lib/App/Dochazka/Common/Model/Activity.pm @@ -14,6 +13,7 @@ lib/App/Dochazka/Common/Model/Schedintvls.pm lib/App/Dochazka/Common/Model/Schedule.pm lib/App/Dochazka/Common/Model/Tempintvl.pm +lib/App/Dochazka/Common/Session.pm LICENSE Makefile.PL MANIFEST This list of files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/META.json new/App-Dochazka-Common-0.206/META.json --- old/App-Dochazka-Common-0.204/META.json 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/META.json 2016-09-24 12:45:59.000000000 +0200 @@ -40,7 +40,7 @@ "provides" : { "App::Dochazka::Common" : { "file" : "lib/App/Dochazka/Common.pm", - "version" : "0.204" + "version" : "0.206" }, "App::Dochazka::Common::Model" : { "file" : "lib/App/Dochazka/Common/Model.pm" @@ -77,6 +77,9 @@ }, "App::Dochazka::Common::Model::Tempintvl" : { "file" : "lib/App/Dochazka/Common/Model/Tempintvl.pm" + }, + "App::Dochazka::Common::Session" : { + "file" : "lib/App/Dochazka/Common/Session.pm" } }, "release_status" : "stable", @@ -91,6 +94,6 @@ "url" : "https://github.com/smithfarm/dochazka-common" } }, - "version" : "0.204", + "version" : "0.206", "x_serialization_backend" : "JSON::PP version 2.27203" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/META.yml new/App-Dochazka-Common-0.206/META.yml --- old/App-Dochazka-Common-0.204/META.yml 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/META.yml 2016-09-24 12:45:59.000000000 +0200 @@ -19,7 +19,7 @@ provides: App::Dochazka::Common: file: lib/App/Dochazka/Common.pm - version: '0.204' + version: '0.206' App::Dochazka::Common::Model: file: lib/App/Dochazka/Common/Model.pm App::Dochazka::Common::Model::Activity: @@ -44,6 +44,8 @@ file: lib/App/Dochazka/Common/Model/Schedule.pm App::Dochazka::Common::Model::Tempintvl: file: lib/App/Dochazka/Common/Model/Tempintvl.pm + App::Dochazka::Common::Session: + file: lib/App/Dochazka/Common/Session.pm requires: Params::Validate: '1.06' Test::Deep::NoTest: '0' @@ -54,5 +56,5 @@ bugtracker: https://github.com/smithfarm/dochazka-common/issues license: http://opensource.org/licenses/bsd-license.php repository: https://github.com/smithfarm/dochazka-common -version: '0.204' +version: '0.206' x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/README.rst new/App-Dochazka-Common-0.206/README.rst --- old/App-Dochazka-Common-0.204/README.rst 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/README.rst 2016-09-24 12:45:59.000000000 +0200 @@ -1,6 +1,13 @@ -=============== -dochazka-common -=============== +===================== +App::Dochazka::Common +===================== + +.. image:: https://travis-ci.org/smithfarm/dochazka-common.svg?branch=master + :target: https://travis-ci.org/smithfarm/dochazka-common + +.. image:: https://badge.fury.io/pl/App-Dochazka-Common.svg + :target: https://badge.fury.io/pl/App-Dochazka-Common + ------------------------------------------------- Dochazka object model and other common components ------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/ignore.txt new/App-Dochazka-Common-0.206/ignore.txt --- old/App-Dochazka-Common-0.204/ignore.txt 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/ignore.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -Makefile -Makefile.old -Build -Build.bat -META.* -MYMETA.* -.build/ -_build/ -cover_db/ -blib/ -inc/ -.lwpcookies -.last_cover_stats -nytprof.out -pod2htm*.tmp -pm_to_blib -App-Dochazka-Model-* -App-Dochazka-Model-*.tar.gz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common/Model/Employee.pm new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common/Model/Employee.pm --- old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common/Model/Employee.pm 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common/Model/Employee.pm 2016-09-24 12:45:59.000000000 +0200 @@ -37,7 +37,7 @@ use warnings; use App::Dochazka::Common::Model; -use constant ATTRS => qw( eid sec_id fullname nick email passhash salt supervisor remark ); +use constant ATTRS => qw( eid sec_id fullname nick email passhash salt supervisor sync remark ); BEGIN { App::Dochazka::Common::Model::boilerplate( __PACKAGE__, ATTRS ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common/Session.pm new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common/Session.pm --- old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common/Session.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common/Session.pm 2016-09-24 12:45:59.000000000 +0200 @@ -0,0 +1,88 @@ +# ************************************************************************* +# Copyright (c) 2014-2016, SUSE LLC +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# 3. Neither the name of SUSE LLC nor the names of its contributors may be +# used to endorse or promote products derived from this software without +# specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# ************************************************************************* + +package App::Dochazka::Common::Session; + +use 5.012; +use strict; +use warnings; + +use App::CELL qw( $log ); +use Exporter qw( import ); +use Params::Validate qw( :all ); +use Plack::Session; + +our @EXPORT_OK = qw( + get_session +); + + + +=head1 NAME + +App::Dochazka::Common::Session - session-management functions shared by +LApp::Dochazka::REST and LApp::Dochazka::WWW + + + +=head1 SYNOPSIS + +Shared session-management functions. + + + +=head1 FUNCTIONS + + +=head2 get_session + +Given a Plack environment (hashref), returns session object. If there is no +session object in the environment, it creates one. + +Returns: nothing + +=cut + +sub get_session { + my ( $env ) = validate_pos( @_, { type => HASHREF } ); + my $session; + + if ( ${ $env->{'psgix.session'} } ) { + $session = $env->{'psgix.session'}; + $log->info( "Plack environment already contains session " . $session->id ); + } else { + $session = Plack::Session->new( $env ); + $log->info( "Session missing in Plack environment; created new session " . $session->id ); + } + return; +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common.pm new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common.pm --- old/App-Dochazka-Common-0.204/lib/App/Dochazka/Common.pm 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/lib/App/Dochazka/Common.pm 2016-09-24 12:45:59.000000000 +0200 @@ -55,11 +55,11 @@ =head1 VERSION -Version 0.204 +Version 0.206 =cut -our $VERSION = '0.204'; +our $VERSION = '0.206'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-Common-0.204/t/model/reset.t new/App-Dochazka-Common-0.206/t/model/reset.t --- old/App-Dochazka-Common-0.204/t/model/reset.t 2016-01-19 15:16:13.000000000 +0100 +++ new/App-Dochazka-Common-0.206/t/model/reset.t 2016-09-24 12:45:59.000000000 +0200 @@ -73,6 +73,7 @@ email => 'parboiled@reset-pieces.com', passhash => 'foo', salt => 'bar', + sync => undef, supervisor => undef, remark => 'why me?', },
participants (1)
-
root@hilbert.suse.de