From: Matt S Trout Date: Sun, 24 Nov 2013 09:49:32 +0000 (+0000) Subject: compat fix for IO::All 0.47+ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6e34d3cc963df2863f16eead38ff1a4f70e3ab2;p=scpubgit%2FApp-SCS.git compat fix for IO::All 0.47+ --- diff --git a/lib/App/SCS.pm b/lib/App/SCS.pm index 035c803..3d431d7 100644 --- a/lib/App/SCS.pm +++ b/lib/App/SCS.pm @@ -12,7 +12,9 @@ has root_dir => (is => 'lazy'); sub _build_root_dir { my ($self) = @_; - io->dir(io->dir($self->config->{root_dir})->absolute); + # Need to pass '.' rather than undef in the default case - otherwise + # IO::All 0.47+ resolves to / (previously undef or '' was '.') + io->dir(io->dir($self->config->{root_dir}||'.')->absolute); } has share_dir => (is => 'lazy');