kentnl / File-ShareDir-ProjectDistDir

Simple set-and-forget using of a '/share' directory in your projects root
Other
5 stars 5 forks source link

Make sure Path::Tiny is loaded before calling it. #11

Closed kentfredric closed 10 years ago

kentfredric commented 10 years ago
if ( $type eq 'pathtiny' ) {
    return $value if ref $value eq 'Path::Tiny';
    return Path::Tiny::path($value);
}

should read

if ( $type eq 'pathtiny' ) {
    return $value if ref $value eq 'Path::Tiny';
    return _path($value);
}
kentfredric commented 10 years ago

Fixed in 09abc4592e1d4b5ba32e20528780deef844e97c1