Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML-LibYAML CPAN distribution.

Report information
The Basics
Id: 73716
Status: resolved
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.37
Fixed in: (no value)



Subject: Bleadperl v5.15.6-147-g415d4c6 breaks INGY/YAML-LibYAML-0.37.tar.gz
Looks like the same test needs fixing as in YAML.pm Sample fail report http://www.cpantesters.org/cpan/report/440f6e8c-3238-11e1-ac00-393a1b5cef0a
On Tue Jan 03 17:31:55 2012, ANDK wrote: Show quoted text
> Looks like the same test needs fixing as in YAML.pm > > Sample fail report > > http://www.cpantesters.org/cpan/report/440f6e8c-3238-11e1-ac00-393a1b5cef0a >
Lo, a patch!
Subject: open_n4uoYAvj.txt
diff -rup YAML-LibYAML-0.37-izH6qr/t/code.t YAML-LibYAML-0.37-izH6qr-copy/t/code.t --- YAML-LibYAML-0.37-izH6qr/t/code.t 2011-04-03 09:28:08.000000000 -0700 +++ YAML-LibYAML-0.37-izH6qr-copy/t/code.t 2012-01-03 18:00:56.000000000 -0800 @@ -18,11 +18,17 @@ $yaml = <<'...'; --- !!perl/code:Barry::White |- { use warnings; - use strict 'refs'; + use strict; print "Bye.\n"; } ... +use B::Deparse; +if (new B::Deparse -> coderef2text ( sub { no strict; 1; use strict; 1; }) + =~ 'refs') { + $yaml =~ s/use strict/use strict 'refs'/g; +} + $YAML::XS::DumpCode = 1; is Dump($sub), $yaml, "Dumping a blessed code ref works (with B::Deparse)";
lo, a release: YAML-LibYAML-0.38 successfully released.