update docs and tests for cpanfile support
Fitz Elliott [Wed, 20 Mar 2013 20:24:47 +0000 (16:24 -0400)]
 * Catalyst.pm
   * mention cpanfile as a way of detecting -Home

 * t/aggregate/unit_utils_home.t
   * update expected dist_indicator_file_list count

 * t/author/spelling.t
   * add cpanfile to stopwords

Signed-off-by: John Napiorkowski <jjnapiork@cpan.org>

lib/Catalyst.pm
t/aggregate/unit_utils_home.t
t/author/spelling.t

index c2e925b..b008e3a 100644 (file)
@@ -267,9 +267,9 @@ MYAPP_WEB_HOME. If both variables are set, the MYAPP_HOME one will be used.
 
 If none of these are set, Catalyst will attempt to automatically detect the
 home directory. If you are working in a development environment, Catalyst
-will try and find the directory containing either Makefile.PL, Build.PL or
-dist.ini. If the application has been installed into the system (i.e.
-you have done C<make install>), then Catalyst will use the path to your
+will try and find the directory containing either Makefile.PL, Build.PL,
+dist.ini, or cpanfile. If the application has been installed into the system
+(i.e. you have done C<make install>), then Catalyst will use the path to your
 application module, without the .pm extension (e.g., /foo/MyApp if your
 application was installed at /foo/MyApp.pm)
 
index 4a11c08..139e021 100644 (file)
@@ -9,7 +9,7 @@ use Path::Class qw/ dir /;
 use Cwd qw/ cwd /;
 
 my @dists = Catalyst::Utils::dist_indicator_file_list();
-is(scalar(@dists), 3, 'Makefile.PL Build.PL dist.ini');
+is(scalar(@dists), 4, 'Makefile.PL Build.PL dist.ini cpanfile');
 
 my $cwd = cwd();
 foreach my $inc ('', 'lib', 'blib'){
index edb24e6..4aec50d 100644 (file)
@@ -16,7 +16,7 @@ add_stopwords(qw(
     BUILDARGS metaclass namespaces pre ARGV ReverseProxy
     filename tempname request's subdirectory ini uninstalled uppercased
     wiki bitmask uri url urls dir hostname proxied http https IP SSL
-    inline INLINE plugins
+    inline INLINE plugins cpanfile
     FastCGI Stringifies Rethrows DispatchType Wishlist Refactor ROADMAP HTTPS Unescapes Restarter Nginx Refactored
     ActionClass LocalRegex LocalRegexp MyAction metadata
     Andreas