commit perl-Web-MREST for openSUSE:Factory
Hello community, here is the log from the commit of package perl-Web-MREST for openSUSE:Factory checked in at 2017-03-28 15:20:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Web-MREST (Old) and /work/SRC/openSUSE:Factory/.perl-Web-MREST.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Web-MREST" Tue Mar 28 15:20:49 2017 rev:3 rq:460882 version:0.287 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Web-MREST/perl-Web-MREST.changes 2016-10-20 23:10:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Web-MREST.new/perl-Web-MREST.changes 2017-03-28 15:20:50.633278555 +0200 @@ -1,0 +2,11 @@ +Sun Feb 26 07:46:51 UTC 2017 - coolo@suse.com + +- updated to 0.287 + see /usr/share/doc/packages/perl-Web-MREST/Changes + + + 0.287 2017-02-25 09:38 CET + - Refrain from munging Plack::Session object + - script: store sessions in a dedicated directory in /tmp + +------------------------------------------------------------------- Old: ---- Web-MREST-0.286.tar.gz New: ---- Web-MREST-0.287.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Web-MREST.spec ++++++ --- /var/tmp/diff_new_pack.GaxkN7/_old 2017-03-28 15:20:51.293185092 +0200 +++ /var/tmp/diff_new_pack.GaxkN7/_new 2017-03-28 15:20:51.293185092 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Web-MREST # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,14 +17,15 @@ Name: perl-Web-MREST -Version: 0.286 +Version: 0.287 Release: 0 %define cpan_name Web-MREST Summary: Minimalistic REST server License: BSD-3-Clause Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Web-MREST/ -Source0: Web-MREST-0.286.tar.gz +Source0: https://cpan.metacpan.org/authors/id/S/SM/SMITHFARM/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -45,7 +46,6 @@ BuildRequires: perl(Plack::Middleware::Session) BuildRequires: perl(Plack::Middleware::StackTrace) BuildRequires: perl(Plack::Runner) -BuildRequires: perl(Plack::Session) BuildRequires: perl(Plack::Test) BuildRequires: perl(Pod::Simple::HTML) BuildRequires: perl(Pod::Simple::Text) @@ -72,7 +72,6 @@ Requires: perl(Plack::Middleware::Session) Requires: perl(Plack::Middleware::StackTrace) Requires: perl(Plack::Runner) -Requires: perl(Plack::Session) Requires: perl(Pod::Simple::HTML) Requires: perl(Pod::Simple::Text) Requires: perl(Test::Deep::NoTest) @@ -114,6 +113,7 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes config LICENSE README.rst +%doc Changes config README.rst +%license LICENSE %changelog ++++++ Web-MREST-0.286.tar.gz -> Web-MREST-0.287.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/Build.PL new/Web-MREST-0.287/Build.PL --- old/Web-MREST-0.286/Build.PL 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/Build.PL 2017-02-25 09:38:34.000000000 +0100 @@ -43,7 +43,6 @@ 'Module::Runtime' => 0, 'Params::Validate' => 0, 'Path::Router' => 0.12, - 'Plack::Session' => 0, 'Plack' => 1.0031, 'Plack::Test' => 0, 'Pod::Simple::HTML' => 0, @@ -76,7 +75,6 @@ 'Plack::Middleware::Session' => 0, 'Plack::Middleware::StackTrace' => 0, 'Plack::Runner' => 0, - 'Plack::Session' => 0, 'Pod::Simple::HTML' => 0, 'Pod::Simple::Text' => 0, 'Pod::Usage' => 0, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/Changes new/Web-MREST-0.287/Changes --- old/Web-MREST-0.286/Changes 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/Changes 2017-02-25 09:38:34.000000000 +0100 @@ -512,3 +512,7 @@ - cleanup: fix copyright header in bin/mrest - Add get_session() function to Util.pm +0.287 2017-02-25 09:38 CET +- Refrain from munging Plack::Session object +- script: store sessions in a dedicated directory in /tmp + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/META.json new/Web-MREST-0.287/META.json --- old/Web-MREST-0.286/META.json 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/META.json 2017-02-25 09:38:34.000000000 +0100 @@ -4,7 +4,7 @@ "Nathan Cutler <ncutler@suse.cz>" ], "dynamic_config" : 1, - "generated_by" : "Module::Build version 0.4205", + "generated_by" : "Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921", "license" : [ "bsd" ], @@ -36,7 +36,6 @@ "Params::Validate" : "0", "Path::Router" : "0.12", "Plack" : "1.0031", - "Plack::Session" : "0", "Plack::Test" : "0", "Pod::Simple::HTML" : "0", "Pod::Simple::Text" : "0", @@ -74,7 +73,6 @@ "Plack::Middleware::Session" : "0", "Plack::Middleware::StackTrace" : "0", "Plack::Runner" : "0", - "Plack::Session" : "0", "Pod::Simple::HTML" : "0", "Pod::Simple::Text" : "0", "Pod::Usage" : "0", @@ -91,45 +89,54 @@ "provides" : { "Web::MREST" : { "file" : "lib/Web/MREST.pm", - "version" : "0.286" + "version" : "0.287" }, "Web::MREST::Dispatch" : { - "file" : "lib/Web/MREST/Dispatch.pm" + "file" : "lib/Web/MREST/Dispatch.pm", + "version" : 0 }, "Web::MREST::Entity" : { - "file" : "lib/Web/MREST/Entity.pm" + "file" : "lib/Web/MREST/Entity.pm", + "version" : 0 }, "Web::MREST::InitRouter" : { - "file" : "lib/Web/MREST/InitRouter.pm" + "file" : "lib/Web/MREST/InitRouter.pm", + "version" : 0 }, "Web::MREST::Resource" : { - "file" : "lib/Web/MREST/Resource.pm" + "file" : "lib/Web/MREST/Resource.pm", + "version" : 0 }, "Web::MREST::Test" : { - "file" : "lib/Web/MREST/Test.pm" + "file" : "lib/Web/MREST/Test.pm", + "version" : 0 }, "Web::MREST::Test::503" : { - "file" : "lib/Web/MREST/Test/503.pm" + "file" : "lib/Web/MREST/Test/503.pm", + "version" : 0 }, "Web::MREST::Test::Forbidden" : { - "file" : "lib/Web/MREST/Test/Forbidden.pm" + "file" : "lib/Web/MREST/Test/Forbidden.pm", + "version" : 0 }, "Web::MREST::Test::Unauthorized" : { - "file" : "lib/Web/MREST/Test/Unauthorized.pm" + "file" : "lib/Web/MREST/Test/Unauthorized.pm", + "version" : 0 }, "Web::MREST::Util" : { - "file" : "lib/Web/MREST/Util.pm" + "file" : "lib/Web/MREST/Util.pm", + "version" : 0 }, "Web::MREST::WebServicesIntro" : { - "file" : "lib/Web/MREST/WebServicesIntro.pm" + "file" : "lib/Web/MREST/WebServicesIntro.pm", + "version" : 0 } }, "release_status" : "stable", "resources" : { "license" : [ - "http://opensource.org/licenses/bsd-license.php" + "http://opensource.org/licenses/BSD-3-Clause" ] }, - "version" : "0.286", - "x_serialization_backend" : "JSON::PP version 2.27203" + "version" : "0.287" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/META.yml new/Web-MREST-0.287/META.yml --- old/Web-MREST-0.286/META.yml 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/META.yml 2017-02-25 09:38:34.000000000 +0100 @@ -3,41 +3,40 @@ author: - 'Nathan Cutler <ncutler@suse.cz>' build_requires: - App::CELL: '0.209' - Cwd: '0' - Encode: '0' - File::Basename: '0' - File::ShareDir: '0' - File::Spec: '0' - HTTP::Request: '0' - HTTP::Request::Common: '0' - JSON: '0' - LWP::Protocol::https: '6.04' - LWP::UserAgent: '6.05' - Module::Runtime: '0' - Params::Validate: '0' - Path::Router: '0.12' - Plack: '1.0031' - Plack::Session: '0' - Plack::Test: '0' - Pod::Simple::HTML: '0' - Pod::Simple::Text: '0' - Test::Deep: '0' - Test::Fatal: '0' - Test::JSON: '0' - Test::More: '0' - Test::Warnings: '0' - Try::Tiny: '0' - URI::Escape: '0' - Web::Machine: '0.15' + App::CELL: 0.209 + Cwd: 0 + Encode: 0 + File::Basename: 0 + File::ShareDir: 0 + File::Spec: 0 + HTTP::Request: 0 + HTTP::Request::Common: 0 + JSON: 0 + LWP::Protocol::https: 6.04 + LWP::UserAgent: 6.05 + Module::Runtime: 0 + Params::Validate: 0 + Path::Router: 0.12 + Plack: 1.0031 + Plack::Test: 0 + Pod::Simple::HTML: 0 + Pod::Simple::Text: 0 + Test::Deep: 0 + Test::Fatal: 0 + Test::JSON: 0 + Test::More: 0 + Test::Warnings: 0 + Try::Tiny: 0 + URI::Escape: 0 + Web::Machine: 0.15 configure_requires: - Module::Build: '0' + Module::Build: 0 dynamic_config: 1 -generated_by: 'Module::Build version 0.4205, CPAN::Meta::Converter version 2.150005' +generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921' license: bsd meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: '1.4' + version: 1.4 name: Web-MREST no_index: directory: @@ -45,57 +44,65 @@ provides: Web::MREST: file: lib/Web/MREST.pm - version: '0.286' + version: 0.287 Web::MREST::Dispatch: file: lib/Web/MREST/Dispatch.pm + version: 0 Web::MREST::Entity: file: lib/Web/MREST/Entity.pm + version: 0 Web::MREST::InitRouter: file: lib/Web/MREST/InitRouter.pm + version: 0 Web::MREST::Resource: file: lib/Web/MREST/Resource.pm + version: 0 Web::MREST::Test: file: lib/Web/MREST/Test.pm + version: 0 Web::MREST::Test::503: file: lib/Web/MREST/Test/503.pm + version: 0 Web::MREST::Test::Forbidden: file: lib/Web/MREST/Test/Forbidden.pm + version: 0 Web::MREST::Test::Unauthorized: file: lib/Web/MREST/Test/Unauthorized.pm + version: 0 Web::MREST::Util: file: lib/Web/MREST/Util.pm + version: 0 Web::MREST::WebServicesIntro: file: lib/Web/MREST/WebServicesIntro.pm + version: 0 requires: - App::CELL: '0.205' - Encode: '0' - File::ShareDir: '1.00' - File::Spec: '0' - Getopt::Long: '2.32' - HTTP::Request: '0' - HTTP::Request::Common: '0' - JSON: '0' - LWP::Protocol::https: '6.04' - LWP::UserAgent: '6.05' - Module::Runtime: '0' - Params::Validate: '1.06' - Path::Router: '0.12' - Plack::Middleware::LogErrors: '0' - Plack::Middleware::Session: '0' - Plack::Middleware::StackTrace: '0' - Plack::Runner: '0' - Plack::Session: '0' - Pod::Simple::HTML: '0' - Pod::Simple::Text: '0' - Pod::Usage: '0' - Term::ReadLine: '0' - Test::Deep::NoTest: '0' - Try::Tiny: '0' - URI::Escape: '0' - Web::MREST::CLI: '0.276' - Web::Machine: '0.15' - perl: '5.012' + App::CELL: 0.205 + Encode: 0 + File::ShareDir: 1.00 + File::Spec: 0 + Getopt::Long: 2.32 + HTTP::Request: 0 + HTTP::Request::Common: 0 + JSON: 0 + LWP::Protocol::https: 6.04 + LWP::UserAgent: 6.05 + Module::Runtime: 0 + Params::Validate: 1.06 + Path::Router: 0.12 + Plack::Middleware::LogErrors: 0 + Plack::Middleware::Session: 0 + Plack::Middleware::StackTrace: 0 + Plack::Runner: 0 + Pod::Simple::HTML: 0 + Pod::Simple::Text: 0 + Pod::Usage: 0 + Term::ReadLine: 0 + Test::Deep::NoTest: 0 + Try::Tiny: 0 + URI::Escape: 0 + Web::MREST::CLI: 0.276 + Web::Machine: 0.15 + perl: 5.012 resources: - license: http://opensource.org/licenses/bsd-license.php -version: '0.286' -x_serialization_backend: 'CPAN::Meta::YAML version 0.012' + license: http://opensource.org/licenses/BSD-3-Clause +version: 0.287 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/bin/mrest new/Web-MREST-0.287/bin/mrest --- old/Web-MREST-0.286/bin/mrest 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/bin/mrest 2017-02-25 09:38:34.000000000 +0100 @@ -42,11 +42,13 @@ use App::CELL qw( $log $site ); use Web::MREST; use Data::Dumper; +use File::Path qw( remove_tree ); use Getopt::Long; use Log::Any::Adapter; use Module::Runtime qw( is_module_name require_module ); use Plack::Builder; use Plack::Runner; +use Plack::Session::Store::File; use Pod::Usage; use Try::Tiny; use Web::Machine; @@ -228,6 +230,8 @@ my $app = _init_webmachine( $app_module ); my $runner = Plack::Runner->new; $runner->parse_options(@ARGV); +remove_tree('/tmp/mrest-sessions'); +mkdir '/tmp/mrest-sessions'; $runner->run( builder { @@ -238,7 +242,10 @@ $log->$level( $message ); }; # enable "StackTrace", force => 1; - enable "Session", store => 'File'; +# enable "Session", store => 'File'; + enable "Session", store => Plack::Session::Store::File->new( + dir => '/tmp/mrest-sessions' + ); enable "Static", path => qr{/favicon}, root => $distro_sharedir; $app; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/lib/Web/MREST/Resource.pm new/Web-MREST-0.287/lib/Web/MREST/Resource.pm --- old/Web-MREST-0.286/lib/Web/MREST/Resource.pm 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/lib/Web/MREST/Resource.pm 2017-02-25 09:38:34.000000000 +0100 @@ -1,5 +1,5 @@ # ************************************************************************* -# Copyright (c) 2014-2015-2015, SUSE LLC +# Copyright (c) 2014-2016, SUSE LLC # # All rights reserved. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/lib/Web/MREST/Util.pm new/Web-MREST-0.287/lib/Web/MREST/Util.pm --- old/Web-MREST-0.286/lib/Web/MREST/Util.pm 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/lib/Web/MREST/Util.pm 2017-02-25 09:38:34.000000000 +0100 @@ -40,7 +40,6 @@ use File::Spec; use JSON; use Params::Validate qw( :all ); -use Plack::Session; use Pod::Simple::HTML; use Pod::Simple::Text; @@ -72,8 +71,6 @@ =item C<$JSON> (singleton) -=item C<get_session> (function) - =item C<pod_to_html> (function) =item C<pod_to_text> (function) @@ -85,7 +82,6 @@ use Exporter qw( import ); our @EXPORT_OK = qw( $JSON - get_session pod_to_html pod_to_text ); @@ -142,30 +138,4 @@ } -=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 ); - } - - die "Dying in Web::MREST::Util::get_session because Plack environment still doesn't have a psgix.session property" unless ${ $env->{'psgix.session'} }; - - return; -} - 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Web-MREST-0.286/lib/Web/MREST.pm new/Web-MREST-0.287/lib/Web/MREST.pm --- old/Web-MREST-0.286/lib/Web/MREST.pm 2016-09-27 17:03:10.000000000 +0200 +++ new/Web-MREST-0.287/lib/Web/MREST.pm 2017-02-25 09:38:34.000000000 +0100 @@ -57,11 +57,11 @@ =head1 VERSION -Version 0.286 +Version 0.287 =cut -our $VERSION = '0.286'; +our $VERSION = '0.287'; =head2 Development status ++++++ 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
participants (1)
-
root@hilbert.suse.de