[Bps-public-commit] Path-Dispatcher-Debugger branch, master, updated. 41541a0c5fb2ff6bcbb08dd96ac00afa792caffd
sartak at bestpractical.com
sartak at bestpractical.com
Wed Dec 23 15:33:28 EST 2009
The branch, master has been updated
via 41541a0c5fb2ff6bcbb08dd96ac00afa792caffd (commit)
from 8956bdce394c13228184ad83f55d2e15ab409ef2 (commit)
Summary of changes:
lib/Path/Dispatcher/Debugger/View.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 41541a0c5fb2ff6bcbb08dd96ac00afa792caffd
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 23 15:33:12 2009 -0500
Fix completion matching, which requires a path object
diff --git a/lib/Path/Dispatcher/Debugger/View.pm b/lib/Path/Dispatcher/Debugger/View.pm
index cd034c8..7eb4d59 100644
--- a/lib/Path/Dispatcher/Debugger/View.pm
+++ b/lib/Path/Dispatcher/Debugger/View.pm
@@ -97,8 +97,9 @@ template matching_rules => sub {
my @matches;
my @not_matches;
+ my $path_object = $debugger->dispatcher->path_class->new($path);
for my $rule ($debugger->dispatcher->rules) {
- my @completions = $rule->complete($path);
+ my @completions = $rule->complete($path_object);
if (@completions) {
push @matches, [$rule, join ', ', @completions];
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list