From: André Walker Date: Sat, 30 Jul 2011 03:42:04 +0000 (-0300) Subject: Merge branch 'master' into gsoc_breadboard X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8b8dc1574acaea0e2aa188c31794d70020904ff7;hp=1b5451ef09edf0638b6932d697f43b5dd8ede6d8 Merge branch 'master' into gsoc_breadboard --- diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index d9fcc96..1279a62 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -1 +1 @@ -^(?!script/\w+\.pl$|TODO$|lib/.+(? { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}. qq{ echo "You must set the ENV variable $attr to 'true',"; }. diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index 5ed6088..9c32258 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -203,7 +203,7 @@ sub recurse_match { if (my $capture_attr = $action->attributes->{CaptureArgs}) { # Short-circuit if not enough remaining parts - next TRY_ACTION unless @parts >= $capture_attr->[0]; + next TRY_ACTION unless @parts >= ($capture_attr->[0]||0); my @captures; my @parts = @parts; # localise