prepared for 5.58
Marcus Ramberg [Thu, 24 Nov 2005 09:52:40 +0000 (09:52 +0000)]
Changes
lib/Catalyst/Helper.pm

diff --git a/Changes b/Changes
index 8db817a..331abc5 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,7 +1,8 @@
 This file documents the revision history for Perl extension Catalyst.
 
-5.58
+5.58    2005-11-24 10:51:00
         - Added ExtUtils::AutoInstall support
+       - Allow overriding path in Catalyst::Helper.
         - Added -makefile to catalyst.pl to generate a new Makefile.PL.
         - Restored Catalyst::Build with a deprecation notice.
         - Improved PAR support
index 0a1e108..bfdfefc 100644 (file)
@@ -98,7 +98,7 @@ sub mk_app {
         $self->_mk_test;
         $self->_mk_create;
     }
-    return 1;
+    return $self->{dir};
 }
 
 =head3 mk_component
@@ -115,7 +115,8 @@ sub mk_component {
     $self->{author} = $self->{author} = $ENV{'AUTHOR'}
       || eval { @{ [ getpwuid($<) ] }[6] }
       || 'A clever guy';
-    $self->{base} = File::Spec->catdir( $FindBin::Bin, '..' );
+    $self->{base} ||= File::Spec->catdir( $FindBin::Bin, '..' );
+    die $self->{base};
     unless ( $_[0] =~ /^(?:model|view|controller)$/i ) {
         my $helper = shift;
         my @args   = @_;