forked from markstos/CGI--Application--Dispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changes
212 lines (167 loc) · 8.53 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
Revision history for Perl extension CGI::Application::Dispatch.
3.07 September 9th, 2011
Fix t/cgi.t test failures caused by Try::Tiny refactor in 3.05 (Yoshihiro Sasaki)
3.06 September 9th, 2011
Typo fix in "use" statement, introduced in 3.05 (Nicholas Bamber)
3.05 September 5th, 2011
Removed Exception::Class::TryCatch with the already required Try::Tiny thereby eliminating
one dependency. (Timothy Appnel)
3.04 June 29th, 2011
No code changes.
[DOCUMENTATION]
- spelling fixes (Nicholas Bamber)
3.03 June 25th, 2011
No code changes.
[INTERNALS]
- further dependency refinement and a typo fix. (Nicholas Bamber)
3.02 June 24th, 2011
No code changes.
[INTERNALS]
- further refined dependency definitions. (Nicholas Bamber)
3.01 Jun 23, 2011
No code changes.
[INTERNALS]
- Fixed Build.PL issue that was causing tests to fail in a lot of environments. (Brad Oaks)
- cleaned up MANIFEST
3.00 Jun 16, 2011
[FEATURES]
- PSGI support is improved. CGI::Application::Dispatch is now been
rewritten and is included in this distribution. It is no longer a
wrapper around the older dispatcher, but is completely PSGI-native.
Performance should be improved a bit as well.
[THINGS THAT MIGHT BREAK YOUR CODE]
As part of the significant update to PSGI support, you'll need to update a
couple lines of code in your "dispatch.cgi" script if you were using an
older version of CGI::Application::Dispatch::PSGI. See the section on
"Backwards Compatibility" in that documentation.
[INTERNALS]
- CGI::Application 4.5 is now required for the newer native PSGI support.
- Exceptions in CGI::Application::Dispatch::PSGI are now handled with
HTTP::Exception. This in turn depends on HTTP::Status, which is
currently in a distribution which depends on HTML::Parser, which depends
having a C-compiler available. I don't consider this ideal, as I'd like
to be able to support the easy installation of a pure-Perl
CGI::Application stack. This could possibly be addressed in the future by
removing the false dependency on a C-compiler from HTTP::Status, or we
could return to use Exception::Class directly for exception handling.
The except format of the default thrown exceptions may change in the
future.
2.18 Sep 9, 2010
- Update Build.PL to require a newer version of "version", to address
a rare installation problem. (RT#56283) Thanks to Jim Brandt and others.
2.17 Dec 30, 2009
- Update examples to use FindBin::Real instead of FindBin, since FindBin is not
fully mod_perl compatible. (Mark Stosberg)
- Fix typo in POD (Alexander Becker)
2.16 Mar 23, 2009
- Fix: "$app->run() error handler breaks exception objects." RT#43340 (dekimsey)
- Documentation improvements (Dave Baker, thinc)
- remove "Makefile.PL", which appears to related to some test failures. Build.PL
seems to work reliably. If removing Makefile.PL is a problem for you, maybe you have
a better solution to RT#39793: https://rt.cpan.org/Ticket/Display.html?id=39793
(Mark Stosberg)
2.15 Dec 4, 2008
- Logging improvement: Quit duplicating $ENV{REQUEST_URI} for Not Found requests (Mark Stosberg)
- Logging improvement: Remove stray "'" character (Mark Stosberg)
2.14 Nov 2, 2008
- New feature: $ENV{PATH_INFO} is now abstracted through dispatch_path(). (RT#34069, Bradley Bailey)
- Attempted fix for "Couldn't open t/TEST.PL" error, RT#39793. Add comments to that ticket
if you still have "make test" problems with Apache::Test. (Puneet Kishor, Kevin, Mark Stosberg)
http://rt.cpan.org/Public/Bug/Display.html?id=39793
2.13 Sep 16, 2008
- Fixing various install issues by having a dumber Makefile.PL and Build.PL
(#37859, Thanks to lkundrak)
2.12 Jan 03, 2007
- Creating our own Makefile.PL instead of relying on create_makefile_pl
- Fixed test problems with GET() not being exported by implicitly by some
versions of Apache::Test
- Fixed RT #32037 and clarifying some documentation
2.11 Oct 11, 2007
- Fixed RT #30135 by using "slash" and "backslash" properly [Ricardo Signes and Michael Peters]
- Fixed RT #30134 [Ricardo Signes and Michael Peters]
- Fixed RT #28979 [GTERMARS]
- Fixed RT #25298 [[email protected] and Michael Peters]
- Fixed RT #25297 [[email protected] and Michael Peters]
- Fixing cpan install problem with autogenerated Makefile.PL
- Fixing failing test when IO::Scalar is not installed
2.10 Jan 15, 2007
- Added REST support with 'auto_rest', 'auto_rest_lc' and '[METHOD]' support in dispatch rules [Michael Peters]
- Added wildcard matching token to dispatch rules [Shawn Sorichetti]
- Removed url caching [Michael Peters, Timothy Appnel]
- Documentation fixes in examples [dsteinbrunner, ZACKSE and Stew Heckenberg]
2.03 Sep 29, 2006
- When running a cached URL, we were mistakenly using the '$r' object
from the cached request instead of the newly given one under mod_perl.
2.02 Aug 16, 2006
- args_to_new were not merging PARAMS properly [Michael Peters]
2.01
- Improved docs for CGI::Application::Dispatch::Regexp, including
a typo fix in the Synopsis. [Mark Stosberg]
- Fixed bug in mod_perl 2 where status/error codes were sent to the browser
after the content [Michael Peters]
2.00 Jul 3rd, 2006
- Some errors in run() execution were being silently ignored [Michael Peters]
- POD correction [Ron Savage]
- When the PATH_INFO can't be parsed, a proper 404 is returned instead of
an internal server error. [Mark Stosberg]
- Fix error page printing. [Mark Stosberg]
- Added experimental CGI::Application::Dispatch::Regexp to distribution
2.00_05
- Fully working on mod_perl 2
- Using Exception::Class internally to handle exceptions instead of passing around return codes
- Added 'not_found' option to dispatch()
- Added more flexible error handling [Viacheslav Sheveliov]
- Improve mod_rewrite examples [Mark Stosberg]
- removed now unused variables [Viacheslav Sheveliov]
- speed up some of the rule-to-regex processing [Viacheslav Sheveliov]
2.00_04
- handler() now sends a 404 if the run mode can't be found either
- some environments don't set the PATH_INFO if it's blank, so handle that better
- added _get_cache() and _set_cache() protected methods to further help subclassing [Viacheslav Sheveliov, Michael Peters]
- now passing same args passed from dispatch() into dispatch_args() [Viacheslav Sheveliov, Michael Peters) ]
- Added built-in 404 page if no application is found to dispatch to. [Mark Stosberg]
2.00_03
- Added cache of REQUEST_URI -> dispatch mapping [Mark Stosberg, Michael Peters]
- fixed local args_to_new overrides [Mark Stosberg]
- added support for debug flag to dispatch() [Mark Stosberg]
2.00_02
- Added optional-variable tokens to dispatch tables
- added more docs and examples for dispatch tables
2.00_01
- Initial rewrite of new API and new dispatch table
1.04 (Jun. 27, 2005)
- Small changes to correspond to official mod_perl 2.0 release
and API change (see http://perl.apache.org/docs/2.0/rename.html)
1.03 (Mar. 4, 2005)
- 100% test coverage
1.02 (Jan. 20, 2005)
- Added mod_perl 2 support
- Added TABLE dispatch option
- fixed bug with a PATH_INFO value of '/'
- fixed bug where DEFAULT doesn't have an initial '/'
- fixed testing issues when Apache::TestMB is not installed [Cees Hek]
- fixed security whole with reqard to untainting module names [Cees Hek]
- minor documentation improvements
1.01 (Jan. 8, 2005)
- moved dependancy on perl 5.8.x to 5.6.x since method attributes were include
- added Apache::Test as a build dependancy
1.0 (Jan. 6, 2005)
- fixed bug which prevented overriding of certain methods
- upped required perl version to 5.8.0 because of method attributes
0.04
- added CGIAPP_DISPATCH_DEFAULT option to specify default PATH_INFO value
- added CGIAPP_DISPATCH_PATH which gets passed to new()'s PARAMS for use
by the application module
- any parameters passed into dispatch() are then passed into the
application's new()
- added Apache::Test tests to the test suite
0.03 (Oct. 29, 2004)
- missing files from MANIFEST
- minor optimizations
0.02 (Oct. 19, 2004)
- find and fix document mistakes
- add aliases to options (PREFIX and RM) for dispatch()
- improved test
- mention security concern with not using PREFIX
0.01 (Sep. 12, 2004)
- First version