Added Catalyst::Helper::Controller::Scaffold
Sebastian Riedel [Thu, 23 Jun 2005 17:16:47 +0000 (17:16 +0000)]
Changes
lib/Catalyst.pm
lib/Catalyst/Helper.pm

diff --git a/Changes b/Changes
index 309d3fe..b3929ff 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,27 +1,28 @@
 This file documents the revision history for Perl extension Catalyst.
 
 5.24  2005-00-00 00:00:00
-        - Make module build cons README automatically.
-        - Prettify home path by resolving '..' (Andy Grundman)
-        - Improved helper templates a bit, new naming scheme for tests...
-        - Added support for case sensitivity, MyApp->config->{case_sensitive}
-        - Added $c->detach for non returning forwards
-        - Added unified error handling, Catalyst::Exception
-        - Added section on param handling in Intro.pod
-        - Added $c->request->cookie
-        - Added Catalyst::Setup
-        - Refactored Catalyst::import()
-        - Improved rendering of error messages in debug mode
+        - make module build cons README automatically.
+        - prettify home path by resolving '..' (Andy Grundman)
+        - improved helper templates a bit, new naming scheme for tests...
+        - added support for case sensitivity, MyApp->config->{case_sensitive}
+        - added $c->detach for non returning forwards
+        - added unified error handling, Catalyst::Exception
+        - added section on param handling in Intro.pod
+        - added $c->request->cookie
+        - added Catalyst::Setup
+        - refactored Catalyst::import()
+        - improved rendering of error messages in debug mode
+        - fixed a bug in Catalyst::Helper::mk_dir
 
 5.23  2005-06-03 02:30:00
         - added support for non Catalyst::Base components to live in namespace
         - improved concurrency connections in Catalyst::Engine::HTTP::Daemon
 
 5.22  2005-05-26 14:24:00
-        - Improved base locating in MP engines
-        - Improved error messages in C::E::HTTP::Daemon
-        - Hostnames are now resolved on demand unless provided by engine
-        - Fixed memory leak in $c->execute (Michael Reece, Matt S Trout)
+        - improved base locating in MP engines
+        - improved error messages in C::E::HTTP::Daemon
+        - hostnames are now resolved on demand unless provided by engine
+        - fixed memory leak in $c->execute (Michael Reece, Matt S Trout)
 
 5.21  2005-05-24 14:56:00
         - fixed a bug in https detection
index 243f473..4ee89df 100644 (file)
@@ -196,6 +196,15 @@ sub plugin {
 
 =back
 
+=head1 CASE SENSITIVITY
+
+By default Catalyst is not case sensitive, so C<MyApp::C::FOO::Bar> becomes
+C</foo/bar>.
+
+But you can activate case sensitivity with a config parameter.
+
+    MyApp->config->{case_sensitive} = 1;
+
 =head1 LIMITATIONS
 
 mod_perl2 support is considered experimental and may contain bugs.
index 7ed7b5b..cca4dd1 100644 (file)
@@ -191,7 +191,7 @@ sub mk_dir {
         print qq/ exists "$dir"\n/;
         return 0;
     }
-    if ( mkpath $dir) {
+    if ( mkpath [$dir] ) {
         print qq/created "$dir"\n/;
         return 1;
     }
@@ -430,13 +430,13 @@ __appclass__
 package [% name %];
 
 use strict;
-use base 'Catalyst';
+use Catalyst qw/-Debug/;
 
 our $VERSION = '0.01';
 
 [% name %]->config( name => '[% name %]' );
 
-[% name %]->setup( qw/-Debug/ );
+[% name %]->setup;
 
 =head1 NAME