Hello community,

here is the log from the commit of package perl-YAML for openSUSE:Factory 
checked in at 2017-11-12 17:56:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-YAML (Old)
 and      /work/SRC/openSUSE:Factory/.perl-YAML.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-YAML"

Sun Nov 12 17:56:40 2017 rev:39 rq:539959 version:1.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-YAML/perl-YAML.changes      2017-02-22 
13:45:13.423303860 +0100
+++ /work/SRC/openSUSE:Factory/.perl-YAML.new/perl-YAML.changes 2017-11-12 
17:56:43.181115748 +0100
@@ -1,0 +2,9 @@
+Tue Oct 31 07:09:05 UTC 2017 - [email protected]
+
+- updated to 1.24
+   see /usr/share/doc/packages/perl-YAML/Changes
+
+  1.24 Mon Oct 30 20:31:53 CET 2017
+   - Fix $LoadCode (PR#180, PR#181, PR#182 by @mohawk2++)
+
+-------------------------------------------------------------------

Old:
----
  YAML-1.23.tar.gz

New:
----
  YAML-1.24.tar.gz

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

Other differences:
------------------
++++++ perl-YAML.spec ++++++
--- /var/tmp/diff_new_pack.GmlhUs/_old  2017-11-12 17:56:44.005085735 +0100
+++ /var/tmp/diff_new_pack.GmlhUs/_new  2017-11-12 17:56:44.009085590 +0100
@@ -17,14 +17,14 @@
 
 
 Name:           perl-YAML
-Version:        1.23
+Version:        1.24
 Release:        0
 %define cpan_name YAML
 Summary:        YAML Ain't Markup Languageā„¢
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/YAML/
-Source0:        
https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/T/TI/TINITA/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ YAML-1.23.tar.gz -> YAML-1.24.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/Changes new/YAML-1.24/Changes
--- old/YAML-1.23/Changes       2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/Changes       2017-10-30 20:32:06.000000000 +0100
@@ -1,3 +1,6 @@
+1.24 Mon Oct 30 20:31:53 CET 2017
+ - Fix $LoadCode (PR#180, PR#181, PR#182 by @mohawk2++)
+
 1.23 Sun Feb 19 22:07:57 CET 2017
  - Fix $YAML::Numify (empty values were converted to 0)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/MANIFEST new/YAML-1.24/MANIFEST
--- old/YAML-1.23/MANIFEST      2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/MANIFEST      2017-10-30 20:32:06.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.010.
 CONTRIBUTING
 Changes
 LICENSE
@@ -65,6 +65,7 @@
 t/io-handle.t
 t/issue-149.t
 t/issue-69.t
+t/load-code.t
 t/load-fails.t
 t/load-passes.t
 t/load-slides.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/META.json new/YAML-1.24/META.json
--- old/YAML-1.23/META.json     2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/META.json     2017-10-30 20:32:06.000000000 +0100
@@ -4,7 +4,7 @@
       "Ingy d\u00f6t Net <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150001",
+   "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 
2.150005",
    "license" : [
       "perl_5"
    ],
@@ -56,7 +56,7 @@
          "web" : "https://github.com/ingydotnet/yaml-pm";
       }
    },
-   "version" : "1.23",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0115"
+   "version" : "1.24",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/META.yml new/YAML-1.24/META.yml
--- old/YAML-1.23/META.yml      2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/META.yml      2017-10-30 20:32:06.000000000 +0100
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150001'
+generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 
2.150005'
 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.23'
-x_serialization_backend: 'YAML::Tiny version 1.69'
+version: '1.24'
+x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/Makefile.PL new/YAML-1.24/Makefile.PL
--- old/YAML-1.23/Makefile.PL   2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/Makefile.PL   2017-10-30 20:32:06.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.010.
 use strict;
 use warnings;
 
@@ -21,7 +21,7 @@
     "Test::More" => "0.88",
     "Test::YAML" => "1.05"
   },
-  "VERSION" => "1.23",
+  "VERSION" => "1.24",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/README new/YAML-1.24/README
--- old/YAML-1.23/README        2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/README        2017-10-30 20:32:06.000000000 +0100
@@ -4,7 +4,7 @@
 
 VERSION
 
-    This document describes YAML version 1.23.
+    This document describes YAML version 1.24.
 
 NOTE
 
@@ -371,12 +371,6 @@
       (much like Data::Dumper). If DumpCode is set to '1' or 'deparse',
       code references will be dumped as actual Perl code.
 
-      DumpCode can also be set to a subroutine reference so that you can
-      write your own serializing routine. YAML.pm passes you the code ref.
-      You pass back the serialization (as a string) and a format indicator.
-      The format indicator is a simple string like: 'deparse' or
-      'bytecode'.
-
     LoadCode
 
       LoadCode is the opposite of DumpCode. It tells YAML if and how to
@@ -384,11 +378,6 @@
       eval(). Since this is potentially risky, only use this option if you
       know where your YAML has been.
 
-      LoadCode can also be set to a subroutine reference so that you can
-      write your own deserializing routine. YAML.pm passes the
-      serialization (as a string) and a format indicator. You pass back the
-      code reference.
-
     Preserve
 
       When set to true, this option tells the Loader to load hashes into
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Any.pm 
new/YAML-1.24/lib/YAML/Any.pm
--- old/YAML-1.23/lib/YAML/Any.pm       2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Any.pm       2017-10-30 20:32:06.000000000 +0100
@@ -1,6 +1,6 @@
 use strict; use warnings;
 package YAML::Any;
-our $VERSION = '1.23';
+our $VERSION = '1.24';
 
 use Exporter ();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Any.pod 
new/YAML-1.24/lib/YAML/Any.pod
--- old/YAML-1.23/lib/YAML/Any.pod      2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Any.pod      2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Dumper/Base.pod 
new/YAML-1.24/lib/YAML/Dumper/Base.pod
--- old/YAML-1.23/lib/YAML/Dumper/Base.pod      2017-02-19 22:08:07.000000000 
+0100
+++ new/YAML-1.24/lib/YAML/Dumper/Base.pod      2017-10-30 20:32:06.000000000 
+0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Dumper.pod 
new/YAML-1.24/lib/YAML/Dumper.pod
--- old/YAML-1.23/lib/YAML/Dumper.pod   2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Dumper.pod   2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Error.pod 
new/YAML-1.24/lib/YAML/Error.pod
--- old/YAML-1.23/lib/YAML/Error.pod    2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Error.pod    2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Loader/Base.pod 
new/YAML-1.24/lib/YAML/Loader/Base.pod
--- old/YAML-1.23/lib/YAML/Loader/Base.pod      2017-02-19 22:08:07.000000000 
+0100
+++ new/YAML-1.24/lib/YAML/Loader/Base.pod      2017-10-30 20:32:06.000000000 
+0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Loader.pm 
new/YAML-1.24/lib/YAML/Loader.pm
--- old/YAML-1.23/lib/YAML/Loader.pm    2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Loader.pm    2017-10-30 20:32:06.000000000 +0100
@@ -110,7 +110,7 @@
     my $self = shift;
     my $preface = $self->preface;
     $self->preface('');
-    my ($node, $type, $indicator, $escape, $chomp) = ('') x 5;
+    my ($node, $type, $indicator, $chomp, $parsed_inline) = ('') x 5;
     my ($anchor, $alias, $explicit, $implicit, $class) = ('') x 5;
     ($anchor, $alias, $explicit, $implicit, $preface) =
       $self->_parse_qualifiers($preface);
@@ -143,6 +143,7 @@
     }
     elsif (length $self->inline) {
         $node = $self->_parse_inline(1, $implicit, $explicit);
+        $parsed_inline = 1;
         if (length $self->inline) {
             $self->die('YAML_PARSE_ERR_SINGLE_LINE');
         }
@@ -193,7 +194,7 @@
             CORE::bless $node, $class;
         }
         else {
-            $node = $self->_parse_explicit($node, $explicit);
+            $node = $self->_parse_explicit($node, $explicit) if 
!$parsed_inline;
         }
     }
     if ($anchor) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Loader.pod 
new/YAML-1.24/lib/YAML/Loader.pod
--- old/YAML-1.23/lib/YAML/Loader.pod   2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Loader.pod   2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Marshall.pod 
new/YAML-1.24/lib/YAML/Marshall.pod
--- old/YAML-1.23/lib/YAML/Marshall.pod 2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Marshall.pod 2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Node.pod 
new/YAML-1.24/lib/YAML/Node.pod
--- old/YAML-1.23/lib/YAML/Node.pod     2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Node.pod     2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Tag.pod 
new/YAML-1.24/lib/YAML/Tag.pod
--- old/YAML-1.23/lib/YAML/Tag.pod      2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Tag.pod      2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML/Types.pod 
new/YAML-1.24/lib/YAML/Types.pod
--- old/YAML-1.23/lib/YAML/Types.pod    2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML/Types.pod    2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML.pm new/YAML-1.24/lib/YAML.pm
--- old/YAML-1.23/lib/YAML.pm   2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML.pm   2017-10-30 20:32:06.000000000 +0100
@@ -1,5 +1,5 @@
 package YAML;
-our $VERSION = '1.23';
+our $VERSION = '1.24';
 
 use YAML::Mo;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/lib/YAML.pod new/YAML-1.24/lib/YAML.pod
--- old/YAML-1.23/lib/YAML.pod  2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/lib/YAML.pod  2017-10-30 20:32:06.000000000 +0100
@@ -1,7 +1,7 @@
 =pod
 
 =for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.43.
+DO NOT EDIT. This Pod was generated by Swim v0.1.46.
 See http://github.com/ingydotnet/swim-pm#readme
 
 =encoding utf8
@@ -12,7 +12,7 @@
 
 =head1 VERSION
 
-This document describes L<YAML> version B<1.23>.
+This document describes L<YAML> version B<1.24>.
 
 =head1 NOTE
 
@@ -383,11 +383,6 @@
 Data::Dumper). If DumpCode is set to '1' or 'deparse', code references will be
 dumped as actual Perl code.
 
-DumpCode can also be set to a subroutine reference so that you can write your
-own serializing routine. YAML.pm passes you the code ref. You pass back the
-serialization (as a string) and a format indicator. The format indicator is a
-simple string like: 'deparse' or 'bytecode'.
-
 =item LoadCode
 
 LoadCode is the opposite of DumpCode. It tells YAML if and how to
@@ -395,10 +390,6 @@
 C<eval()>. Since this is potentially risky, only use this option if you know
 where your YAML has been.
 
-LoadCode can also be set to a subroutine reference so that you can write your
-own deserializing routine. YAML.pm passes the serialization (as a string) and
-a format indicator. You pass back the code reference.
-
 =item Preserve
 
 When set to true, this option tells the Loader to load hashes into YAML::Node
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/t/bugs-rt.t new/YAML-1.24/t/bugs-rt.t
--- old/YAML-1.23/t/bugs-rt.t   2017-02-19 22:08:07.000000000 +0100
+++ new/YAML-1.24/t/bugs-rt.t   2017-10-30 20:32:06.000000000 +0100
@@ -1,6 +1,6 @@
 use strict;
 use lib -e 't' ? 't' : 'test';
-use TestYAML tests => 43;
+use TestYAML tests => 42;
 
 run_yaml_tests;
 
@@ -204,23 +204,6 @@
 +++ perl
 
 
-
-=== Ticket #12955 DumpCode claims to support a code ref to serialize code, but 
doesn't
-+++ skip_this_for_now
-The DumpCode option says you can set it to a code ref to control the
-serializing yourself, but this doesn't work.
-
-    $ perl -MYAML -we '
-        $YAML::DumpCode = sub { return "dumped code $_[0]", "test" };
-        print Dump(sub { "foo" });'
-    --- !!perl/code "{\n    'foo';\n}\n"
-    $ _
-
-YAML::Transfer::code::yaml_dump() doesn't look to have any code to
-support a DumpCode which is a code ref, it only tests it as a boolean.
-+++ perl
-
-
 
 === Ticket #12959-a bug - nested inline collections with extra blanks
 +++ function: load_passes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-1.23/t/load-code.t new/YAML-1.24/t/load-code.t
--- old/YAML-1.23/t/load-code.t 1970-01-01 01:00:00.000000000 +0100
+++ new/YAML-1.24/t/load-code.t 2017-10-30 20:32:06.000000000 +0100
@@ -0,0 +1,21 @@
+use strict;
+use lib -e 't' ? 't' : 'test';
+use TestYAML tests => 4;
+
+run_roundtrip_nyn('dumper');
+
+__DATA__
+
+=== Actually test LoadCode functionality, block
++++ perl: $YAML::UseCode = 1; package main; no strict; sub { "really long test 
string that's longer than 30" }
++++ yaml
+--- !!perl/code |
+{
+    use warnings;
+    q[really long test string that's longer than 30];
+}
+
+=== Actually test LoadCode functionality, line
++++ perl: $YAML::UseCode = 1; package main; no strict; sub { 42 }
++++ yaml
+--- !!perl/code "{\n    use warnings;\n    42;\n}\n"


Reply via email to