Hello community,

here is the log from the commit of package perl-YAML-Tiny for openSUSE:Factory 
checked in at 2011-11-21 12:51:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-YAML-Tiny (Old)
 and      /work/SRC/openSUSE:Factory/.perl-YAML-Tiny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-YAML-Tiny", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-YAML-Tiny/perl-YAML-Tiny.changes    
2011-09-23 12:39:33.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-YAML-Tiny.new/perl-YAML-Tiny.changes       
2011-11-21 12:51:12.000000000 +0100
@@ -1,0 +2,13 @@
+Fri Nov 18 13:20:44 UTC 2011 - [email protected]
+
+- update to 1.50
+    - Major bug fix, all code that writes arbitrary data should upgrade.
+    - Simple scalars with no whitespace but ending in a colon like ABC: were
+      not being quoted, which results in the parser confusing it with a
+      mapping key and crashing.
+  
+    - No functional changes.
+    - Don't depend on the YAML modules in RELEASE_TESTING, as it can
+      pollute the advisory META.yml.
+
+-------------------------------------------------------------------

Old:
----
  YAML-Tiny-1.48.tar.gz

New:
----
  YAML-Tiny-1.50.tar.gz

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

Other differences:
------------------
++++++ perl-YAML-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.cEE1N4/_old  2011-11-21 12:51:13.000000000 +0100
+++ /var/tmp/diff_new_pack.cEE1N4/_new  2011-11-21 12:51:13.000000000 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           perl-YAML-Tiny
-Version:        1.48
+Version:        1.50
 Release:        1
 License:        GPL+ or Artistic
 %define cpan_name YAML-Tiny

++++++ YAML-Tiny-1.48.tar.gz -> YAML-Tiny-1.50.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/Changes new/YAML-Tiny-1.50/Changes
--- old/YAML-Tiny-1.48/Changes  2011-02-01 00:59:23.000000000 +0100
+++ new/YAML-Tiny-1.50/Changes  2011-06-23 10:19:24.000000000 +0200
@@ -1,5 +1,16 @@
 Revision history for Perl extension YAML-Tiny
 
+1.50 Thu 23 Jun 2011
+       - Major bug fix, all code that writes arbitrary data should upgrade.
+       - Simple scalars with no whitespace but ending in a colon like ABC: were
+         not being quoted, which results in the parser confusing it with a
+         mapping key and crashing.
+
+1.49 Tue 8 Mar 2011
+       - No functional changes.
+       - Don't depend on the YAML modules in RELEASE_TESTING, as it can
+         pollute the advisory META.yml.
+
 1.48 Tue 1 Feb 2011
        - Fix to the refaddr compatibility where Scalar::Util is installed
          but is older than 1.18.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/META.yml new/YAML-Tiny-1.50/META.yml
--- old/YAML-Tiny-1.48/META.yml 2011-02-01 01:01:05.000000000 +0100
+++ new/YAML-Tiny-1.50/META.yml 2011-06-23 10:20:55.000000000 +0200
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               YAML-Tiny
-version:            1.48
+version:            1.50
 abstract:           Read/Write YAML files with as little code as possible
 author:
     - Adam Kennedy <[email protected]>
@@ -11,10 +11,6 @@
 build_requires:
     File::Spec:  0.80
     Test::More:  0.47
-    YAML:        0.72
-    YAML::Perl:  0.02
-    YAML::Syck:  1.17
-    YAML::XS:    0.34
 requires:
     perl:  5.004
 resources:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/Makefile.PL 
new/YAML-Tiny-1.50/Makefile.PL
--- old/YAML-Tiny-1.48/Makefile.PL      2011-02-01 00:59:23.000000000 +0100
+++ new/YAML-Tiny-1.50/Makefile.PL      2011-06-23 10:19:24.000000000 +0200
@@ -1,7 +1,7 @@
 use strict;
 BEGIN {
        require 5.003_96;
-       $main::VERSION = '1.48';
+       $main::VERSION = '1.50';
        # $main::VERSION = eval $main::VERSION;
 }
 use ExtUtils::MakeMaker ();
@@ -13,12 +13,6 @@
        BUILD_REQUIRES => {
                'File::Spec' => '0.80',
                'Test::More' => '0.47',
-               ($ENV{RELEASE_TESTING} ? (
-                       'YAML'       => '0.72',
-                       'YAML::Perl' => '0.02',
-                       'YAML::Syck' => '1.17',
-                       'YAML::XS'   => '0.34',
-               ) : ()),
        },
        AUTHOR           => 'Adam Kennedy <[email protected]>',
        LICENSE          => 'perl',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/lib/YAML/Tiny.pm 
new/YAML-Tiny-1.50/lib/YAML/Tiny.pm
--- old/YAML-Tiny-1.48/lib/YAML/Tiny.pm 2011-02-01 00:59:23.000000000 +0100
+++ new/YAML-Tiny-1.50/lib/YAML/Tiny.pm 2011-06-23 10:19:24.000000000 +0200
@@ -15,7 +15,7 @@
        require 5.004;
        require Exporter;
        require Carp;
-       $YAML::Tiny::VERSION   = '1.48';
+       $YAML::Tiny::VERSION   = '1.50';
        # $YAML::Tiny::VERSION   = eval $YAML::Tiny::VERSION;
        @YAML::Tiny::ISA       = qw{ Exporter  };
        @YAML::Tiny::EXPORT    = qw{ Load Dump };
@@ -458,7 +458,7 @@
                $string =~ s/([\x00-\x1f])/\\$UNPRINTABLE[ord($1)]/g;
                return qq|"$string"|;
        }
-       if ( $string =~ /(?:^\W|\s)/ or $QUOTE{$string} ) {
+       if ( $string =~ /(?:^\W|\s|:\z)/ or $QUOTE{$string} ) {
                return "'$string'";
        }
        return $string;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/t/03_regression.t 
new/YAML-Tiny-1.50/t/03_regression.t
--- old/YAML-Tiny-1.48/t/03_regression.t        2011-02-01 00:59:23.000000000 
+0100
+++ new/YAML-Tiny-1.50/t/03_regression.t        2011-06-23 10:19:24.000000000 
+0200
@@ -10,7 +10,7 @@
 
 use File::Spec::Functions ':ALL';
 use t::lib::Test;
-use Test::More tests(37, 0, 12);
+use Test::More tests(37, 0, 13);
 use YAML::Tiny qw{
        Load     Dump
        LoadFile DumpFile
@@ -701,3 +701,16 @@
 - 'Off'
 - 'OFF'
 END_YAML
+
+
+
+
+
+######################################################################
+# Always quote for scalars ending with :
+
+is_deeply(
+       YAML::Tiny->new( [ 'A:' ] )->write_string,
+       "---\n- 'A:'\n",
+       'Simple scalar ending in a colon is correctly quoted',
+);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-Tiny-1.48/xt/pmv.t new/YAML-Tiny-1.50/xt/pmv.t
--- old/YAML-Tiny-1.48/xt/pmv.t 2011-02-01 00:59:23.000000000 +0100
+++ new/YAML-Tiny-1.50/xt/pmv.t 2011-06-23 10:19:24.000000000 +0200
@@ -9,7 +9,7 @@
 }
 
 my @MODULES = (
-       'Perl::MinimumVersion 1.25',
+       'Perl::MinimumVersion 1.27',
        'Test::MinimumVersion 0.101080',
 );
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to