Hello community,

here is the log from the commit of package perl-YAML-LibYAML-API for 
openSUSE:Factory checked in at 2020-08-21 19:18:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-YAML-LibYAML-API (Old)
 and      /work/SRC/openSUSE:Factory/.perl-YAML-LibYAML-API.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-YAML-LibYAML-API"

Fri Aug 21 19:18:42 2020 rev:4 rq:828480 version:0.010

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-YAML-LibYAML-API/perl-YAML-LibYAML-API.changes  
    2020-05-20 18:46:19.913399534 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-YAML-LibYAML-API.new.3399/perl-YAML-LibYAML-API.changes
    2020-08-21 19:19:13.996886107 +0200
@@ -1,0 +2,12 @@
+Thu Aug 20 03:11:33 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 0.010
+   see /usr/share/doc/packages/perl-YAML-LibYAML-API/Changes
+
+  0.010 2020-08-19 22:39:12+02:00
+
+      - Update to libyaml 0.2.5
+      - Fix constants for flow style/block style
+      - Emitter: Support flow style collections
+
+-------------------------------------------------------------------

Old:
----
  YAML-LibYAML-API-0.009.tar.gz

New:
----
  YAML-LibYAML-API-0.010.tar.gz

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

Other differences:
------------------
++++++ perl-YAML-LibYAML-API.spec ++++++
--- /var/tmp/diff_new_pack.smPsD3/_old  2020-08-21 19:19:15.168886731 +0200
+++ /var/tmp/diff_new_pack.smPsD3/_new  2020-08-21 19:19:15.172886732 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-YAML-LibYAML-API
-Version:        0.009
+Version:        0.010
 Release:        0
 %define cpan_name YAML-LibYAML-API
 Summary:        Wrapper around the C libyaml library
@@ -30,7 +30,7 @@
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Test::More) >= 0.98
-BuildRequires:  perl(YAML::PP) >= 0.018
+BuildRequires:  perl(YAML::PP) >= 0.024
 BuildRequires:  perl(YAML::PP::Common)
 Requires:       perl(YAML::PP::Common)
 %{perl_requires}

++++++ YAML-LibYAML-API-0.009.tar.gz -> YAML-LibYAML-API-0.010.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/Changes 
new/YAML-LibYAML-API-0.010/Changes
--- old/YAML-LibYAML-API-0.009/Changes  2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/Changes  2020-08-19 22:45:07.000000000 +0200
@@ -1,5 +1,11 @@
 Revision history for Perl module YAML::LibYAML::API
 
+0.010 2020-08-19 22:39:12+02:00
+
+    - Update to libyaml 0.2.5
+    - Fix constants for flow style/block style
+    - Emitter: Support flow style collections
+
 0.009 2020-05-16 15:28:05+02:00
 
     - Support emitting version directives
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/LibYAML/config.h 
new/YAML-LibYAML-API-0.010/LibYAML/config.h
--- old/YAML-LibYAML-API-0.009/LibYAML/config.h 2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/config.h 2020-08-19 22:45:07.000000000 
+0200
@@ -44,7 +44,7 @@
 #define PACKAGE_NAME "yaml"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "yaml 0.2.4"
+#define PACKAGE_STRING "yaml 0.2.5"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "yaml"
@@ -53,13 +53,13 @@
 #define PACKAGE_URL ""
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "0.2.4"
+#define PACKAGE_VERSION "0.2.5"
 
 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1
 
 /* Version number of package */
-#define YAML_VERSION "0.2.4"
+#define YAML_VERSION "0.2.5"
 
 /* Define the major version number. */
 #define YAML_VERSION_MAJOR 0
@@ -68,10 +68,10 @@
 #define YAML_VERSION_MINOR 2
 
 /* Define the patch version number. */
-#define YAML_VERSION_PATCH 4
+#define YAML_VERSION_PATCH 5
 
 /* Define the version string. */
-#define YAML_VERSION_STRING "0.2.4"
+#define YAML_VERSION_STRING "0.2.5"
 
 /* Define to empty if `const' does not conform to ANSI C. */
 /* #undef const */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/LibYAML/emitter.c 
new/YAML-LibYAML-API-0.010/LibYAML/emitter.c
--- old/YAML-LibYAML-API-0.009/LibYAML/emitter.c        2020-05-16 
15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/emitter.c        2020-08-19 
22:45:07.000000000 +0200
@@ -1023,6 +1023,8 @@
 {
     if (!yaml_emitter_process_anchor(emitter))
         return 0;
+    if (emitter->simple_key_context)
+        if (!PUT(emitter, ' ')) return 0;
     emitter->state = POP(emitter, emitter->states);
 
     return 1;
@@ -1923,7 +1925,17 @@
 
     STRING_ASSIGN(string, value, length);
 
-    if (!emitter->whitespace) {
+    /**
+     * Avoid trailing spaces for empty values in block mode.
+     * In flow mode, we still want the space to prevent ambiguous things
+     * like {a:}.
+     * Currently, the emitter forbids any plain empty scalar in flow mode
+     * (e.g. it outputs {a: ''} instead), so emitter->flow_level will
+     * never be true here.
+     * But if the emitter is ever changed to allow emitting empty values,
+     * the check for flow_level is already here.
+     */
+    if (!emitter->whitespace && (length || emitter->flow_level)) {
         if (!PUT(emitter, ' ')) return 0;
     }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/LibYAML/etc/perl_libyaml.c 
new/YAML-LibYAML-API-0.010/LibYAML/etc/perl_libyaml.c
--- old/YAML-LibYAML-API-0.009/LibYAML/etc/perl_libyaml.c       2020-05-16 
15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/etc/perl_libyaml.c       2020-08-19 
22:45:07.000000000 +0200
@@ -342,14 +342,14 @@
         }
         else if (strEQ(type, "mapping_start_event")) {
             ok = yaml_mapping_start_event_initialize(
-                &event, anchor_name, tag_name, 0, 0);
+                &event, anchor_name, tag_name, 0, style);
         }
         else if (strEQ(type, "mapping_end_event")) {
             ok = yaml_mapping_end_event_initialize(&event);
         }
         else if (strEQ(type, "sequence_start_event")) {
             ok = yaml_sequence_start_event_initialize(
-                &event, anchor_name, tag_name, 0, 0);
+                &event, anchor_name, tag_name, 0, style);
         }
         else if (strEQ(type, "sequence_end_event")) {
             ok = yaml_sequence_end_event_initialize(&event);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/YAML-LibYAML-API-0.009/LibYAML/lib/YAML/LibYAML/API/XS.pm 
new/YAML-LibYAML-API-0.010/LibYAML/lib/YAML/LibYAML/API/XS.pm
--- old/YAML-LibYAML-API-0.009/LibYAML/lib/YAML/LibYAML/API/XS.pm       
2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/lib/YAML/LibYAML/API/XS.pm       
2020-08-19 22:45:07.000000000 +0200
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.009'; # VERSION
+our $VERSION = '0.010'; # VERSION
 
 use XSLoader;
 XSLoader::load('YAML::LibYAML::API::XS', $VERSION);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/LibYAML/scanner.c 
new/YAML-LibYAML-API-0.010/LibYAML/scanner.c
--- old/YAML-LibYAML-API-0.009/LibYAML/scanner.c        2020-05-16 
15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/scanner.c        2020-08-19 
22:45:07.000000000 +0200
@@ -712,7 +712,7 @@
         yaml_mark_t start_mark, yaml_char_t **handle);
 
 static int
-yaml_parser_scan_tag_uri(yaml_parser_t *parser, int directive,
+yaml_parser_scan_tag_uri(yaml_parser_t *parser, int uri_char, int directive,
         yaml_char_t *head, yaml_mark_t start_mark, yaml_char_t **uri);
 
 static int
@@ -2293,7 +2293,7 @@
 
     /* Scan a prefix. */
 
-    if (!yaml_parser_scan_tag_uri(parser, 1, NULL, start_mark, &prefix_value))
+    if (!yaml_parser_scan_tag_uri(parser, 1, 1, NULL, start_mark, 
&prefix_value))
         goto error;
 
     /* Expect a whitespace or line break. */
@@ -2411,7 +2411,7 @@
 
         /* Consume the tag value. */
 
-        if (!yaml_parser_scan_tag_uri(parser, 0, NULL, start_mark, &suffix))
+        if (!yaml_parser_scan_tag_uri(parser, 1, 0, NULL, start_mark, &suffix))
             goto error;
 
         /* Check for '>' and eat it. */
@@ -2439,14 +2439,14 @@
         {
             /* Scan the suffix now. */
 
-            if (!yaml_parser_scan_tag_uri(parser, 0, NULL, start_mark, 
&suffix))
+            if (!yaml_parser_scan_tag_uri(parser, 0, 0, NULL, start_mark, 
&suffix))
                 goto error;
         }
         else
         {
             /* It wasn't a handle after all.  Scan the rest of the tag. */
 
-            if (!yaml_parser_scan_tag_uri(parser, 0, handle, start_mark, 
&suffix))
+            if (!yaml_parser_scan_tag_uri(parser, 0, 0, handle, start_mark, 
&suffix))
                 goto error;
 
             /* Set the handle to '!'. */
@@ -2475,9 +2475,11 @@
     if (!CACHE(parser, 1)) goto error;
 
     if (!IS_BLANKZ(parser->buffer)) {
-        yaml_parser_set_scanner_error(parser, "while scanning a tag",
-                start_mark, "did not find expected whitespace or line break");
-        goto error;
+        if (!parser->flow_level || !CHECK(parser->buffer, ',') ) {
+            yaml_parser_set_scanner_error(parser, "while scanning a tag",
+                    start_mark, "did not find expected whitespace or line 
break");
+            goto error;
+        }
     }
 
     end_mark = parser->mark;
@@ -2566,7 +2568,7 @@
  */
 
 static int
-yaml_parser_scan_tag_uri(yaml_parser_t *parser, int directive,
+yaml_parser_scan_tag_uri(yaml_parser_t *parser, int uri_char, int directive,
         yaml_char_t *head, yaml_mark_t start_mark, yaml_char_t **uri)
 {
     size_t length = head ? strlen((char *)head) : 0;
@@ -2602,8 +2604,11 @@
      * The set of characters that may appear in URI is as follows:
      *
      *      '0'-'9', 'A'-'Z', 'a'-'z', '_', '-', ';', '/', '?', ':', '@', '&',
-     *      '=', '+', '$', ',', '.', '!', '~', '*', '\'', '(', ')', '[', ']',
-     *      '%'.
+     *      '=', '+', '$', '.', '!', '~', '*', '\'', '(', ')', '%'.
+     *
+     * If we are inside a verbatim tag <...> (parameter uri_char is true)
+     * then also the following flow indicators are allowed:
+     *      ',', '[', ']'
      */
 
     while (IS_ALPHA(parser->buffer) || CHECK(parser->buffer, ';')
@@ -2611,12 +2616,15 @@
             || CHECK(parser->buffer, ':') || CHECK(parser->buffer, '@')
             || CHECK(parser->buffer, '&') || CHECK(parser->buffer, '=')
             || CHECK(parser->buffer, '+') || CHECK(parser->buffer, '$')
-            || CHECK(parser->buffer, ',') || CHECK(parser->buffer, '.')
+            || CHECK(parser->buffer, '.') || CHECK(parser->buffer, '%')
             || CHECK(parser->buffer, '!') || CHECK(parser->buffer, '~')
             || CHECK(parser->buffer, '*') || CHECK(parser->buffer, '\'')
             || CHECK(parser->buffer, '(') || CHECK(parser->buffer, ')')
-            || CHECK(parser->buffer, '[') || CHECK(parser->buffer, ']')
-            || CHECK(parser->buffer, '%'))
+            || (uri_char && (
+                CHECK(parser->buffer, ',')
+                || CHECK(parser->buffer, '[') || CHECK(parser->buffer, ']')
+                )
+            ))
     {
         /* Check if it is a URI-escape sequence. */
 
@@ -3457,7 +3465,7 @@
             if ((CHECK(parser->buffer, ':') && IS_BLANKZ_AT(parser->buffer, 1))
                     || (parser->flow_level &&
                         (CHECK(parser->buffer, ',')
-                         || CHECK(parser->buffer, '?') || 
CHECK(parser->buffer, '[')
+                         || CHECK(parser->buffer, '[')
                          || CHECK(parser->buffer, ']') || 
CHECK(parser->buffer, '{')
                          || CHECK(parser->buffer, '}'))))
                 break;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/LibYAML/yaml.h 
new/YAML-LibYAML-API-0.010/LibYAML/yaml.h
--- old/YAML-LibYAML-API-0.009/LibYAML/yaml.h   2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/LibYAML/yaml.h   2020-08-19 22:45:07.000000000 
+0200
@@ -1020,6 +1020,7 @@
     YAML_PARSE_DOCUMENT_CONTENT_STATE,
     /** Expect DOCUMENT-END. */
     YAML_PARSE_DOCUMENT_END_STATE,
+
     /** Expect a block node. */
     YAML_PARSE_BLOCK_NODE_STATE,
     /** Expect a block node or indentless sequence. */
@@ -1030,6 +1031,7 @@
     YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE,
     /** Expect an entry of a block sequence. */
     YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE,
+
     /** Expect an entry of an indentless sequence. */
     YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE,
     /** Expect the first key of a block mapping. */
@@ -1040,6 +1042,7 @@
     YAML_PARSE_BLOCK_MAPPING_VALUE_STATE,
     /** Expect the first entry of a flow sequence. */
     YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE,
+
     /** Expect an entry of a flow sequence. */
     YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE,
     /** Expect a key of an ordered mapping. */
@@ -1051,6 +1054,7 @@
     /** Expect the first key of a flow mapping. */
     YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE,
     /** Expect a key of a flow mapping. */
+
     YAML_PARSE_FLOW_MAPPING_KEY_STATE,
     /** Expect a value of a flow mapping. */
     YAML_PARSE_FLOW_MAPPING_VALUE_STATE,
@@ -1489,6 +1493,7 @@
     YAML_EMIT_DOCUMENT_CONTENT_STATE,
     /** Expect DOCUMENT-END. */
     YAML_EMIT_DOCUMENT_END_STATE,
+
     /** Expect the first item of a flow sequence. */
     YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE,
     /** Expect an item of a flow sequence. */
@@ -1499,6 +1504,7 @@
     YAML_EMIT_FLOW_MAPPING_KEY_STATE,
     /** Expect a value for a simple key of a flow mapping. */
     YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE,
+
     /** Expect a value of a flow mapping. */
     YAML_EMIT_FLOW_MAPPING_VALUE_STATE,
     /** Expect the first item of a block sequence. */
@@ -1509,6 +1515,7 @@
     YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE,
     /** Expect the key of a block mapping. */
     YAML_EMIT_BLOCK_MAPPING_KEY_STATE,
+
     /** Expect a value for a simple key of a block mapping. */
     YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE,
     /** Expect a value of a block mapping. */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/MANIFEST 
new/YAML-LibYAML-API-0.010/MANIFEST
--- old/YAML-LibYAML-API-0.009/MANIFEST 2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/MANIFEST 2020-08-19 22:45:07.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.012.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.015.
 Changes
 LICENSE
 LibYAML/Makefile.PL
@@ -19,6 +19,7 @@
 LibYAML/yaml.h
 LibYAML/yaml_private.h
 MANIFEST
+MANIFEST.SKIP
 META.json
 META.yml
 Makefile.PL
@@ -29,4 +30,5 @@
 t/10.basic.t
 t/11.anchors.t
 t/12.version.t
+t/13.flow.t
 t/data/simple.yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/MANIFEST.SKIP 
new/YAML-LibYAML-API-0.010/MANIFEST.SKIP
--- old/YAML-LibYAML-API-0.009/MANIFEST.SKIP    1970-01-01 01:00:00.000000000 
+0100
+++ new/YAML-LibYAML-API-0.010/MANIFEST.SKIP    2020-08-19 22:45:07.000000000 
+0200
@@ -0,0 +1 @@
+README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/META.json 
new/YAML-LibYAML-API-0.010/META.json
--- old/YAML-LibYAML-API-0.009/META.json        2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/META.json        2020-08-19 22:45:07.000000000 
+0200
@@ -4,7 +4,7 @@
       "Tina M\u00fcller <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 
2.150010",
+   "generated_by" : "Dist::Zilla version 6.015, CPAN::Meta::Converter version 
2.150010",
    "license" : [
       "perl_5"
    ],
@@ -36,8 +36,7 @@
             "IO::Handle" : "0",
             "IPC::Open3" : "0",
             "Test::More" : "0.98",
-            "YAML::PP" : "0.018",
-            "blib" : "1.01",
+            "YAML::PP" : "0.024",
             "perl" : "v5.8.0"
          }
       }
@@ -45,11 +44,11 @@
    "provides" : {
       "YAML::LibYAML::API" : {
          "file" : "lib/YAML/LibYAML/API.pm",
-         "version" : "0.009"
+         "version" : "0.010"
       },
       "YAML::LibYAML::API::XS" : {
          "file" : "LibYAML/lib/YAML/LibYAML/API/XS.pm",
-         "version" : "0.009"
+         "version" : "0.010"
       }
    },
    "release_status" : "stable",
@@ -63,8 +62,9 @@
          "web" : "https://github.com/perlpunk/YAML-LibYAML-API-p5";
       }
    },
-   "version" : "0.009",
-   "x_generated_by_perl" : "v5.24.1",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.19"
+   "version" : "0.010",
+   "x_generated_by_perl" : "v5.30.3",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.21",
+   "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/META.yml 
new/YAML-LibYAML-API-0.010/META.yml
--- old/YAML-LibYAML-API-0.009/META.yml 2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/META.yml 2020-08-19 22:45:07.000000000 +0200
@@ -9,13 +9,12 @@
   IO::Handle: '0'
   IPC::Open3: '0'
   Test::More: '0.98'
-  YAML::PP: '0.018'
-  blib: '1.01'
+  YAML::PP: '0.024'
   perl: v5.8.0
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'Dist::Zilla version 6.015, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,10 +23,10 @@
 provides:
   YAML::LibYAML::API:
     file: lib/YAML/LibYAML/API.pm
-    version: '0.009'
+    version: '0.010'
   YAML::LibYAML::API::XS:
     file: LibYAML/lib/YAML/LibYAML/API/XS.pm
-    version: '0.009'
+    version: '0.010'
 requires:
   XSLoader: '0'
   YAML::PP::Common: '0'
@@ -37,6 +36,7 @@
 resources:
   bugtracker: https://github.com/perlpunk/YAML-LibYAML-API-p5/issues
   repository: https://github.com/perlpunk/YAML-LibYAML-API-p5
-version: '0.009'
-x_generated_by_perl: v5.24.1
+version: '0.010'
+x_generated_by_perl: v5.30.3
 x_serialization_backend: 'YAML::Tiny version 1.73'
+x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/Makefile.PL 
new/YAML-LibYAML-API-0.010/Makefile.PL
--- old/YAML-LibYAML-API-0.009/Makefile.PL      2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/Makefile.PL      2020-08-19 22:45:07.000000000 
+0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.012.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.015.
 use strict;
 use warnings;
 
@@ -29,10 +29,9 @@
     "IO::Handle" => 0,
     "IPC::Open3" => 0,
     "Test::More" => "0.98",
-    "YAML::PP" => "0.018",
-    "blib" => "1.01"
+    "YAML::PP" => "0.024"
   },
-  "VERSION" => "0.009",
+  "VERSION" => "0.010",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -47,9 +46,8 @@
   "IPC::Open3" => 0,
   "Test::More" => "0.98",
   "XSLoader" => 0,
-  "YAML::PP" => "0.018",
+  "YAML::PP" => "0.024",
   "YAML::PP::Common" => 0,
-  "blib" => "1.01",
   "strict" => 0,
   "warnings" => 0
 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/README 
new/YAML-LibYAML-API-0.010/README
--- old/YAML-LibYAML-API-0.009/README   2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/README   2020-08-19 22:45:07.000000000 +0200
@@ -1,5 +1,5 @@
 This archive contains the distribution YAML-LibYAML-API,
-version 0.009:
+version 0.010:
 
   Wrapper around the C libyaml library
 
@@ -9,4 +9,4 @@
 the same terms as the Perl 5 programming language system itself.
 
 
-This README file was generated by Dist::Zilla::Plugin::Readme v6.012.
+This README file was generated by Dist::Zilla::Plugin::Readme v6.015.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/dist.ini 
new/YAML-LibYAML-API-0.010/dist.ini
--- old/YAML-LibYAML-API-0.009/dist.ini 2020-05-16 15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/dist.ini 2020-08-19 22:45:07.000000000 +0200
@@ -4,7 +4,7 @@
 copyright_holder = Tina Müller
 copyright_year   = 2020
 
-version = 0.009
+version = 0.010
 
 [@Filter]
 -bundle = @Basic
@@ -17,7 +17,7 @@
 finder = MyFiles
 [Prereqs / TestRequires]
 Test::More = 0.98
-YAML::PP = 0.018
+YAML::PP = 0.024
 
 [OverridePkgVersion]
 finder = MyFiles
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/lib/YAML/LibYAML/API.pm 
new/YAML-LibYAML-API-0.010/lib/YAML/LibYAML/API.pm
--- old/YAML-LibYAML-API-0.009/lib/YAML/LibYAML/API.pm  2020-05-16 
15:30:52.000000000 +0200
+++ new/YAML-LibYAML-API-0.010/lib/YAML/LibYAML/API.pm  2020-08-19 
22:45:07.000000000 +0200
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.009'; # VERSION
+our $VERSION = '0.010'; # VERSION
 
 use YAML::PP::Common qw/
     YAML_ANY_SCALAR_STYLE YAML_PLAIN_SCALAR_STYLE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/t/00.compile.t 
new/YAML-LibYAML-API-0.010/t/00.compile.t
--- old/YAML-LibYAML-API-0.009/t/00.compile.t   2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/t/00.compile.t   2020-08-19 22:45:07.000000000 
+0200
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.056
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058
 
 use Test::More;
 
@@ -43,7 +43,7 @@
     is($?, 0, "$lib loaded ok");
 
     shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
-        and not eval { require blib; blib->VERSION('1.01') };
+        and not eval { +require blib; blib->VERSION('1.01') };
 
     if (@_warnings)
     {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/t/10.basic.t 
new/YAML-LibYAML-API-0.010/t/10.basic.t
--- old/YAML-LibYAML-API-0.009/t/10.basic.t     2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/t/10.basic.t     2020-08-19 22:45:07.000000000 
+0200
@@ -12,6 +12,8 @@
     YAML_ANY_SCALAR_STYLE YAML_PLAIN_SCALAR_STYLE
     YAML_SINGLE_QUOTED_SCALAR_STYLE YAML_DOUBLE_QUOTED_SCALAR_STYLE
     YAML_LITERAL_SCALAR_STYLE YAML_FOLDED_SCALAR_STYLE
+    YAML_FLOW_MAPPING_STYLE YAML_BLOCK_MAPPING_STYLE
+    YAML_FLOW_SEQUENCE_STYLE YAML_BLOCK_SEQUENCE_STYLE
 /;
 
 my $yaml = <<'EOM';
@@ -83,7 +85,7 @@
         { name => 'mapping_start_event',
             start => { line => 2, column => 0 },
             end   => { line => 2, column => 0 },
-            style => 'block',
+            style => YAML_BLOCK_MAPPING_STYLE,
         },
         { name => 'scalar_event', style => YAML_PLAIN_SCALAR_STYLE, value => 
'foo',
             start => { line => 2, column => 0 },
@@ -116,7 +118,7 @@
         { name => 'sequence_start_event',
             start => { line => 6, column => 0 },
             end   => { line => 6, column => 1 },
-            style => 'block',
+            style => YAML_BLOCK_SEQUENCE_STYLE,
         },
         { name => 'scalar_event', style => YAML_DOUBLE_QUOTED_SCALAR_STYLE, 
value => 'doublequoted',
             start => { line => 6, column => 2 },
@@ -150,7 +152,7 @@
         { name => 'mapping_start_event',
             start => { line => 14, column => 0 },
             end   => { line => 14, column => 0 },
-            style => 'block',
+            style => YAML_BLOCK_MAPPING_STYLE,
         },
         { name => 'scalar_event', style => YAML_PLAIN_SCALAR_STYLE, value => 
"a",
             start => { line => 14, column => 0 },
@@ -191,7 +193,7 @@
         start => { line => 0, column => 0 },
         end   => { line => 0, column => 3 },
     },
-    { name => 'mapping_start_event', style => 'block',
+    { name => 'mapping_start_event', style => YAML_BLOCK_MAPPING_STYLE,
         start => { line => 1, column => 0 },
         end   => { line => 1, column => 0 },
     },
@@ -265,7 +267,7 @@
 
 subtest unicode => sub {
     my $ev = [];
-    $yaml = "[ö]";
+    $yaml = "- ö";
     YAML::LibYAML::API::parse_string_events($yaml, $ev);
     my $value = encode_utf8 $ev->[3]->{value};
     cmp_ok($value, 'eq', "ö", "utf8 parse");
@@ -283,9 +285,9 @@
     my @events = (
         { name => 'stream_start_event' },
         { name => 'document_start_event' },
-        { name => 'mapping_start_event', style => 'block' },
+        { name => 'mapping_start_event', style => YAML_BLOCK_MAPPING_STYLE },
         { name => 'scalar_event', value => 'a', style => 
YAML_PLAIN_SCALAR_STYLE },
-        { name => 'mapping_start_event', style => 'block' },
+        { name => 'mapping_start_event', style => YAML_BLOCK_MAPPING_STYLE },
         { name => 'scalar_event', value => 'b', style => 
YAML_PLAIN_SCALAR_STYLE },
         { name => 'scalar_event', value => 'c', style => 
YAML_PLAIN_SCALAR_STYLE },
         { name => 'mapping_end_event' },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/t/12.version.t 
new/YAML-LibYAML-API-0.010/t/12.version.t
--- old/YAML-LibYAML-API-0.009/t/12.version.t   2020-05-16 15:30:52.000000000 
+0200
+++ new/YAML-LibYAML-API-0.010/t/12.version.t   2020-08-19 22:45:07.000000000 
+0200
@@ -12,6 +12,8 @@
     YAML_ANY_SCALAR_STYLE YAML_PLAIN_SCALAR_STYLE
     YAML_SINGLE_QUOTED_SCALAR_STYLE YAML_DOUBLE_QUOTED_SCALAR_STYLE
     YAML_LITERAL_SCALAR_STYLE YAML_FOLDED_SCALAR_STYLE
+    YAML_FLOW_MAPPING_STYLE YAML_BLOCK_MAPPING_STYLE
+    YAML_FLOW_SEQUENCE_STYLE YAML_BLOCK_SEQUENCE_STYLE
 /;
 
 my $yaml = <<'EOM';
@@ -47,7 +49,7 @@
 my @exp_events = (
     { name => 'stream_start_event' },
     { name => 'document_start_event', implicit => 1 },
-    { name => 'mapping_start_event', style => 'block', },
+    { name => 'mapping_start_event', style => YAML_BLOCK_MAPPING_STYLE, },
 
     { name => 'scalar_event', value => 'z', style => YAML_PLAIN_SCALAR_STYLE },
     { name => 'scalar_event', value => '1', style => YAML_PLAIN_SCALAR_STYLE },
@@ -58,7 +60,7 @@
     { name => 'scalar_event', value => 'b', style => YAML_PLAIN_SCALAR_STYLE },
     { name => 'scalar_event', value => '0b10', style => 
YAML_PLAIN_SCALAR_STYLE },
     { name => 'scalar_event', value => 'x', style => YAML_PLAIN_SCALAR_STYLE },
-    { name => 'mapping_start_event', style => 'block', },
+    { name => 'mapping_start_event', style => YAML_BLOCK_MAPPING_STYLE, },
     { name => 'scalar_event', value => 'y', style => YAML_PLAIN_SCALAR_STYLE },
     { name => 'scalar_event', value => 'z', style => YAML_PLAIN_SCALAR_STYLE },
     { name => 'mapping_end_event' },
@@ -71,7 +73,7 @@
         version_directive => { major => 1, minor => 2 },
     },
 
-    { name => 'sequence_start_event', style => 'block', anchor => 'yes' },
+    { name => 'sequence_start_event', style => YAML_BLOCK_SEQUENCE_STYLE, 
anchor => 'yes' },
     { name => 'scalar_event', value => 'YES', style => YAML_PLAIN_SCALAR_STYLE 
},
     { name => 'scalar_event', value => '0b10', style => 
YAML_PLAIN_SCALAR_STYLE },
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/YAML-LibYAML-API-0.009/t/13.flow.t 
new/YAML-LibYAML-API-0.010/t/13.flow.t
--- old/YAML-LibYAML-API-0.009/t/13.flow.t      1970-01-01 01:00:00.000000000 
+0100
+++ new/YAML-LibYAML-API-0.010/t/13.flow.t      2020-08-19 22:45:07.000000000 
+0200
@@ -0,0 +1,37 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+use FindBin '$Bin';
+
+use YAML::LibYAML::API;
+use YAML::LibYAML::API::XS;
+
+my $yaml = <<'EOM';
+---
+- []
+- [a, b]
+- [a, [b], c]
+---
+- {}
+- {a: b}
+- {a: b, c: d}
+---
+- {a: [b], c: {d: f}}
+EOM
+
+my @yaml = split qr{^---\n}m, $yaml;
+
+for my $i (0 .. $#yaml) {
+    my $input = $yaml[ $i ];
+    next unless length $input;
+
+    my $ev = [];
+    YAML::LibYAML::API::parse_string_events($input, $ev);
+
+    my $emit = YAML::LibYAML::API::emit_string_events($ev);
+    is($emit, $input, "[$i] emit equals input");
+}
+
+done_testing;


Reply via email to