Skip Menu |

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

Report information
The Basics
Id: 50490
Status: resolved
Priority: 0/
Queue: Config-JFDI

People
Owner: Nobody in particular
Requestors: orasnita [...] gmail.com
Cc:
AdminCc:

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



Subject: __path_to(...)__ doesn't work?
Date: Wed, 14 Oct 2009 14:09:45 +0300
To: <bug-config-jfdi [...] rt.cpan.org>
From: Octavian Râşniţă <orasnita [...] gmail.com>
Hi, I have used Config::JFDI and in some configuration files I have values like: myapp.pl: INCLUDE_PATH => '__path_to(root,templates)__', or myapp.conf: INCLUDE_PATH __path_to(root,templates)__ But the result path offered by Config::JFDI is just 'root\\templates' without the entire path to this directory (although the program that uses Config::JFDI isn't in the main directory of the Catalyst app, so it shouldn't be able to find it. Here is the program I tried: use strict; use Config::JFDI; my $conf = Config::JFDI->new(name => 'BRK', path => 'e:/web/BRK')->get; use Data::Dumper; print Dumper $conf; Thank you. Octavian
On Wed Oct 14 07:10:38 2009, orasnita@gmail.com wrote: Show quoted text
> But the result path offered by Config::JFDI is just > 'root\\templates' > > without the entire path to this directory (although the program that uses > Config::JFDI isn't in the main directory of the Catalyst app, so it > shouldn't be able to find it.
Thanks for the report, this bug has been fixed and is going up as 0.063: @@ -117,7 +117,7 @@ has path_to => qw/reader _path_to lazy_build 1 isa Str/; sub _build_path_to { my $self = shift; return $self->config->{home} if $self->config->{home}; - return $self->{path} if -d $self->{path}; + return $self->source->path unless $self->source->path_is_file; return '.'; }
Fixed in 0.064