Skip Menu |
 

This queue is for tickets about the Config-Auto CPAN distribution.

Report information
The Basics
Id: 18241
Status: resolved
Priority: 0/
Queue: Config-Auto

People
Owner: Nobody in particular
Requestors: rabbit [...] rabbit.us
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.17
Fixed in: (no value)



Subject: YAML auto-detection is borked
Download (untitled) / with headers
text/plain 615b
The detection mechanism if /--- #YAML:/ and $data_r->[0] eq $_; will never work as the version directive is %YAML x.x. Actually it looks like the YAML versioning is a mess as all of those seem to be valid in different versions: line1: --- line2: first_value: 1 line1: --- %YAML:1.0 line2: first_value: 1 line1: %YAML 1.1 line2: --- line3: first_value: 1 line1: %YAML 1.2 line2: --- line3: first_value: 1 Also as a side note I believe no other serialization language has: /^\s+-\skey:\svalue/ as an array element notation, so this can be thrown in the scoring mechanism too. Thanks for the great module! :)
Download (untitled) / with headers
text/plain 861b
On Sun Mar 19 08:19:21 2006, guest wrote: Show quoted text
> The detection mechanism > > if /--- #YAML:/ and $data_r->[0] eq $_; > > will never work as the version directive is %YAML x.x. Actually it looks > like the YAML versioning is a mess as all of those seem to be valid in > different versions: > > line1: --- > line2: first_value: 1 > > line1: --- %YAML:1.0 > line2: first_value: 1 > > line1: %YAML 1.1 > line2: --- > line3: first_value: 1 > > line1: %YAML 1.2 > line2: --- > line3: first_value: 1 > > Also as a side note I believe no other serialization language has: > /^\s+-\skey:\svalue/ > as an array element notation, so this can be thrown in the scoring > mechanism too. > > Thanks for the great module! :)
Thanks for the great report -- i've updated the detection mechanism to trigger on all those scenarios, and will be releasing it as 0.17 shortly.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.