[Bps-public-commit] Path-Dispatcher-Debugger branch, master, updated. f0c48673224b29f087bd0364096bd37445bf7bb8

sartak at bestpractical.com sartak at bestpractical.com
Wed Dec 23 15:52:21 EST 2009


The branch, master has been updated
       via  f0c48673224b29f087bd0364096bd37445bf7bb8 (commit)
      from  7c65d2d5d4526f1553a8e9536007c8311b8e1a5d (commit)

Summary of changes:
 lib/Path/Dispatcher/Debugger/View.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit f0c48673224b29f087bd0364096bd37445bf7bb8
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 23 15:52:02 2009 -0500

    Display completions for Under rules next to the predicate

diff --git a/lib/Path/Dispatcher/Debugger/View.pm b/lib/Path/Dispatcher/Debugger/View.pm
index 06ed3f3..06d9adc 100644
--- a/lib/Path/Dispatcher/Debugger/View.pm
+++ b/lib/Path/Dispatcher/Debugger/View.pm
@@ -158,6 +158,10 @@ sub display_rule {
     elsif ($rule->isa('Path::Dispatcher::Rule::Under')) {
         outs 'Under ';
         outs(display_rule($rule->predicate));
+        if ($extra->{completions}) {
+            display_completions(@{ delete $extra->{completions} });
+        }
+
         outs(display_rules($rule->rules));
     }
     elsif ($rule->isa('Path::Dispatcher::Rule::Regex')) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list