From: Fitz Elliott Date: Wed, 20 Mar 2013 20:24:47 +0000 (-0400) Subject: update docs and tests for cpanfile support X-Git-Tag: 5.90030~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=a943d722ed6e624a46cc687f4bd3ae2ff096963d;hp=f9451270ac09ec79f7185213288c927501010d1f update docs and tests for cpanfile support * 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 --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index c2e925b..b008e3a 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -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), 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), 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) diff --git a/t/aggregate/unit_utils_home.t b/t/aggregate/unit_utils_home.t index 4a11c08..139e021 100644 --- a/t/aggregate/unit_utils_home.t +++ b/t/aggregate/unit_utils_home.t @@ -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'){ diff --git a/t/author/spelling.t b/t/author/spelling.t index edb24e6..4aec50d 100644 --- a/t/author/spelling.t +++ b/t/author/spelling.t @@ -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