Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-YAML-LibYAML for
openSUSE:Factory checked in at 2022-10-01 17:41:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-YAML-LibYAML (Old)
and /work/SRC/openSUSE:Factory/.perl-YAML-LibYAML.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-YAML-LibYAML"
Sat Oct 1 17:41:52 2022 rev:23 rq:1006443 version:0.85
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-YAML-LibYAML/perl-YAML-LibYAML.changes
2022-09-10 20:16:43.068740491 +0200
+++
/work/SRC/openSUSE:Factory/.perl-YAML-LibYAML.new.2275/perl-YAML-LibYAML.changes
2022-10-01 17:41:59.409542603 +0200
@@ -1,0 +2,10 @@
+Tue Sep 13 03:07:39 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 0.85
+ see /usr/share/doc/packages/perl-YAML-LibYAML/Changes
+
+ 0.85 Mon Sep 12 08:20:19 AM EDT 2022
+ - Convert doc from Swim to Markdown
+ - Remove travis testing
+
+-------------------------------------------------------------------
Old:
----
YAML-LibYAML-0.84.tar.gz
New:
----
YAML-LibYAML-0.85.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-YAML-LibYAML.spec ++++++
--- /var/tmp/diff_new_pack.l6Jxar/_old 2022-10-01 17:41:59.977543638 +0200
+++ /var/tmp/diff_new_pack.l6Jxar/_new 2022-10-01 17:41:59.981543646 +0200
@@ -18,16 +18,16 @@
%define cpan_name YAML-LibYAML
Name: perl-YAML-LibYAML
-Version: 0.84
+Version: 0.85
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl YAML Serialization using XS and libyaml
URL: https://metacpan.org/release/%{cpan_name}
-Source0:
https://cpan.metacpan.org/authors/id/T/TI/TINITA/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Test::More) >= 0.90
+BuildRequires: perl(Test::More) >= 0.9
%{perl_requires}
%description
++++++ YAML-LibYAML-0.84.tar.gz -> YAML-LibYAML-0.85.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/CONTRIBUTING
new/YAML-LibYAML-0.85/CONTRIBUTING
--- old/YAML-LibYAML-0.84/CONTRIBUTING 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/CONTRIBUTING 2022-09-12 14:20:48.000000000 +0200
@@ -57,4 +57,4 @@
-# This file generated by Zilla-Dist-0.1.5
+# This file generated by Zilla-Dist-0.1.14
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/Changes
new/YAML-LibYAML-0.85/Changes
--- old/YAML-LibYAML-0.84/Changes 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/Changes 2022-09-12 14:20:48.000000000 +0200
@@ -1,3 +1,7 @@
+0.85 Mon Sep 12 08:20:19 AM EDT 2022
+ - Convert doc from Swim to Markdown
+ - Remove travis testing
+
0.84 Sat 03 Sep 2022 09:20:20 PM CEST
- Add option ForbidDuplicateKeys (PR#105 tinita)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/LICENSE
new/YAML-LibYAML-0.85/LICENSE
--- old/YAML-LibYAML-0.84/LICENSE 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/LICENSE 2022-09-12 14:20:48.000000000 +0200
@@ -292,21 +292,21 @@
- "Package" refers to the collection of files distributed by the Copyright
Holder, and derivatives of that collection of files created through
- textual modification.
+ textual modification.
- "Standard Version" refers to such a Package if it has not been modified,
or has been modified in accordance with the wishes of the Copyright
- Holder.
+ Holder.
- "Copyright Holder" is whoever is named in the copyright or copyrights for
- the package.
+ the package.
- "You" is you, if you're thinking about copying or distributing this
Package.
- "Reasonable copying fee" is whatever you can justify on the basis of media
cost, duplication charges, time of people involved, and so on. (You will
not be required to justify it to the Copyright Holder, but only to the
- computing community at large as a market that must bear the fee.)
+ computing community at large as a market that must bear the fee.)
- "Freely Available" means that no fee is charged for the item itself, though
there may be fees involved in handling the item. It also means that
recipients of the item may redistribute it under the same conditions they
- received it.
+ received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
@@ -373,7 +373,7 @@
9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/MANIFEST
new/YAML-LibYAML-0.85/MANIFEST
--- old/YAML-LibYAML-0.84/MANIFEST 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/MANIFEST 2022-09-12 14:20:48.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.017.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.025.
CONTRIBUTING
Changes
LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/META.json
new/YAML-LibYAML-0.85/META.json
--- old/YAML-LibYAML-0.84/META.json 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/META.json 2022-09-12 14:20:48.000000000 +0200
@@ -1,10 +1,10 @@
{
"abstract" : "Perl YAML Serialization using XS and libyaml",
"author" : [
- "Ingy d\u00f6t Net <[email protected]>"
+ "Ingy d\u00f6t Net <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version
2.150010",
+ "generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version
2.150010",
"license" : [
"perl_5"
],
@@ -39,7 +39,7 @@
},
"test" : {
"requires" : {
- "Test::More" : "0.90"
+ "Test::More" : "0.9"
}
}
},
@@ -55,9 +55,9 @@
"web" : "https://github.com/ingydotnet/yaml-libyaml-pm"
}
},
- "version" : "0.84",
- "x_generated_by_perl" : "v5.30.3",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.26",
+ "version" : "0.85",
+ "x_generated_by_perl" : "v5.28.0",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.06",
"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-0.84/META.yml
new/YAML-LibYAML-0.85/META.yml
--- old/YAML-LibYAML-0.84/META.yml 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/META.yml 2022-09-12 14:20:48.000000000 +0200
@@ -1,13 +1,13 @@
---
abstract: 'Perl YAML Serialization using XS and libyaml'
author:
- - 'Ingy d??t Net <[email protected]>'
+ - 'Ingy d??t Net <[email protected]>'
build_requires:
- Test::More: '0.90'
+ Test::More: '0.9'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version
2.150010'
+generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -25,7 +25,7 @@
bugtracker: https://github.com/ingydotnet/yaml-libyaml-pm/issues
homepage: https://github.com/ingydotnet/yaml-libyaml-pm
repository: https://github.com/ingydotnet/yaml-libyaml-pm.git
-version: '0.84'
-x_generated_by_perl: v5.30.3
+version: '0.85'
+x_generated_by_perl: v5.28.0
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-0.84/Makefile.PL
new/YAML-LibYAML-0.85/Makefile.PL
--- old/YAML-LibYAML-0.84/Makefile.PL 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/Makefile.PL 2022-09-12 14:20:48.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v6.017.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v6.025.
use strict;
use warnings;
@@ -8,7 +8,7 @@
my %WriteMakefileArgs = (
"ABSTRACT" => "Perl YAML Serialization using XS and libyaml",
- "AUTHOR" => "Ingy d\x{f6}t Net <ingy\@cpan.org>",
+ "AUTHOR" => "Ingy d\x{f6}t Net <ingy\@ingy.net>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
@@ -18,9 +18,9 @@
"NAME" => "YAML::LibYAML",
"PREREQ_PM" => {},
"TEST_REQUIRES" => {
- "Test::More" => "0.90"
+ "Test::More" => "0.9"
},
- "VERSION" => "0.84",
+ "VERSION" => "0.85",
"test" => {
"TESTS" => "t/*.t"
}
@@ -28,7 +28,7 @@
my %FallbackPrereqs = (
- "Test::More" => "0.90"
+ "Test::More" => "0.9"
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/README new/YAML-LibYAML-0.85/README
--- old/YAML-LibYAML-0.84/README 2022-09-03 21:20:29.000000000 +0200
+++ new/YAML-LibYAML-0.85/README 2022-09-12 14:20:48.000000000 +0200
@@ -1,6 +1,6 @@
NAME
- YAML::XS - Perl YAML Serialization using XS and libyaml
+ YAML-LibYAML - Perl YAML Serialization using XS and libyaml
SYNOPSIS
@@ -24,7 +24,7 @@
CONFIGURATION
- $YAML::XS::LoadBlessed (since v0.69)
+ * $YAML::XS::LoadBlessed (since v0.69)
Default: false.
@@ -47,9 +47,9 @@
not the critical part. If the class has a DESTROY method, it will be
called once the object is deleted. An example with File::Temp
removing files can be found at
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373
+ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373.
- $YAML::XS::ForbidDuplicateKeys` (since 0.84)
+ * $YAML::XS::ForbidDuplicateKeys (since 0.84)
Default: false
@@ -63,18 +63,18 @@
obvious, and it is recommended to set it to true. That's also what a
YAML loader should do by default according to the YAML specification.
- $YAML::XS::UseCode
+ * $YAML::XS::UseCode
- $YAML::XS::DumpCode
+ * $YAML::XS::DumpCode
- $YAML::XS::LoadCode
+ * $YAML::XS::LoadCode
If enabled supports deparsing and evaling of code blocks.
Note that support for loading code was added in version 0.75,
although $LoadCode was documented already in earlier versions.
- $YAML::XS::QuoteNumericStrings
+ * $YAML::XS::QuoteNumericStrings
When true (the default) strings that look like numbers but have not
been numified will be quoted when dumping.
@@ -82,7 +82,7 @@
This ensures leading that things like leading zeros and other
formatting are preserved.
- $YAML::XS::Boolean (since v0.67)
+ * $YAML::XS::Boolean (since v0.67)
Default is undef.
@@ -91,18 +91,18 @@
objects. Those objects will be dumped again as plain "true" or
"false".
- It will try to load JSON::PP or boolean and die if it can't be
+ It will try to load [JSON::PP] or [boolean] and die if it can't be
loaded.
With that it's possible to add new "real" booleans to a data
structure:
- local $YAML::XS::Boolean = "JSON::PP"; # or "boolean"
- my $data = Load("booltrue: true");
- $data->{boolfalse} = JSON::PP::false;
- my $yaml = Dump($data);
- # boolfalse: false
- # booltrue: true
+ local $YAML::XS::Boolean = "JSON::PP"; # or "boolean"
+ my $data = Load("booltrue: true");
+ $data->{boolfalse} = JSON::PP::false;
+ my $yaml = Dump($data);
+ # boolfalse: false
+ # booltrue: true
It also lets booleans survive when loading YAML via YAML::XS and
encode it in JSON via one of the various JSON encoders, which mostly
@@ -118,7 +118,7 @@
If you simply need to load "perl booleans" that are true or false in
boolean context, you will be fine with the default setting.
- $YAML::XS::Indent (since v0.76)
+ * $YAML::XS::Indent (since v0.76)
Default is 2.
@@ -141,7 +141,7 @@
You can find out (since v.079) which libyaml version this module was
built with:
- my $libyaml_version = YAML::XS::LibYAML::libyaml_version();
+ my $libyaml_version = YAML::XS::LibYAML::libyaml_version();
SEE ALSO
@@ -157,11 +157,11 @@
AUTHOR
- Ingy d??t Net <[email protected]>
+ Ingy d??t Net [email protected] <mailto:[email protected]>
COPYRIGHT AND LICENSE
- Copyright 2007-2022. Ingy d??t Net.
+ Copyright 2007-2022 - Ingy d??t Net
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/lib/YAML/LibYAML.pm
new/YAML-LibYAML-0.85/lib/YAML/LibYAML.pm
--- old/YAML-LibYAML-0.84/lib/YAML/LibYAML.pm 2022-09-03 21:20:30.000000000
+0200
+++ new/YAML-LibYAML-0.85/lib/YAML/LibYAML.pm 2022-09-12 14:20:48.000000000
+0200
@@ -1,6 +1,6 @@
use strict; use warnings;
package YAML::LibYAML;
-our $VERSION = '0.84';
+our $VERSION = '0.85';
sub import {
die "YAML::LibYAML has been renamed to YAML::XS. Please use YAML::XS
instead.";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/lib/YAML/LibYAML.pod
new/YAML-LibYAML-0.85/lib/YAML/LibYAML.pod
--- old/YAML-LibYAML-0.84/lib/YAML/LibYAML.pod 2022-09-03 21:20:30.000000000
+0200
+++ new/YAML-LibYAML-0.85/lib/YAML/LibYAML.pod 2022-09-12 14:20:48.000000000
+0200
@@ -1,9 +1,5 @@
=pod
-=for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.48.
-See http://github.com/ingydotnet/swim-pm#readme
-
=encoding utf8
=head1 NAME
@@ -14,19 +10,18 @@
C<YAML-LibYAML> is the CPAN I<distribution> name for the C<YAML::XS> module.
-See the L<YAML::XS> documentation instead.
+See the YAML::XS documentation instead.
=head1 AUTHOR
-Ingy d??t Net <[email protected]>
+Ingy d??t Net L<[email protected]|mailto:[email protected]>
=head1 COPYRIGHT AND LICENSE
-Copyright 2007-2022. Ingy d??t Net.
+Copyright 2007-2022 - Ingy d??t Net
-This program is free software; you can redistribute it and/or modify it under
-the same terms as Perl itself.
+This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
-See L<http://www.perl.com/perl/misc/Artistic.html>
+See
L<http://www.perl.com/perl/misc/Artistic.html|http://www.perl.com/perl/misc/Artistic.html>
=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/lib/YAML/XS.pm
new/YAML-LibYAML-0.85/lib/YAML/XS.pm
--- old/YAML-LibYAML-0.84/lib/YAML/XS.pm 2022-09-03 21:20:30.000000000
+0200
+++ new/YAML-LibYAML-0.85/lib/YAML/XS.pm 2022-09-12 14:20:48.000000000
+0200
@@ -1,7 +1,7 @@
use strict; use warnings;
package YAML::XS;
-our $VERSION = '0.84';
+our $VERSION = '0.85';
use base 'Exporter';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/YAML-LibYAML-0.84/lib/YAML/XS.pod
new/YAML-LibYAML-0.85/lib/YAML/XS.pod
--- old/YAML-LibYAML-0.84/lib/YAML/XS.pod 2022-09-03 21:20:30.000000000
+0200
+++ new/YAML-LibYAML-0.85/lib/YAML/XS.pod 2022-09-12 14:20:48.000000000
+0200
@@ -1,17 +1,15 @@
=pod
-=for comment
-DO NOT EDIT. This Pod was generated by Swim v0.1.48.
-See http://github.com/ingydotnet/swim-pm#readme
-
=encoding utf8
=head1 NAME
-YAML::XS - Perl YAML Serialization using XS and libyaml
+YAML-LibYAML - Perl YAML Serialization using XS and libyaml
=for html
-<a href="https://travis-ci.org/ingydotnet/yaml-libyaml-pm"><img
src="https://travis-ci.org/ingydotnet/yaml-libyaml-pm.png"
alt="yaml-libyaml-pm"></a>
+<a
href="https://github.com/ingydotnet/yaml-libyaml-pm/actions/workflows/linux.yml"><img
src="https://github.com/ingydotnet/yaml-libyaml-pm/actions/workflows/linux.yml/badge.svg"
alt="linux"></a>
+
+
=head1 SYNOPSIS
@@ -22,30 +20,23 @@
=head1 DESCRIPTION
-Kirill Simonov's C<libyaml> is arguably the best YAML implementation. The C
-library is written precisely to the YAML 1.1 specification. It was originally
-bound to Python and was later bound to Ruby.
-
-This module is a Perl XS binding to libyaml which offers Perl the best YAML
-support to date.
-
-This module exports the functions C<Dump>, C<Load>, C<DumpFile> and
-C<LoadFile>. These functions are intended to work exactly like C<YAML.pm>'s
-corresponding functions. Only C<Load> and C<Dump> are exported by default.
+Kirill Simonov's C<libyaml> is arguably the best YAML implementation. The C
library is written precisely to the YAML 1.1 specification. It was originally
bound to Python and was later bound to Ruby.
+
+This module is a Perl XS binding to libyaml which offers Perl the best YAML
support to date.
+
+This module exports the functions C<Dump>, C<Load>, C<DumpFile> and
C<LoadFile>. These functions are intended to work exactly like C<YAML.pm>'s
corresponding functions. Only C<Load> and C<Dump> are exported by default.
=head1 CONFIGURATION
=over
-=item C<$YAML::XS::LoadBlessed> (since v0.69)
+=item * C<$YAML::XS::LoadBlessed> (since v0.69)
Default: false.
The default was changed in version 0.81.
-When set to false, it will not bless data into objects, which can be a
-security problem, when loading YAML from an untrusted source. It will silently
-ignore the tag and just load the data unblessed.
+When set to false, it will not bless data into objects, which can be a
security problem, when loading YAML from an untrusted source. It will silently
ignore the tag and just load the data unblessed.
In PyYAML, this is called SafeLoad.
@@ -56,80 +47,61 @@
perl: !!perl/hash:Foo::Bar { a: 1 }
regex: !!perl/regexp:Foo::Bar pattern
-You can create any kind of object with YAML. The creation itself is not the
-critical part. If the class has a C<DESTROY> method, it will be called once
-the object is deleted. An example with File::Temp removing files can be found
-at L<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373>
+You can create any kind of object with YAML. The creation itself is not the
critical part. If the class has a C<DESTROY> method, it will be called once the
object is deleted. An example with File::Temp removing files can be found at
L<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373|https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373>.
-=item $YAML::XS::ForbidDuplicateKeys` (since 0.84)
+=item * C<$YAML::XS::ForbidDuplicateKeys> (since 0.84)
Default: false
-When set to true, C<Load> will die when encountering a duplicate key in a
-hash, e.g.
+When set to true, C<Load> will die when encountering a duplicate key in a
hash, e.g.
key: value
key: another value
-This can be useful for bigger YAML documents where it is not that obvious, and
-it is recommended to set it to true. That's also what a YAML loader should do
-by default according to the YAML specification.
+This can be useful for bigger YAML documents where it is not that obvious, and
it is recommended to set it to true. That's also what a YAML loader should do
by default according to the YAML specification.
-=item C<$YAML::XS::UseCode>
+=item * C<$YAML::XS::UseCode>
+=item * C<$YAML::XS::DumpCode>
-=item C<$YAML::XS::DumpCode>
-
-
-=item C<$YAML::XS::LoadCode>
+=item * C<$YAML::XS::LoadCode>
If enabled supports deparsing and evaling of code blocks.
-Note that support for loading code was added in version 0.75, although
-C<$LoadCode> was documented already in earlier versions.
+Note that support for loading code was added in version 0.75, although
C<$LoadCode> was documented already in earlier versions.
-=item C<$YAML::XS::QuoteNumericStrings>
+=item * C<$YAML::XS::QuoteNumericStrings>
-When true (the default) strings that look like numbers but have not been
-numified will be quoted when dumping.
+When true (the default) strings that look like numbers but have not been
numified will be quoted when dumping.
-This ensures leading that things like leading zeros and other formatting are
-preserved.
+This ensures leading that things like leading zeros and other formatting are
preserved.
-=item C<$YAML::XS::Boolean> (since v0.67)
+=item * C<$YAML::XS::Boolean> (since v0.67)
Default is undef.
-When set to C<"JSON::PP"> or C<"boolean">, the plain (unquoted) strings
-C<true> and C<false> will be loaded as C<JSON::PP::Boolean> or C<boolean.pm>
-objects. Those objects will be dumped again as plain "true" or "false".
+When set to C<"JSON::PP"> or C<"boolean">, the plain (unquoted) strings
C<true> and C<false> will be loaded as C<JSON::PP::Boolean> or C<boolean.pm>
objects. Those objects will be dumped again as plain "true" or "false".
-It will try to load L<JSON::PP> or L<boolean> and die if it can't be loaded.
+It will try to load [JSON::PP] or [boolean] and die if it can't be loaded.
With that it's possible to add new "real" booleans to a data structure:
- local $YAML::XS::Boolean = "JSON::PP"; # or "boolean"
- my $data = Load("booltrue: true");
- $data->{boolfalse} = JSON::PP::false;
- my $yaml = Dump($data);
- # boolfalse: false
- # booltrue: true
-
-It also lets booleans survive when loading YAML via YAML::XS and encode it
-in JSON via one of the various JSON encoders, which mostly support
-JSON::PP booleans.
-
-Please note that JSON::PP::Boolean and boolean.pm behave a bit differently.
-Ideally you should only use them in boolean context.
-
-If not set, booleans are loaded as special perl variables C<PL_sv_yes> and
-C<PL_sv_no>, which have the disadvantage that they are readonly, and you can't
-add those to an existing data structure with pure perl.
+ local $YAML::XS::Boolean = "JSON::PP"; # or "boolean"
+ my $data = Load("booltrue: true");
+ $data->{boolfalse} = JSON::PP::false;
+ my $yaml = Dump($data);
+ # boolfalse: false
+ # booltrue: true
+
+It also lets booleans survive when loading YAML via YAML::XS and encode it in
JSON via one of the various JSON encoders, which mostly support JSON::PP
booleans.
+
+Please note that JSON::PP::Boolean and boolean.pm behave a bit differently.
Ideally you should only use them in boolean context.
+
+If not set, booleans are loaded as special perl variables C<PL_sv_yes> and
C<PL_sv_no>, which have the disadvantage that they are readonly, and you can't
add those to an existing data structure with pure perl.
-If you simply need to load "perl booleans" that are true or false in boolean
-context, you will be fine with the default setting.
+If you simply need to load "perl booleans" that are true or false in boolean
context, you will be fine with the default setting.
-=item C<$YAML::XS::Indent> (since v0.76)
+=item * C<$YAML::XS::Indent> (since v0.76)
Default is 2.
@@ -139,49 +111,45 @@
=head1 USING YAML::XS WITH UNICODE
-Handling unicode properly in Perl can be a pain. YAML::XS only deals with
-streams of utf8 octets. Just remember this:
+Handling unicode properly in Perl can be a pain. YAML::XS only deals with
streams of utf8 octets. Just remember this:
$perl = Load($utf8_octets);
$utf8_octets = Dump($perl);
-There are many, many places where things can go wrong with unicode. If you are
-having problems, use Devel::Peek on all the possible data points.
+There are many, many places where things can go wrong with unicode. If you are
having problems, use Devel::Peek on all the possible data points.
=head1 LIBYAML
-You can find out (since v.079) which libyaml version this module was
-built with:
+You can find out (since v.079) which libyaml version this module was built
with:
- my $libyaml_version = YAML::XS::LibYAML::libyaml_version();
+ my $libyaml_version = YAML::XS::LibYAML::libyaml_version();
=head1 SEE ALSO
=over
-=item * L<YAML>.pm
+=item * YAML.pm
-=item * L<YAML::Syck>
+=item * YAML::Syck
-=item * L<YAML::Tiny>
+=item * YAML::Tiny
-=item * L<YAML::PP>
+=item * YAML::PP
-=item * L<YAML::PP::LibYAML>
+=item * YAML::PP::LibYAML
=back
=head1 AUTHOR
-Ingy d??t Net <[email protected]>
+Ingy d??t Net L<[email protected]|mailto:[email protected]>
=head1 COPYRIGHT AND LICENSE
-Copyright 2007-2022. Ingy d??t Net.
+Copyright 2007-2022 - Ingy d??t Net
-This program is free software; you can redistribute it and/or modify it under
-the same terms as Perl itself.
+This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
-See L<http://www.perl.com/perl/misc/Artistic.html>
+See
L<http://www.perl.com/perl/misc/Artistic.html|http://www.perl.com/perl/misc/Artistic.html>
=cut