I've just uploaded YAML::Tiny 1.21 to the CPAN.
This release fixes a major bug in the serialization that caused any unprintable character (which includes newlines and tab) to be serialized to a reference, which then stringified to REF(memorylocation).
Anything using YAML::Tiny for light weight serialization of arbitrary data is strongly recommended to upgrade.
The root cause of this bug was a trivial typo, with the primary cause attributed to a lack of unit tests (or even sample documents) for unprintable characters, which would have otherwise caused the problems to be picked up by routine round-trip testing.
This has also been resolved.
This bug was also the underlying cause of the CGI::Capture TERMCAP bug.
A new release of CGI::Capture has been uploaded with an updated YAML::Tiny 1.21 dependency to resolve the TERMCAP problem.
This is the final dependency issue preventing a 1.00 release of TinyAuth, which I hope now to complete shortly, after a little more polishing of error handling and the installation code.
Specless (Score:1)
YAML::Tiny is a misnomer and should be abandoned unless it is intending to become compliant to the YAML spec.
Did you ever answer http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-06/msg00783.html [mpe.mpg.de]
?
Re: (Score:1)
YAML::Syck is not compliant with the YAML spec.
There's a number of instances in YAML::Tiny's comparative tests where I've had to skip comparisons with those modules because they fail.
YAML::Tiny is quite clear about what it is, a module that supports reading and writing of the block-mode JSON-subset of the YAML specification.
Re: (Score:1)
About the JSON-subset: where can I read this? I grepped the documentation and could not find a reference to it.
I am not against a tiny implementation of YAML, but it should go together with a tiny spec.
Re: (Score:1)
Re: (Score:1)
Re: (Score:1)
YAML::Tiny has a perfectly decent (informal, implicit) spec:
Re: (Score:1)
Re: (Score:1)
Do you see someone distributing software with "Perl" in the name that doesn't actually do what Perl does? I haven't, at least since kurila picked up its new name.
Re: (Score:1)
Doesn't YAML::Tiny tell the user exactly what it is?
Re: (Score:1)
huh? Is that a typo?
Look at the samples contain in the tests, it lets you read/write all sorts of basic YAML files.
Re: (Score:1)
I suppose that depends on your definition of the words incomplete, correct, usable, and specification.
Re: (Score:1)
Re: (Score:1)
If you read the manpage from the first to the last line you still have no idea what this small, simple subset actually is. Whenever you have a small, simple YAML file that fails, or a small simple perl data structure that cannot be represented in YAML via YAML::Tiny, you cannot tell if it fails because of a bug or if it fails because the author has chosen to not implement some aspect of that small simple YAML file or that small, simple perl datast
Re: (Score:1)
The same goes (for me) for YAML::Tiny -- I'll use it