Skip Menu |

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

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

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

Bug Information
Severity: Wishlist
Broken in: 0.12
Fixed in: (no value)



Subject: wish: YAML support
YAML support would be cool. Mark
[MARKSTOS - Fri Jul 15 14:57:45 2005]: Show quoted text
> YAML support would be cool.
I've just uploaded a development version to CPAN which has YAML support in it: File successfully copied to '/home/ftp/incoming/Config-Auto-0.15_01.tar.gz' Would you care to try it out and tell me if it works expected?
Subject: wish: YAML support (PATCH: tests)
From: markstos [...] cpan.org
[MARKSTOS - Fri Jul 15 14:57:45 2005]: Show quoted text
> YAML support would be cool. > > Mark
I wrote some basic tests for you. They passed, without modifications to the code. diff -rN -u old-config-auto/t/config/test.yaml new-config-auto/t/config/test.yaml --- old-config-auto/t/config/test.yaml 1969-12-31 19:00:00.000000000 -0500 +++ new-config-auto/t/config/test.yaml 2005-08-11 17:51:25.000000000 -0500 @@ -0,0 +1,7 @@ +--- #YAML:1.0 +apple: good +favorite colors: + - red + - white + - blue + diff -rN -u old-config-auto/t/yaml.t new-config-auto/t/yaml.t --- old-config-auto/t/yaml.t 1969-12-31 19:00:00.000000000 -0500 +++ new-config-auto/t/yaml.t 2005-08-11 17:52:07.000000000 -0500 @@ -0,0 +1,13 @@ +use Test::More q/no_plan/; +use strict; +use File::Spec::Functions; + +use_ok('Config::Auto'); + +my $config = Config::Auto::parse('test.yaml',path => catdir('t','config')); + +is($Config::Auto::Format,'yaml','Config file yaml formatted'); +is(ref($config->{'favorite colors'}),'ARRAY','Data structure'); +is($config->{'favorite colors'}[0],'red','favorite colors work'); +is($config->{'apple'},'good','apple good'); +
From: "Jos I. Boumans" <kane [...] xs4all.net>
Subject: Re: [cpan #13724] wish: YAML support (PATCH: tests)
Date: Fri, 12 Aug 2005 08:55:39 +0200
To: bug-Config-Auto [...] rt.cpan.org
RT-Send-Cc:
On Aug 12, 2005, at 12:55 AM, Guest via RT wrote: Show quoted text
> This message about Config-Auto was sent to you by guest <> via > rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=13724 > > > [MARKSTOS - Fri Jul 15 14:57:45 2005]: >
>> YAML support would be cool. >> >> Mark
> > I wrote some basic tests for you. They passed, without modifications to > the code.
D'oh.. i wrote them too, forgot to add them to the manifest... I'll do that right now. I take it that the yaml thing works as expected then? I'll start preparing the release if so :) -- Jos Boumans "Cocaine is God's way of telling you you make too much money" CPANPLUS http://cpanplus.sf.net