[Bps-public-commit] Prophet branch, master, updated. 0.743-26-g3211270

Shawn Moore sartak at bestpractical.com
Sun Oct 24 03:50:30 EDT 2010


The branch, master has been updated
       via  32112707eaad75e9a9b45ab332b2adbb01624ed5 (commit)
      from  76dab8428c551a9ce1ed71e92d1a1b9678b3bfac (commit)

Summary of changes:
 lib/Prophet/CLI/Dispatcher.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 32112707eaad75e9a9b45ab332b2adbb01624ed5
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 24 16:49:57 2010 +0900

    When we put a rule directly in the dispatcher we don't get $1

diff --git a/lib/Prophet/CLI/Dispatcher.pm b/lib/Prophet/CLI/Dispatcher.pm
index 03fe193..b4ac394 100644
--- a/lib/Prophet/CLI/Dispatcher.pm
+++ b/lib/Prophet/CLI/Dispatcher.pm
@@ -68,9 +68,10 @@ dispatcher->add_rule(
             Prophet::CLI::Dispatcher::Rule::RecordId->new,
         ],
         block => sub {
+            my $match = shift;
             my $self = shift;
             $self->context->set_id_from_primary_commands;
-            run($1, $self, @_);
+            run($match->pos(1), $self, @_);
         },
     )
 );

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



More information about the Bps-public-commit mailing list