Skip to content

Commit

Permalink
CPAN Release 0.88_001
Browse files Browse the repository at this point in the history
- Recognise core booleans on Perl 5.36+ at dump time (PR#114 PEVANS++)
  • Loading branch information
perlpunk committed Jan 24, 2024
1 parent e00ec40 commit a39520e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
version: 0.88_001
date: Wed 24 Jan 2024 10:54:20 PM CET
changes:
- Recognise core booleans on Perl 5.36+ at dump time (PR#114 PEVANS++)
---
version: 0.88
date: Fri May 12 05:28:05 AM PDT 2023
changes:
Expand Down
2 changes: 1 addition & 1 deletion Meta
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=meta: 0.0.2

name: YAML-LibYAML
version: 0.88
version: 0.88_001
abstract: Perl YAML Serialization using XS and libyaml
homepage: http://yaml.org
language: perl
Expand Down
14 changes: 13 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,19 @@ Only `Load` and `Dump` are exported by default.

* `$YAML::XS::Boolean` (since v0.67)

Default is undef.
Default: undef

When used with perl 5.36 or later, builtin booleans will work out of the
box. They will be created by `Load` and recognized by `Dump` automatically
(since YAML::XS 0.89).

```perl
say Dump({ truth => builtin::true });
# truth: true
```

For older perl versions you can use the following configuration to serialize
data as YAML booleans:

When set to `"JSON::PP"` or `"boolean"`, the plain (unquoted) strings `true`
and `false` will be loaded as `JSON::PP::Boolean` or `boolean.pm` objects.
Expand Down
2 changes: 1 addition & 1 deletion lib/YAML/LibYAML.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use strict; use warnings;
package YAML::LibYAML;
our $VERSION = '0.88';
our $VERSION = '0.88_001';

sub import {
die "YAML::LibYAML has been renamed to YAML::XS. Please use YAML::XS instead.";
Expand Down
2 changes: 1 addition & 1 deletion lib/YAML/XS.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict; use warnings;

package YAML::XS;
our $VERSION = '0.88';
our $VERSION = '0.88_001';

use base 'Exporter';

Expand Down

0 comments on commit a39520e

Please sign in to comment.