CGI-Application-Dispatch
view release on metacpan or search on metacpan
license => 'perl',
configure_requires => { 'Module::Build' => 0.38 },
requires => {
'perl' => '5.6.0',
# a new 'version' is only required to solve rare install problem.
# https://rt.cpan.org/Ticket/Display.html?id=56283
'version' => 0.82,
'CGI::Application' => '4.50', # For native PSGI support.
'HTTP::Exception' => 0,
'Exception::Class' => 1.2,
'Try::Tiny' => 0,
},
build_requires => {
'CGI::PSGI' => 0, # recommended by CGI::Application, but not required. We still need it at least to test with.
'Test::More' => 0,
'Test::LongString' => 0,
'Plack' => 0.9956, # really, we just depend on Plack::Test, but Plack::Test has not declared a version.
$have_apache_test ? ( 'Apache::Test' => 0 ) : (),
},
meta_merge => {
resources => {
- Docs have been expanded to explain how /foo/:rm? resolves, and interaction
with start_mode() when no run mode is found. (Mark Stosberg)
[INTERNALS]
- Fix diagnostic message in some cases when exceptions are thrown (Michael Lackhoff)
- Added test coverage for auto_rest to CGI::Application::Dispatch::PSGI (Mark Stosberg)
- POD formatting fix in Dispatch.pm
- Fix Perl 5.14 compatibility warning (chorny, RENEEB@cpan.org, SILASMONK@cpan.org)
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.
"configure" : {
"requires" : {
"Module::Build" : "0.38"
}
},
"runtime" : {
"requires" : {
"CGI::Application" : "4.50",
"Exception::Class" : "1.2",
"HTTP::Exception" : 0,
"Try::Tiny" : 0,
"perl" : "v5.6.0",
"version" : "0.82"
}
}
},
"provides" : {
"CGI::Application::Dispatch" : {
"file" : "lib/CGI/Application/Dispatch.pm",
"version" : "3.12"
},
CGI::Application::Dispatch::PSGI:
file: lib/CGI/Application/Dispatch/PSGI.pm
version: 3.12
CGI::Application::Dispatch::Regexp:
file: lib/CGI/Application/Dispatch/Regexp.pm
version: 3.04
requires:
CGI::Application: 4.50
Exception::Class: 1.2
HTTP::Exception: 0
Try::Tiny: 0
perl: v5.6.0
version: 0.82
resources:
license: http://dev.perl.org/licenses/
repository: https://github.com/markstos/CGI--Application--Dispatch
version: 3.12
lib/CGI/Application/Dispatch.pm view on Meta::CPAN
package CGI::Application::Dispatch;
use strict;
use warnings;
use Carp 'carp';
use Try::Tiny;
our $VERSION = '3.12';
our $DEBUG = 0;
BEGIN {
use constant IS_MODPERL => exists($ENV{MOD_PERL});
use constant IS_MODPERL2 =>
(IS_MODPERL() and exists $ENV{MOD_PERL_API_VERSION} and $ENV{MOD_PERL_API_VERSION} == 2);
if(IS_MODPERL2()) {
( run in 0.613 second using v1.01-cache-2.11-cpan-05444aca049 )