Hello community, here is the log from the commit of package perl-Cookie-Baker for openSUSE:Factory checked in at 2018-09-24 13:13:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Cookie-Baker (Old) and /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Cookie-Baker" Mon Sep 24 13:13:51 2018 rev:5 rq:637204 version:0.10 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Cookie-Baker/perl-Cookie-Baker.changes 2018-03-07 10:34:36.710620912 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new/perl-Cookie-Baker.changes 2018-09-24 13:13:54.529639264 +0200 @@ -1,0 +2,11 @@ +Sat Sep 22 05:09:45 UTC 2018 - Stephan Kulow <coolo@suse.com> + +- updated to 0.10 + see /usr/share/doc/packages/perl-Cookie-Baker/Changes + + 0.10 2018-09-21T07:40:25Z + + - Add samesite https://github.com/kazeburo/Cookie-Baker/pull/13 + - Documentation cleanup + +------------------------------------------------------------------- Old: ---- Cookie-Baker-0.09.tar.gz New: ---- Cookie-Baker-0.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Cookie-Baker.spec ++++++ --- /var/tmp/diff_new_pack.tVIerA/_old 2018-09-24 13:13:54.961638515 +0200 +++ /var/tmp/diff_new_pack.tVIerA/_new 2018-09-24 13:13:54.965638507 +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-Cookie-Baker -Version: 0.09 +Version: 0.10 Release: 0 %define cpan_name Cookie-Baker Summary: Cookie string generator / parser ++++++ Cookie-Baker-0.09.tar.gz -> Cookie-Baker-0.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/Changes new/Cookie-Baker-0.10/Changes --- old/Cookie-Baker-0.09/Changes 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/Changes 2018-09-21 09:40:25.000000000 +0200 @@ -1,5 +1,10 @@ Revision history for Perl extension Cookie-Baker +0.10 2018-09-21T07:40:25Z + + - Add samesite https://github.com/kazeburo/Cookie-Baker/pull/13 + - Documentation cleanup + 0.09 2018-03-03T04:33:20Z - +Ny means +N*60*60*24*365 seconds diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/META.json new/Cookie-Baker-0.10/META.json --- old/Cookie-Baker-0.09/META.json 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/META.json 2018-09-21 09:40:25.000000000 +0200 @@ -4,7 +4,7 @@ "Masahiro Nagano <kazeburo@gmail.com>" ], "dynamic_config" : 0, - "generated_by" : "Minilla/v3.0.16", + "generated_by" : "Minilla/v3.1.1", "license" : [ "perl_5" ], @@ -60,7 +60,7 @@ "provides" : { "Cookie::Baker" : { "file" : "lib/Cookie/Baker.pm", - "version" : "0.09" + "version" : "0.10" } }, "release_status" : "stable", @@ -74,11 +74,13 @@ "web" : "https://github.com/kazeburo/Cookie-Baker" } }, - "version" : "0.09", + "version" : "0.10", "x_contributors" : [ + "David Romano <unobe@cpan.org>", "Ichinose Shogo <shogo82148@gmail.com>", "Olaf Alders <olaf@wundersolutions.com>", "Shoichi Kaji <skaji@cpan.org>" ], - "x_serialization_backend" : "JSON::PP version 2.27400_02" + "x_serialization_backend" : "JSON::PP version 2.27300_01", + "x_static_install" : 1 } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/META.yml new/Cookie-Baker-0.10/META.yml --- old/Cookie-Baker-0.09/META.yml 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/META.yml 2018-09-21 09:40:25.000000000 +0200 @@ -8,7 +8,7 @@ configure_requires: Module::Build::Tiny: '0.035' dynamic_config: 0 -generated_by: 'Minilla/v3.0.16, CPAN::Meta::Converter version 2.150010' +generated_by: 'Minilla/v3.1.1, 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.09' + version: '0.10' requires: Exporter: '0' URI::Escape: '0' @@ -36,9 +36,11 @@ 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.09' +version: '0.10' x_contributors: + - 'David Romano <unobe@cpan.org>' - 'Ichinose Shogo <shogo82148@gmail.com>' - 'Olaf Alders <olaf@wundersolutions.com>' - 'Shoichi Kaji <skaji@cpan.org>' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' +x_static_install: 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/README.md new/Cookie-Baker-0.10/README.md --- old/Cookie-Baker-0.09/README.md 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/README.md 2018-09-21 09:40:25.000000000 +0200 @@ -36,11 +36,11 @@ Generates a cookie string for an HTTP response header. The first argument is the cookie's name and the second argument is a plain string or hash reference that can contain keys such as `value`, `domain`, `expires`, `path`, `httponly`, `secure`, - `max-age`. + `max-age`, `samesite`. - value - Cookie's value + Cookie's value. - domain @@ -48,7 +48,7 @@ - expires - Cookie's expires date time. Several formats are supported + Cookie's expires date time. Several formats are supported: expires => time + 24 * 60 * 60 # epoch time expires => 'Wed, 03-Nov-2010 20:54:16 GMT' @@ -60,6 +60,10 @@ expires => '+10y' # in ten years time (60*60*24*365*10 seconds) expires => 'now' #immediately + - max-age + + If defined, sets the max-age for the cookie. + - path Cookie's path. @@ -72,6 +76,12 @@ If true, sets secure flag. false by default. + - samesite + + If defined as 'lax' or 'strict' (case-insensitive), sets the SameSite restriction for the cookie as described in the + [draft proposal](https://tools.ietf.org/html/draft-west-first-party-cookies-07), which is already implemented in + Chrome (v51), Opera (v38) and Firefox (v60). + - crush\_cookie Parses cookie string and returns a hashref. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/lib/Cookie/Baker.pm new/Cookie-Baker-0.10/lib/Cookie/Baker.pm --- old/Cookie-Baker-0.09/lib/Cookie/Baker.pm 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/lib/Cookie/Baker.pm 2018-09-21 09:40:25.000000000 +0200 @@ -7,7 +7,7 @@ use URI::Escape; BEGIN { - our $VERSION = "0.09"; + our $VERSION = "0.10"; our @EXPORT = qw/bake_cookie crush_cookie/; my $use_pp = $ENV{COOKIE_BAKER_PP}; if (!$use_pp) { @@ -39,6 +39,9 @@ $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 exists $args{"max-age"}; + if (exists $args{samesite} && $args{samesite} =~ m/^(?:lax|strict)/i) { + $cookie .= 'SameSite=' . ucfirst(lc($args{samesite})) . '; ' + } $cookie .= 'secure; ' if $args{secure}; $cookie .= 'HttpOnly; ' if $args{httponly}; substr($cookie,-2,2,''); @@ -152,14 +155,14 @@ Generates a cookie string for an HTTP response header. The first argument is the cookie's name and the second argument is a plain string or hash reference that can contain keys such as C<value>, C<domain>, C<expires>, C<path>, C<httponly>, C<secure>, -C<max-age>. +C<max-age>, C<samesite>. =over 4 =item value -Cookie's value +Cookie's value. =item domain @@ -167,7 +170,7 @@ =item expires -Cookie's expires date time. Several formats are supported +Cookie's expires date time. Several formats are supported: expires => time + 24 * 60 * 60 # epoch time expires => 'Wed, 03-Nov-2010 20:54:16 GMT' @@ -179,6 +182,10 @@ expires => '+10y' # in ten years time (60*60*24*365*10 seconds) expires => 'now' #immediately +=item max-age + +If defined, sets the max-age for the cookie. + =item path Cookie's path. @@ -191,6 +198,12 @@ If true, sets secure flag. false by default. +=item samesite + +If defined as 'lax' or 'strict' (case-insensitive), sets the SameSite restriction for the cookie as described in the +L<draft proposal|https://tools.ietf.org/html/draft-west-first-party-cookies-07>, which is already implemented in +Chrome (v51), Opera (v38) and Firefox (v60). + =back =item crush_cookie diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cookie-Baker-0.09/t/01_bake.t new/Cookie-Baker-0.10/t/01_bake.t --- old/Cookie-Baker-0.09/t/01_bake.t 2018-03-03 05:33:29.000000000 +0100 +++ new/Cookie-Baker-0.10/t/01_bake.t 2018-09-21 09:40:25.000000000 +0200 @@ -29,6 +29,9 @@ [ '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'], + [ 'foo', { value => 'val', samesite => 'lax' }, 'foo=val; SameSite=Lax'], + [ 'foo', { value => 'val', samesite => 'strict' }, 'foo=val; SameSite=Strict'], + [ 'foo', { value => 'val', samesite => 'invalid value' }, 'foo=val'], ); for my $test (@tests) {