Hello community,

here is the log from the commit of package perl-YAML for openSUSE:Factory 
checked in at 2016-11-22 18:57:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-YAML (Old)
 and      /work/SRC/openSUSE:Factory/.perl-YAML.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-YAML"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-YAML/perl-YAML.changes      2016-07-18 
21:22:25.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-YAML.new/perl-YAML.changes 2016-11-22 
18:57:36.000000000 +0100
@@ -1,0 +2,14 @@
+Sat Nov 19 07:36:05 UTC 2016 - co...@suse.com
+
+- updated to 1.19
+   see /usr/share/doc/packages/perl-YAML/Changes
+
+  1.19 Fri Nov 18 19:46:44 CET 2016
+   - Apply PR/164 pod (link to YAML::Shell)
+   - Apply PR/151 Fix infinite loop for aliases without a name @bubaflub++
+   - Apply PR/142 Improve error messages @werekraken++
+   - Apply PR/162 Improve error messages
+   - Apply PR/163 Trailing spaces after inline seq/map work now
+   - Apply PR/154 Add test case for trailing comments @Varadinsky++
+
+-------------------------------------------------------------------

Old:
----
  YAML-1.18.tar.gz

New:
----
  YAML-1.19.tar.gz

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

Other differences:
------------------
++++++ perl-YAML.spec ++++++
--- /var/tmp/diff_new_pack.Ye0wIW/_old  2016-11-22 18:57:37.000000000 +0100
+++ /var/tmp/diff_new_pack.Ye0wIW/_new  2016-11-22 18:57:37.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-YAML
-Version:        1.18
+Version:        1.19
 Release:        0
 %define cpan_name YAML
 Summary:        YAML Ain't Markup Languageā„¢

++++++ YAML-1.18.tar.gz -> YAML-1.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/Changes new/YAML-1.19/Changes
--- old/YAML-1.18/Changes       2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/Changes       2016-11-18 19:46:54.000000000 +0100
@@ -1,3 +1,11 @@
+1.19 Fri Nov 18 19:46:44 CET 2016
+ - Apply PR/164 pod (link to YAML::Shell)
+ - Apply PR/151 Fix infinite loop for aliases without a name @bubaflub++
+ - Apply PR/142 Improve error messages @werekraken++
+ - Apply PR/162 Improve error messages
+ - Apply PR/163 Trailing spaces after inline seq/map work now
+ - Apply PR/154 Add test case for trailing comments @Varadinsky++
+
 1.18 Fri Jul  8 14:52:26 UTC 2016
  - Apply PR/161 @perlpunk++
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/MANIFEST new/YAML-1.19/MANIFEST
--- old/YAML-1.18/MANIFEST      2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/MANIFEST      2016-11-18 19:46:54.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.006.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.008.
 CONTRIBUTING
 Changes
 LICENSE
@@ -63,6 +63,7 @@
 t/global-api.t
 t/inbox.t
 t/issue-149.t
+t/issue-69.t
 t/load-fails.t
 t/load-passes.t
 t/load-slides.t
@@ -79,6 +80,7 @@
 t/svk-config.yaml
 t/svk.t
 t/test.t
+t/trailing_comment_bug.t
 xt/meta.t
 xt/pmv.t
 xt/pod.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/META.json new/YAML-1.19/META.json
--- old/YAML-1.18/META.json     2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/META.json     2016-11-18 19:46:54.000000000 +0100
@@ -4,7 +4,7 @@
       "Ingy d\u00f6t Net <i...@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.006, CPAN::Meta::Converter version 
2.150005",
+   "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150001",
    "license" : [
       "perl_5"
    ],
@@ -56,7 +56,7 @@
          "web" : "https://github.com/ingydotnet/yaml-pm";
       }
    },
-   "version" : "1.18",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0217"
+   "version" : "1.19",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0115"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/META.yml new/YAML-1.19/META.yml
--- old/YAML-1.18/META.yml      2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/META.yml      2016-11-18 19:46:54.000000000 +0100
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.006, CPAN::Meta::Converter version 
2.150005'
+generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150001'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,5 +26,5 @@
   bugtracker: https://github.com/ingydotnet/yaml-pm/issues
   homepage: https://github.com/ingydotnet/yaml-pm
   repository: https://github.com/ingydotnet/yaml-pm.git
-version: '1.18'
+version: '1.19'
 x_serialization_backend: 'YAML::Tiny version 1.69'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/Makefile.PL new/YAML-1.19/Makefile.PL
--- old/YAML-1.18/Makefile.PL   2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/Makefile.PL   2016-11-18 19:46:54.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.006.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.008.
 use strict;
 use warnings;
 
@@ -21,7 +21,7 @@
     "Test::More" => "0.88",
     "Test::YAML" => "1.05"
   },
-  "VERSION" => "1.18",
+  "VERSION" => "1.19",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/README new/YAML-1.19/README
--- old/YAML-1.18/README        2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/README        2016-11-18 19:46:54.000000000 +0100
@@ -4,7 +4,7 @@
 
 VERSION
 
-    This document describes YAML version 1.18.
+    This document describes YAML version 1.19.
 
 NOTE
 
@@ -637,10 +637,10 @@
 
 YSH - THE YAML SHELL
 
-    The YAML distribution ships with a script called 'ysh', the YAML shell.
-    ysh provides a simple, interactive way to play with YAML. If you type
-    in Perl code, it displays the result in YAML. If you type in YAML it
-    turns it into Perl code.
+    The YAML::Shell distribution provides script called 'ysh', the YAML
+    shell. ysh provides a simple, interactive way to play with YAML. If you
+    type in Perl code, it displays the result in YAML. If you type in YAML
+    it turns it into Perl code.
 
     To run ysh, (assuming you installed it along with YAML.pm) simply type:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/lib/YAML/Any.pm 
new/YAML-1.19/lib/YAML/Any.pm
--- old/YAML-1.18/lib/YAML/Any.pm       2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/lib/YAML/Any.pm       2016-11-18 19:46:54.000000000 +0100
@@ -1,6 +1,6 @@
 use strict; use warnings;
 package YAML::Any;
-our $VERSION = '1.18';
+our $VERSION = '1.19';
 
 use Exporter ();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/lib/YAML/Error.pm 
new/YAML-1.19/lib/YAML/Error.pm
--- old/YAML-1.18/lib/YAML/Error.pm     2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/lib/YAML/Error.pm     2016-11-18 19:46:54.000000000 +0100
@@ -32,7 +32,7 @@
     $error_messages;
 }
 
-%$error_messages = map {s/^\s+//;$_} split "\n", <<'...';
+%$error_messages = map {s/^\s+//;s/\\n/\n/;$_} split "\n", <<'...';
 YAML_PARSE_ERR_BAD_CHARS
   Invalid characters in stream. This parser only supports printable ASCII
 YAML_PARSE_ERR_BAD_MAJOR_VERSION
@@ -67,6 +67,8 @@
   Can't concatenate to YAML file %s
 YAML_DUMP_ERR_FILE_OUTPUT
   Couldn't open %s for output:\n%s
+YAML_DUMP_ERR_FILE_OUTPUT_CLOSE
+  Error closing %s:\n%s
 YAML_DUMP_ERR_NO_HEADER
   With UseHeader=0, the node must be a plain hash or array
 YAML_DUMP_WARN_BAD_NODE_TYPE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/lib/YAML/Loader.pm 
new/YAML-1.19/lib/YAML/Loader.pm
--- old/YAML-1.18/lib/YAML/Loader.pm    2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/lib/YAML/Loader.pm    2016-11-18 19:46:54.000000000 +0100
@@ -225,7 +225,7 @@
             $self->die('YAML_PARSE_ERR_MANY_IMPLICIT') if $implicit;
             $implicit = 1;
         }
-        elsif ($preface =~ s/^\&([^ ,:]+)\s*//) {
+        elsif ($preface =~ s/^\&([^ ,:]*)\s*//) {
             $token = $1;
             $self->die('YAML_PARSE_ERR_BAD_ANCHOR')
               unless $token =~ /^[a-zA-Z0-9]+$/;
@@ -233,7 +233,7 @@
             $self->die('YAML_PARSE_ERR_ANCHOR_ALIAS') if $alias;
             $anchor = $token;
         }
-        elsif ($preface =~ s/^\*([^ ,:]+)\s*//) {
+        elsif ($preface =~ s/^\*([^ ,:]*)\s*//) {
             $token = $1;
             $self->die('YAML_PARSE_ERR_BAD_ALIAS')
               unless $token =~ /^[a-zA-Z0-9]+$/;
@@ -470,7 +470,7 @@
 
     $self->die('YAML_PARSE_ERR_INLINE_MAP')
       unless $self->{inline} =~ s/^\{\s*//;
-    while (not $self->{inline} =~ s/^\s*\}//) {
+    while (not $self->{inline} =~ s/^\s*\}\s*//) {
         my $key = $self->_parse_inline();
         $self->die('YAML_PARSE_ERR_INLINE_MAP')
           unless $self->{inline} =~ s/^\: \s*//;
@@ -497,7 +497,7 @@
 
     $self->die('YAML_PARSE_ERR_INLINE_SEQUENCE')
       unless $self->{inline} =~ s/^\[\s*//;
-    while (not $self->{inline} =~ s/^\s*\]//) {
+    while (not $self->{inline} =~ s/^\s*\]\s*//) {
         my $value = $self->_parse_inline();
         push @$node, $value;
         next if $self->inline =~ /^\s*\]/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/lib/YAML.pm new/YAML-1.19/lib/YAML.pm
--- old/YAML-1.18/lib/YAML.pm   2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/lib/YAML.pm   2016-11-18 19:46:54.000000000 +0100
@@ -1,5 +1,5 @@
 package YAML;
-our $VERSION = '1.18';
+our $VERSION = '1.19';
 
 use YAML::Mo;
 
@@ -53,11 +53,18 @@
             ($mode, $filename) = ($1, $2);
         }
         open $OUT, $mode, $filename
-          or YAML::Mo::Object->die('YAML_DUMP_ERR_FILE_OUTPUT', $filename, $!);
+          or YAML::Mo::Object->die('YAML_DUMP_ERR_FILE_OUTPUT', $filename, 
"$!");
     }
     binmode $OUT, ':utf8';  # if $Config{useperlio} eq 'define';
     local $/ = "\n"; # reset special to "sane"
     print $OUT Dump(@_);
+    unless (ref $filename eq 'GLOB') {
+        close $OUT
+          or do {
+              my $errsav = $!;
+              YAML::Mo::Object->die('YAML_DUMP_ERR_FILE_OUTPUT_CLOSE', 
$filename, $errsav);
+          }
+    }
 }
 
 sub LoadFile {
@@ -68,7 +75,7 @@
     }
     else {
         open $IN, '<', $filename
-          or YAML::Mo::Object->die('YAML_LOAD_ERR_FILE_INPUT', $filename, $!);
+          or YAML::Mo::Object->die('YAML_LOAD_ERR_FILE_INPUT', $filename, 
"$!");
     }
     binmode $IN, ':utf8';  # if $Config{useperlio} eq 'define';
     return Load(do { local $/; <$IN> });
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/lib/YAML.pod new/YAML-1.19/lib/YAML.pod
--- old/YAML-1.18/lib/YAML.pod  2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/lib/YAML.pod  2016-11-18 19:46:54.000000000 +0100
@@ -12,7 +12,7 @@
 
 =head1 VERSION
 
-This document describes L<YAML> version B<1.18>.
+This document describes L<YAML> version B<1.19>.
 
 =head1 NOTE
 
@@ -645,8 +645,8 @@
 
 =head1 YSH - THE YAML SHELL
 
-The YAML distribution ships with a script called 'ysh', the YAML shell. ysh
-provides a simple, interactive way to play with YAML. If you type in Perl
+The L<YAML::Shell> distribution provides script called 'ysh', the YAML shell.
+ysh provides a simple, interactive way to play with YAML. If you type in Perl
 code, it displays the result in YAML. If you type in YAML it turns it into
 Perl code.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/t/author-pod-syntax.t 
new/YAML-1.19/t/author-pod-syntax.t
--- old/YAML-1.18/t/author-pod-syntax.t 2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/t/author-pod-syntax.t 2016-11-18 19:46:54.000000000 +0100
@@ -2,7 +2,7 @@
 
 BEGIN {
   unless ($ENV{AUTHOR_TESTING}) {
-    print "1..0 # SKIP these tests are for testing by the author\n";
+    print qq{1..0 # SKIP these tests are for testing by the author\n};
     exit
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/t/errors.t new/YAML-1.19/t/errors.t
--- old/YAML-1.18/t/errors.t    2016-07-08 16:52:37.000000000 +0200
+++ new/YAML-1.19/t/errors.t    2016-11-18 19:46:54.000000000 +0100
@@ -1,6 +1,6 @@
 use strict;
 use lib -e 't' ? 't' : 'test';
-use TestYAML tests => 35;
+use TestYAML tests => 37;
 $^W = 1;
 
 use YAML::Error;
@@ -106,6 +106,12 @@
 ---
 - &X=y 42
 
+=== YAML_PARSE_ERR_BAD_ANCHOR
++++ error: YAML_PARSE_ERR_BAD_ANCHOR
++++ yaml
+---
+- &
+
 #---
 #error: YAML_PARSE_ERR_BAD_NODEX
 #load: |
@@ -198,6 +204,12 @@
 ---
 - *foo=bar
 
+=== YAML_PARSE_ERR_BAD_ALIAS
++++ error: YAML_PARSE_ERR_BAD_ALIAS
++++ yaml
+---
+- *
+
 === YAML_PARSE_ERR_MANY_ALIAS
 +++ error: YAML_PARSE_ERR_MANY_ALIAS
 +++ yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/t/issue-69.t new/YAML-1.19/t/issue-69.t
--- old/YAML-1.18/t/issue-69.t  1970-01-01 01:00:00.000000000 +0100
+++ new/YAML-1.19/t/issue-69.t  2016-11-18 19:46:54.000000000 +0100
@@ -0,0 +1,10 @@
+use Test::More tests => 2;
+use YAML;
+
+my $seq = eval { YAML::Load("foo: [bar] "); 1 };
+my $map = eval { YAML::Load("foo: {bar: 42}  "); 1 };
+
+ok($seq, "YAML inline sequence with trailing space loads");
+ok($map, "YAML inline mapping with trailing space loads");
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.18/t/trailing_comment_bug.t 
new/YAML-1.19/t/trailing_comment_bug.t
--- old/YAML-1.18/t/trailing_comment_bug.t      1970-01-01 01:00:00.000000000 
+0100
+++ new/YAML-1.19/t/trailing_comment_bug.t      2016-11-18 19:46:54.000000000 
+0100
@@ -0,0 +1,19 @@
+use strict;
+use warnings;
+
+# todo test for github issue:
+# Trailing comments aren't ignored #143
+
+# https://github.com/ingydotnet/yaml-pm/issues/143
+
+use Test::More tests => 1;
+
+use YAML;
+
+TODO: {
+
+       local $TODO = 'This bug only happens when using YAML (YAML::Old) dist.';
+
+       is( Load ("--- 123 # comment\n"), '123', 'Ignore trailing comment');
+
+}


Reply via email to