| 1 |
Revision history for Path-Dispatcher |
| 2 |
|
| 3 |
1.08 2020-07-12 02:40:52Z |
| 4 |
- add abstracts to modules that were missing them (RT#132909) |
| 5 |
- add MooX::TypeTiny for optimized type checks |
| 6 |
|
| 7 |
1.07 2020-02-29 20:55:07Z |
| 8 |
- Switch from Any::Moose to Moo and Types::Standard |
| 9 |
based on PRs from chresomanci and hashbangperl |
| 10 |
|
| 11 |
1.06 2015-02-18 |
| 12 |
Switch packaging system to Dist::Zilla (David Pottage) |
| 13 |
https://github.com/sartak/path-dispatcher/pull/1 |
| 14 |
Thanks to the CPAN Pull Request Challenge :) |
| 15 |
|
| 16 |
1.05 2013-03-14 |
| 17 |
eval q{$'} before regex match when needed to soothe bleadperl |
| 18 |
Thanks Dave Mitchell! http://www.nntp.perl.org/group/perl.perl5.porters/2013/03/msg200156.html |
| 19 |
|
| 20 |
1.04 2011-09-01 |
| 21 |
Explicitly depend on Test::Fatal (reported by Jérôme Quelin [rt.cpan.org #70666]) |
| 22 |
|
| 23 |
Convert all tests from Test::Exception to Test::Fatal |
| 24 |
|
| 25 |
1.03 2011-08-30 |
| 26 |
Provisional support for arbitrary payloads, not just code blocks, as results |
| 27 |
See https://github.com/sartak/path-dispatcher/blob/master/t/200-payload.t |
| 28 |
Eventually blocks will be deprecated, but not for a while. Internally blocks are |
| 29 |
rewritten as payloads so if you're doing deep magic with PD you may be exposed to |
| 30 |
that implementation detail. |
| 31 |
|
| 32 |
1.02 2010-11-02 |
| 33 |
Various improvements to the handling of $match->leftover with undef |
| 34 |
|
| 35 |
1.01 2010-10-24 |
| 36 |
Skip t/026-named-captures.t if you don't have 5.10.1 |
| 37 |
|
| 38 |
Give matches a ->parent for inspecting an Under prefix rule's captures etc |
| 39 |
|
| 40 |
1.00 2010-10-17 |
| 41 |
Bump to 1.0 to indicate back compat breakage |
| 42 |
|
| 43 |
Add match->named($key) for pulling out a named capture |
| 44 |
|
| 45 |
Use Try::Tiny to avoid swallowing exceptions (rafl) |
| 46 |
|
| 47 |
0.16 2010-10-17 |
| 48 |
** BACKWARDS INCOMPATIBLE CHANGE: Pass the match object into rule |
| 49 |
** blocks rather than assigning $1, $2, $3. Use ->pos(1), (2), (3), |
| 50 |
** etc. instead. This cleans up the code a lot and makes |
| 51 |
** Path-Dispatcher more flexible. |
| 52 |
|
| 53 |
Add support for named captures |
| 54 |
|
| 55 |
Make all attributes read-only. If you need something to be read-write, |
| 56 |
I am open to such a change. Just let me know! |
| 57 |
|
| 58 |
Make _dispatcher_rule private |
| 59 |
|
| 60 |
Remove trace/readable_attribute/name support. This wants to be |
| 61 |
implemented in a different, better, more comprehensive way. |
| 62 |
|
| 63 |
Add documentation for shell tab completion |
| 64 |
|
| 65 |
Plenty other updated documentation |
| 66 |
|
| 67 |
0.15 2010-03-16 09:40:40Z |
| 68 |
** Factored Path-Dispatcher-Declarative into its own distribution |
| 69 |
** Be sure to update your dependency lists! |
| 70 |
|
| 71 |
Implement ->complete for Rule::Dispatch |
| 72 |
|
| 73 |
Add Path::Dispatcher::Rule::Alternation |
| 74 |
|
| 75 |
Implement case insensitivity for Rule::Eq |
| 76 |
|
| 77 |
Add Path::Dispatcher::Rule::Sequence - like Rule::Tokens but |
| 78 |
better! |
| 79 |
|
| 80 |
Add Path::Dispatcher::Rule::Enum |
| 81 |
|
| 82 |
Path autoboxing has been factored out into a private method for |
| 83 |
more overridability |
| 84 |
|
| 85 |
A few documentation improvements as usual :) |
| 86 |
|
| 87 |
0.14 2009-12-31 13:18:19Z |
| 88 |
Add Path::Dispatcher->complete for tab-completion |
| 89 |
|
| 90 |
Handle delimiters better in Path::Dispatcher::Rule::Tokens |
| 91 |
|
| 92 |
Factor out a _prefix method for rules to simplify their logic |
| 93 |
|
| 94 |
0.13 2009-08-09 13:38:19Z |
| 95 |
Add unshift_rule to classes that do Role::Rules |
| 96 |
|
| 97 |
Several distribution improvements |
| 98 |
|
| 99 |
0.12 2009-04-17 03:21:05Z |
| 100 |
Fix a bug with undefined capture variables being converted to the |
| 101 |
empty string and throwing warnings (reported by obra) |
| 102 |
|
| 103 |
Give Path::Dispatcher::Rule::Dispatch a "rules" method |
| 104 |
|
| 105 |
0.11 2009-04-15 02:47:50Z |
| 106 |
Fix some misnamed keys caused by de-AttributeHelper-ing |
| 107 |
|
| 108 |
Stop using some deprecated Moose features |
| 109 |
|
| 110 |
Doc fixes (Sartak and confound) |
| 111 |
|
| 112 |
0.10 2009-03-06 23:40:42Z |
| 113 |
The way you specify token_delimiter and case_sensitive_tokens has |
| 114 |
changed! You now say: |
| 115 |
use Path::Dispatcher::Declarative -base, -defaults => { |
| 116 |
token_delimiter => '/', |
| 117 |
case_sensitive_tokens => 0, |
| 118 |
}; |
| 119 |
|
| 120 |
Added Path::Dispatcher::Cookbook (grink) |
| 121 |
|
| 122 |
Added Path::Dispatcher::Builder which now backs |
| 123 |
Path::Dispatcher::Declarative (grink) |
| 124 |
|
| 125 |
then {} rule which is an "always" with that uses next_rule (grink) |
| 126 |
|
| 127 |
chain {} rule which is like Catalyst's chain (grink) |
| 128 |
|
| 129 |
Remove the last vestiges of stages (Sartak) |
| 130 |
|
| 131 |
Many minor fixes (Sartak) |
| 132 |
|
| 133 |
0.09 2009-02-09 21:12:18Z |
| 134 |
Avoid using method modifiers since it's potentially another dep. |
| 135 |
|
| 136 |
0.08 2009-02-05 12:15:38Z |
| 137 |
Inline uses of MooseX::AttributeHelpers. |
| 138 |
|
| 139 |
Now use "Any::Moose" (basically Squirrel done right) |
| 140 |
|
| 141 |
0.07 2009-01-28 01:39:37Z |
| 142 |
Paths are now boxed with the new Path::Dispatcher::Path. |
| 143 |
|
| 144 |
New rule type "Intersection" which matches only when each of its |
| 145 |
subrules match. |
| 146 |
|
| 147 |
New rule type "Metadata" which matches the optional metadata (a hash) |
| 148 |
of the path. The sugar for this is: on { foo => "bar" } |
| 149 |
|
| 150 |
New rule type "Eq" which just does basic string equality. |
| 151 |
|
| 152 |
Rules can now be named. In Path::Dispatcher::Declarative, each rule is |
| 153 |
named with its dispatcher's name and the file:line where the rule was |
| 154 |
defined. |
| 155 |
|
| 156 |
Dispatch tracing output, for debugging. Set environment variable |
| 157 |
PATH_DISPATCHER_TRACE to a number. The higher the number, the more |
| 158 |
output will be generated. The current maximum value of 10 will dump |
| 159 |
code references. |
| 160 |
|
| 161 |
0.06 2008-11-15 21:02:29Z |
| 162 |
New rule type "Empty" which matches only the empty path. |
| 163 |
|
| 164 |
Declarative: |
| 165 |
on '' now matches only the empty path. |
| 166 |
|
| 167 |
0.05 2008-11-15 16:36:41Z |
| 168 |
Improve test coverage |
| 169 |
New rule type "Always" which always matches. |
| 170 |
|
| 171 |
Match: |
| 172 |
ends_dispatch is now an attribute |
| 173 |
|
| 174 |
Rule::Tokens: |
| 175 |
Support for case insensitive matching |
| 176 |
Fix for tokens' type constraint |
| 177 |
|
| 178 |
Dispatcher: |
| 179 |
Allow rules to be specified in the constructor (a typo prevented it) |
| 180 |
|
| 181 |
Dispatch: |
| 182 |
first_match, has_match methods which do what you'd expect |
| 183 |
The run method will now collect return values and return them |
| 184 |
|
| 185 |
Declarative: |
| 186 |
redispatch_to sugar which adds a Dispatch rule |
| 187 |
"on '' => sub" as a special case will match all paths |
| 188 |
|
| 189 |
|
| 190 |
0.04 2008-10-28 17:56:41Z |
| 191 |
Dist fixes |
| 192 |
|
| 193 |
0.03 2008-10-28 17:42:47Z |
| 194 |
"rewrite" rules |
| 195 |
Super dispatchers are GONE! Yay. |
| 196 |
New Rule::Dispatch which just takes some other dispatcher. nothingmuch++ |
| 197 |
|
| 198 |
Rule::Tokens: |
| 199 |
Fix for always matching just a prefix whether you wanted to or not |
| 200 |
Make tokenization and untokenization into methods for overriding |
| 201 |
|
| 202 |
Declarative: |
| 203 |
-base is required, otherwise unrelated modules using your dispatcher |
| 204 |
would get their @ISA set! |
| 205 |
|
| 206 |
|
| 207 |
0.02 2008-10-20 14:10:12Z |
| 208 |
Documentation! |
| 209 |
Prefix matches |
| 210 |
"under" rules |
| 211 |
Remove stages until they're actually needed |
| 212 |
|
| 213 |
Rule: |
| 214 |
The codeblock is no longer required |
| 215 |
Empty tokens are ignored |
| 216 |
The token attribute is now 'delimiter' instead of 'splitter' |
| 217 |
Allow regexes and alternations in the token rules |
| 218 |
|
| 219 |
Match: |
| 220 |
No longer Dispatch::Match |
| 221 |
Created by the Rule instead of the Dispatcher |
| 222 |
|
| 223 |
Declarative: |
| 224 |
You now must subclass Path::Dispatcher::Declarative |
| 225 |
Allow overriding the token delimiter |
| 226 |
|
| 227 |
0.01 2008-08-27 11:04:18Z |
| 228 |
Initial release |
| 229 |
|