Hello community, here is the log from the commit of package perl-Cookie-Baker for openSUSE:Factory checked in at 2017-08-10 14:03:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Cookie-Baker (Old) and /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Cookie-Baker" Thu Aug 10 14:03:43 2017 rev:3 rq:512162 version:0.08 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Cookie-Baker/perl-Cookie-Baker.changes 2016-09-25 14:44:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new/perl-Cookie-Baker.changes 2017-08-10 14:11:56.273849602 +0200 @@ -1,0 +2,11 @@ +Wed Jul 19 05:16:10 UTC 2017 - co...@suse.com + +- updated to 0.08 + see /usr/share/doc/packages/perl-Cookie-Baker/Changes + + 0.08 2017-07-18T03:36:55Z + + - Disallow , as a delimiter + - accept max-age=0 #5 (Thank you skaji) + +------------------------------------------------------------------- Old: ---- Cookie-Baker-0.07.tar.gz New: ---- Cookie-Baker-0.08.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Cookie-Baker.spec ++++++ --- /var/tmp/diff_new_pack.ldzczQ/_old 2017-08-10 14:11:57.449684048 +0200 +++ /var/tmp/diff_new_pack.ldzczQ/_new 2017-08-10 14:11:57.461682359 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Cookie-Baker # -# 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,20 +17,20 @@ Name: perl-Cookie-Baker -Version: 0.07 +Version: 0.08 Release: 0 %define cpan_name Cookie-Baker Summary: Cookie string generator / parser License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Cookie-Baker/ -Source0: http://www.cpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.380000 +BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Test::Time) BuildRequires: perl(URI::Escape) @@ -44,18 +44,19 @@ %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +%{__perl} Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes LICENSE minil.toml README.md +%doc Changes minil.toml README.md +%license LICENSE %changelog ++++++ Cookie-Baker-0.07.tar.gz -> Cookie-Baker-0.08.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/Build.PL new/Cookie-Baker-0.08/Build.PL --- old/Cookie-Baker-0.07/Build.PL 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/Build.PL 2017-07-18 05:36:56.000000000 +0200 @@ -4,62 +4,9 @@ # ========================================================================= use 5.008_001; - use strict; -use warnings; -use utf8; - -use Module::Build; -use File::Basename; -use File::Spec; - -my %args = ( - license => 'perl', - dynamic_config => 0, - - configure_requires => { - 'Module::Build' => 0.38, - }, - - name => 'Cookie-Baker', - module_name => 'Cookie::Baker', - allow_pureperl => 0, - - script_files => [glob('script/*'), glob('bin/*')], - c_source => [qw()], - PL_files => {}, - - test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/', - recursive_test_files => 1, - - -); -if (-d 'share') { - $args{share_dir} = 'share'; -} - -my $builder = Module::Build->subclass( - class => 'MyBuilder', - code => q{ - sub ACTION_distmeta { - die "Do not run distmeta. Install Minilla and `minil install` instead.\n"; - } - sub ACTION_installdeps { - die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n"; - } - } -)->new(%args); -$builder->create_build_script(); - -use File::Copy; -print "cp META.json MYMETA.json\n"; -copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!"; +use Module::Build::Tiny 0.035; -if (-f 'META.yml') { - print "cp META.yml MYMETA.yml\n"; - copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!"; -} else { - print "There is no META.yml... You may install this module from the repository...\n"; -} +Build_PL(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/Changes new/Cookie-Baker-0.08/Changes --- old/Cookie-Baker-0.07/Changes 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/Changes 2017-07-18 05:36:56.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Perl extension Cookie-Baker +0.08 2017-07-18T03:36:55Z + + - Disallow , as a delimiter + - accept max-age=0 #5 (Thank you skaji) + 0.07 2016-09-21T01:35:56Z - Allow quoted cookie values, as per RFC 6265. #8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/META.json new/Cookie-Baker-0.08/META.json --- old/Cookie-Baker-0.07/META.json 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/META.json 2017-07-18 05:36:56.000000000 +0200 @@ -4,7 +4,7 @@ "Masahiro Nagano <kazeb...@gmail.com>" ], "dynamic_config" : 0, - "generated_by" : "Minilla/v2.4.1", + "generated_by" : "Minilla/v3.0.13", "license" : [ "perl_5" ], @@ -28,7 +28,7 @@ "prereqs" : { "configure" : { "requires" : { - "Module::Build" : "0.38" + "Module::Build::Tiny" : "0.035" } }, "develop" : { @@ -60,7 +60,7 @@ "provides" : { "Cookie::Baker" : { "file" : "lib/Cookie/Baker.pm", - "version" : "0.07" + "version" : "0.08" } }, "release_status" : "stable", @@ -74,10 +74,11 @@ "web" : "https://github.com/kazeburo/Cookie-Baker" } }, - "version" : "0.07", + "version" : "0.08", "x_contributors" : [ + "Ichinose Shogo <shogo82...@gmail.com>", "Olaf Alders <o...@wundersolutions.com>", - "Ichinose Shogo <shogo82...@gmail.com>" + "Shoichi Kaji <sk...@cpan.org>" ], - "x_serialization_backend" : "JSON::PP version 2.27203" + "x_serialization_backend" : "JSON::PP version 2.27300_01" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/META.yml new/Cookie-Baker-0.08/META.yml --- old/Cookie-Baker-0.07/META.yml 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/META.yml 2017-07-18 05:36:56.000000000 +0200 @@ -6,9 +6,9 @@ Test::More: '0.98' Test::Time: '0' configure_requires: - Module::Build: '0.38' + Module::Build::Tiny: '0.035' dynamic_config: 0 -generated_by: 'Minilla/v2.4.1, CPAN::Meta::Converter version 2.150005' +generated_by: 'Minilla/v3.0.13, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -27,7 +27,7 @@ provides: Cookie::Baker: file: lib/Cookie/Baker.pm - version: '0.07' + version: '0.08' requires: Exporter: '0' URI::Escape: '0' @@ -36,8 +36,9 @@ bugtracker: https://github.com/kazeburo/Cookie-Baker/issues homepage: https://github.com/kazeburo/Cookie-Baker repository: git://github.com/kazeburo/Cookie-Baker.git -version: '0.07' +version: '0.08' x_contributors: - - 'Olaf Alders <o...@wundersolutions.com>' - 'Ichinose Shogo <shogo82...@gmail.com>' -x_serialization_backend: 'CPAN::Meta::YAML version 0.012' + - 'Olaf Alders <o...@wundersolutions.com>' + - 'Shoichi Kaji <sk...@cpan.org>' +x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/lib/Cookie/Baker.pm new/Cookie-Baker-0.08/lib/Cookie/Baker.pm --- old/Cookie-Baker-0.07/lib/Cookie/Baker.pm 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/lib/Cookie/Baker.pm 2017-07-18 05:36:56.000000000 +0200 @@ -7,7 +7,7 @@ use URI::Escape; BEGIN { - our $VERSION = "0.07"; + our $VERSION = "0.08"; our @EXPORT = qw/bake_cookie crush_cookie/; my $use_pp = $ENV{COOKIE_BAKER_PP}; if (!$use_pp) { @@ -38,7 +38,7 @@ $cookie .= 'domain=' . $args{domain} . '; ' if $args{domain}; $cookie .= 'path='. $args{path} . '; ' if $args{path}; $cookie .= 'expires=' . _date($args{expires}) . '; ' if exists $args{expires} && defined $args{expires}; - $cookie .= 'max-age=' . $args{"max-age"} . '; ' if $args{"max-age"}; + $cookie .= 'max-age=' . $args{"max-age"} . '; ' if exists $args{"max-age"}; $cookie .= 'secure; ' if $args{secure}; $cookie .= 'HttpOnly; ' if $args{httponly}; substr($cookie,-2,2,''); @@ -87,7 +87,7 @@ my $cookie_string = shift; return {} unless $cookie_string; my %results; - my @pairs = grep m/=/, split "[;,] ?", $cookie_string; + my @pairs = grep m/=/, split /; ?/, $cookie_string; for my $pair ( @pairs ) { # trim leading trailing whitespace $pair =~ s/^\s+//; $pair =~ s/\s+$//; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/t/01_bake.t new/Cookie-Baker-0.08/t/01_bake.t --- old/Cookie-Baker-0.07/t/01_bake.t 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/t/01_bake.t 2017-07-18 05:36:56.000000000 +0200 @@ -27,6 +27,8 @@ [ 'foo', { value => 'val',expires => '0' }, 'foo=val; expires=Thu, 01-Jan-1970 00:00:00 GMT'], [ 'foo', { value => 'val',expires => '-1' }, 'foo=val; expires=Mon, 07-Oct-2013 13:56:56 GMT'], [ 'foo', { value => 'val',expires => 'foo' }, 'foo=val; expires=foo'], + [ 'foo', { value => 'val','max-age' => '1000' }, 'foo=val; max-age=1000'], + [ 'foo', { value => 'val','max-age' => '0' }, 'foo=val; max-age=0'], ); for my $test (@tests) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.07/t/02_crush.t new/Cookie-Baker-0.08/t/02_crush.t --- old/Cookie-Baker-0.07/t/02_crush.t 2016-09-21 03:36:03.000000000 +0200 +++ new/Cookie-Baker-0.08/t/02_crush.t 2017-07-18 05:36:56.000000000 +0200 @@ -27,6 +27,9 @@ [ 'BADSTART="data;', { BADSTART => '"data' }], [ 'BADEND=data";', { BADEND => 'data"' }], + # disallow "," as a delimiter + [ 'Foo=Bar; Bar=Baz, XXX=Foo%20Bar ; YYY=; ', { Foo => 'Bar', Bar => 'Baz, XXX=Foo Bar',YYY=>"" }], + [ '', {} ], [ undef, {} ], );