# This file documents the revision history for Perl extension Catalyst.
+ Bug fixes:
+ - The Catalyst::Utils::home function is used to find if the application
+ is a checkout in Catalyst::ScriptRunner. This means that a non-existant
+ lib directory that is relative to the script install location is not
+ included when not running from a checkout.
+
5.90008 - TRIAL 2012-02-06 20:49:00
New features and refactoring:
use lib;
use File::Spec;
use Class::Load qw/ load_first_existing_class load_optional_class /;
+use Catalyst::Utils;
use namespace::autoclean -also => 'subclass_with_traits';
use Try::Tiny;
sub run {
my ($self, $appclass, $scriptclass) = @_;
- lib->import(File::Spec->catdir($FindBin::Bin, '..', 'lib'));
+ if (my $home = Catalyst::Utils::home($appclass)) {
+ lib->import(File::Spec->catdir($home, 'lib'));
+ }
my $class = $self->find_script_class($appclass, $scriptclass);