Hello community,

here is the log from the commit of package perl-Cookie-Baker for 
openSUSE:Factory checked in at 2016-09-25 14:44: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"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Cookie-Baker/perl-Cookie-Baker.changes      
2016-02-17 10:23:33.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new/perl-Cookie-Baker.changes 
2016-09-25 14:44:45.000000000 +0200
@@ -1,0 +2,10 @@
+Thu Sep 22 05:12:26 UTC 2016 - [email protected]
+
+- updated to 0.07
+   see /usr/share/doc/packages/perl-Cookie-Baker/Changes
+
+  0.07 2016-09-21T01:35:56Z
+  
+     - Allow quoted cookie values, as per RFC 6265. #8
+
+-------------------------------------------------------------------

Old:
----
  Cookie-Baker-0.06.tar.gz

New:
----
  Cookie-Baker-0.07.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Cookie-Baker.spec ++++++
--- /var/tmp/diff_new_pack.2Bc2GY/_old  2016-09-25 14:44:46.000000000 +0200
+++ /var/tmp/diff_new_pack.2Bc2GY/_new  2016-09-25 14:44:46.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Cookie-Baker
 #
-# 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,7 +17,7 @@
 
 
 Name:           perl-Cookie-Baker
-Version:        0.06
+Version:        0.07
 Release:        0
 %define cpan_name Cookie-Baker
 Summary:        Cookie string generator / parser

++++++ Cookie-Baker-0.06.tar.gz -> Cookie-Baker-0.07.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.06/Changes 
new/Cookie-Baker-0.07/Changes
--- old/Cookie-Baker-0.06/Changes       2015-06-29 07:54:10.000000000 +0200
+++ new/Cookie-Baker-0.07/Changes       2016-09-21 03:36:03.000000000 +0200
@@ -1,5 +1,9 @@
 Revision history for Perl extension Cookie-Baker
 
+0.07 2016-09-21T01:35:56Z
+
+   - Allow quoted cookie values, as per RFC 6265. #8
+
 0.06 2015-06-29T05:53:57Z
 
    - fix compatibility issue. #4 (Thank you shogo82148)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.06/META.json 
new/Cookie-Baker-0.07/META.json
--- old/Cookie-Baker-0.06/META.json     2015-06-29 07:54:10.000000000 +0200
+++ new/Cookie-Baker-0.07/META.json     2016-09-21 03:36:03.000000000 +0200
@@ -60,7 +60,7 @@
    "provides" : {
       "Cookie::Baker" : {
          "file" : "lib/Cookie/Baker.pm",
-         "version" : "0.06"
+         "version" : "0.07"
       }
    },
    "release_status" : "stable",
@@ -74,9 +74,10 @@
          "web" : "https://github.com/kazeburo/Cookie-Baker";
       }
    },
-   "version" : "0.06",
+   "version" : "0.07",
    "x_contributors" : [
       "Olaf Alders <[email protected]>",
       "Ichinose Shogo <[email protected]>"
-   ]
+   ],
+   "x_serialization_backend" : "JSON::PP version 2.27203"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.06/META.yml 
new/Cookie-Baker-0.07/META.yml
--- old/Cookie-Baker-0.06/META.yml      2015-06-29 07:54:10.000000000 +0200
+++ new/Cookie-Baker-0.07/META.yml      2016-09-21 03:36:03.000000000 +0200
@@ -8,7 +8,7 @@
 configure_requires:
   Module::Build: '0.38'
 dynamic_config: 0
-generated_by: 'Minilla/v2.4.1, CPAN::Meta::Converter version 2.141170'
+generated_by: 'Minilla/v2.4.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.06'
+    version: '0.07'
 requires:
   Exporter: '0'
   URI::Escape: '0'
@@ -36,7 +36,8 @@
   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.06'
+version: '0.07'
 x_contributors:
   - 'Olaf Alders <[email protected]>'
   - 'Ichinose Shogo <[email protected]>'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.06/lib/Cookie/Baker.pm 
new/Cookie-Baker-0.07/lib/Cookie/Baker.pm
--- old/Cookie-Baker-0.06/lib/Cookie/Baker.pm   2015-06-29 07:54:10.000000000 
+0200
+++ new/Cookie-Baker-0.07/lib/Cookie/Baker.pm   2016-09-21 03:36:03.000000000 
+0200
@@ -7,12 +7,16 @@
 use URI::Escape;
 
 BEGIN {
-    our $VERSION = "0.06";
+    our $VERSION = "0.07";
     our @EXPORT = qw/bake_cookie crush_cookie/;
     my $use_pp = $ENV{COOKIE_BAKER_PP};
     if (!$use_pp) {
         eval {
             require Cookie::Baker::XS;
+            if ( $Cookie::Baker::XS::VERSION < $VERSION ) {
+                warn "Cookie::Baker::XS $VERSION is require. fallback to PP 
version";
+                die;
+            }
         };
         $use_pp = !!$@;
     }
@@ -88,7 +92,14 @@
         # trim leading trailing whitespace
         $pair =~ s/^\s+//; $pair =~ s/\s+$//;
 
-        my ($key, $value) = map URI::Escape::uri_unescape($_), split( "=", 
$pair, 2 );
+        my ($key, $value) = split( "=", $pair, 2 );
+
+        $key = URI::Escape::uri_unescape($key);
+
+        # Values can be quoted
+        $value = "" unless defined $value;
+        $value =~ s/\A"(.*)"\z/$1/;
+        $value = URI::Escape::uri_unescape($value);
 
         # Take the first one like CGI.pm or rack do
         $results{$key} = $value unless exists $results{$key};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.06/t/02_crush.t 
new/Cookie-Baker-0.07/t/02_crush.t
--- old/Cookie-Baker-0.06/t/02_crush.t  2015-06-29 07:54:10.000000000 +0200
+++ new/Cookie-Baker-0.07/t/02_crush.t  2016-09-21 03:36:03.000000000 +0200
@@ -16,7 +16,17 @@
     [ 'Foo=Bar; Bar=Baz;  XXX=Foo%20Bar   ; YYY=;', { Foo => 'Bar', Bar => 
'Baz', XXX => 'Foo Bar', YYY=>"" }],
     [ 'Foo=Bar; Bar=Baz;  XXX=Foo%20Bar   ; YYY=; ', { Foo => 'Bar', Bar => 
'Baz', XXX => 'Foo Bar',YYY=>"" }],
     [ "Foo=Bar; $longkey=Bar", { Foo => 'Bar', $longkey => 'Bar'}],
-    [ "Foo=Bar; $longkey=Bar; Bar=Baz", { Foo => 'Bar', $longkey => 'Bar', 
'Bar'=>'Baz'}], 
+    [ "Foo=Bar; $longkey=Bar; Bar=Baz", { Foo => 'Bar', $longkey => 'Bar', 
'Bar'=>'Baz'}],
+
+    # from https://github.com/plack/Plack/pull/564/files
+    [ 'ZZZ="spaced out"; XXX=Foo', { ZZZ => 'spaced out', XXX => 'Foo' }],
+    [ 'ZZTOP=%22with%20quotes%22;', { ZZTOP => '"with quotes"' }],
+    [ 'BOTH="%22internal quotes%22";', { BOTH => '"internal quotes"'}],
+    [ 'EMPTYQUOTE="";', { EMPTYQUOTE => '' }],
+    [ 'EMPTY=;', { EMPTY => '' }],
+    [ 'BADSTART="data;', { BADSTART => '"data' }],
+    [ 'BADEND=data";', { BADEND => 'data"' }],
+
     [ '', {} ],
     [ undef, {} ],
 );


Reply via email to