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

Shawn Moore sartak at bestpractical.com
Sun Oct 17 04:05:10 EDT 2010


The branch, master has been updated
       via  b8f4b3fe15ce9d1b7bca0178ea30dd5a54cf5bf1 (commit)
       via  1149ef8acbfeafdd39066b3d830a5022abbf8a7f (commit)
       via  1e967eabd75df13906d0cd1535d39b6c773dda91 (commit)
       via  e63ba10544ea43928b250ee338d19506d217cb37 (commit)
       via  a184e65ba3cfa4ac6ea669b46eb518c5357e820b (commit)
       via  432fb42bd49b93ddbb9a351a76067e99f336f9c4 (commit)
       via  5c528bf5a0cc7d773975074c646cd846ce81c06c (commit)
       via  a9426dd3e631e368f941b665febf179dbbd01dd5 (commit)
       via  8ea24b6b8795de3ed5ba5738e0af41ef131f8aee (commit)
       via  865df9dc05cd3a1469f80c58c8a23b19aeaa5aa2 (commit)
       via  ecc47f58c32006b1cfcc5357a98dc9c0662608d0 (commit)
       via  aa383ce72217273855dd608a1ebd4d7a420dc362 (commit)
       via  a435ea3cf02e9cf5510bc92f44fc11cc2ed8cb03 (commit)
       via  e91d9d65cd652f376bdbb2a854fe8ff1ea6ab990 (commit)
       via  92d489c824436af10f01b962ae416cbd27b7e922 (commit)
       via  8d0b049f3349f33dbc1991166870da62b1bdd257 (commit)
       via  4121fcf0a2356b74ac6131088b2ac4f988c6d704 (commit)
       via  e48aded655b20b24ce853ef70b76f905f66c51d2 (commit)
       via  a26160dd83700a59e4c5388e69db5ed327e39c81 (commit)
       via  4a660e060ea38509440c6b6cdb55d71e6dd35f74 (commit)
       via  b6b83b8bcd6473019da61598aea79a15cd9a0dd5 (commit)
       via  78eb561817c71070f283f7b2295f2ab33b35f951 (commit)
       via  114946c9332ce8d183959b25746a5530a6096ca5 (commit)
       via  3f2cea6da2460738b90b5705ffacbc78f304c0d2 (commit)
       via  6cd4c3b588e89bab787f12fc89b7826c4cecf429 (commit)
       via  fab0d44046ec5f9534eed1dd2c0a4f75fb02788d (commit)
       via  0ddd07823e375314a8514552aa60db9dd1004535 (commit)
       via  817ee9db60261732083b970f8895d850ad25cd66 (commit)
       via  fc2542524ad333e4bac81284480d75c0370c2e68 (commit)
       via  c543bdedf3752d2469595efc0da177323fe7c5b7 (commit)
       via  8f6a3be524e979af975016954cc6a4e4d5d504a1 (commit)
       via  da1eacb0a28183d34204d5e318fecf3941a03482 (commit)
       via  be03c6fb5fc8e792842728ca011a9faf021f0fde (commit)
       via  7bed2ae64648597890d203c598d2d29cfe419caa (commit)
       via  9e9dbbb657a25b06676c3cfffd848d5edf208aa4 (commit)
       via  153ecb565f7051e3f5a561a490af5e55c8f63dec (commit)
       via  b14aca96b503d8eba4f4aa353338379855a120a2 (commit)
       via  2d9f17cd704d6e091df429f11b9a9d16a018cb0d (commit)
       via  10cfbe80a9a4e9e728e114786f6a5162a401c6b5 (commit)
       via  174752cf57ef180e86dd4c8f07daf05083eb5eef (commit)
       via  eee4d854ec7b93a9fdf853e92fdad7cda6f0372a (commit)
      from  c09871401cea6a0ecc61d6bc97aec9879187786e (commit)

Summary of changes:
 .gitignore                               |    1 +
 Changes                                  |   25 ++++++-
 inc/Module/Install.pm                    |   10 ++-
 inc/Module/Install/Base.pm               |    2 +-
 inc/Module/Install/Can.pm                |    2 +-
 inc/Module/Install/Fetch.pm              |    2 +-
 inc/Module/Install/Makefile.pm           |    2 +-
 inc/Module/Install/Metadata.pm           |    2 +-
 inc/Module/Install/Win32.pm              |    2 +-
 inc/Module/Install/WriteAll.pm           |    2 +-
 lib/Path/Dispatcher.pm                   |   46 ++------------
 lib/Path/Dispatcher/Cookbook.pod         |   25 ++++----
 lib/Path/Dispatcher/Dispatch.pm          |    9 +--
 lib/Path/Dispatcher/Match.pm             |   98 +++++++++++++-----------------
 lib/Path/Dispatcher/Path.pm              |    4 +-
 lib/Path/Dispatcher/Role/Rules.pm        |    2 +-
 lib/Path/Dispatcher/Rule.pm              |   95 +++-------------------------
 lib/Path/Dispatcher/Rule/Alternation.pm  |    6 +-
 lib/Path/Dispatcher/Rule/Always.pm       |    5 +-
 lib/Path/Dispatcher/Rule/Chain.pm        |    2 -
 lib/Path/Dispatcher/Rule/CodeRef.pm      |   11 +---
 lib/Path/Dispatcher/Rule/Dispatch.pm     |    4 +-
 lib/Path/Dispatcher/Rule/Empty.pm        |    4 +-
 lib/Path/Dispatcher/Rule/Enum.pm         |   30 ++++++---
 lib/Path/Dispatcher/Rule/Eq.pm           |   22 ++++---
 lib/Path/Dispatcher/Rule/Intersection.pm |    6 +-
 lib/Path/Dispatcher/Rule/Metadata.pm     |   17 ++---
 lib/Path/Dispatcher/Rule/Regex.pm        |   25 +++----
 lib/Path/Dispatcher/Rule/Sequence.pm     |    7 ++-
 lib/Path/Dispatcher/Rule/Tokens.pm       |   68 ++++----------------
 lib/Path/Dispatcher/Rule/Under.pm        |    6 +-
 t/001-api.t                              |   18 +++--
 t/002-rule.t                             |   16 +----
 t/007-coderef-matcher.t                  |    4 +-
 t/009-args.t                             |    2 +-
 t/013-tokens.t                           |   20 +++---
 t/014-tokens-prefix.t                    |    6 +-
 t/015-regex-prefix.t                     |    2 +-
 t/022-numbers-undef.t                    |    4 +-
 t/024-sequence.t                         |   20 +++---
 t/025-sequence-custom-rule.t             |   20 +++---
 t/026-named-captures.t                   |   23 +++++++
 t/100-match-object.t                     |   31 +++++++++
 t/900-use-path-dispatcher.t              |   12 ----
 t/901-return-values.t                    |    2 +-
 t/903-number-vars.t                      |   38 ------------
 46 files changed, 305 insertions(+), 455 deletions(-)
 create mode 100644 t/026-named-captures.t
 create mode 100644 t/100-match-object.t
 delete mode 100644 t/900-use-path-dispatcher.t
 delete mode 100644 t/903-number-vars.t

- Log -----------------------------------------------------------------
commit b8f4b3fe15ce9d1b7bca0178ea30dd5a54cf5bf1
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 17 17:04:51 2010 +0900

    More doc

diff --git a/Changes b/Changes
index 9b883eb..4481917 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Path-Dispatcher
 
+0.17
+        Add match->named($key) for pulling out a named capture
+
 0.16 Sun Oct 17 2010
         ** BACKWARDS INCOMPATIBLE CHANGE: Pass the match object into rule
         **    blocks rather than assigning $1, $2, $3. Use ->pos(1), (2), (3),
diff --git a/lib/Path/Dispatcher/Match.pm b/lib/Path/Dispatcher/Match.pm
index a44a3a9..3963f65 100644
--- a/lib/Path/Dispatcher/Match.pm
+++ b/lib/Path/Dispatcher/Match.pm
@@ -88,7 +88,7 @@ Path::Dispatcher::Match - the result of a successful rule match
     $match->pos(1)              # "attack"
     $match->pos(2)              # "dragon"
 
-    $match->run                 # causes the player to attack the dragon
+    $match->run                 # attack("dragon")
 
 =head1 DESCRIPTION
 

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



More information about the Bps-public-commit mailing list