From: Rafael Kitover Date: Tue, 22 Dec 2009 01:14:52 +0000 (+0000) Subject: revert passing args to coderef X-Git-Tag: 0.030~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-WrapCGI.git;a=commitdiff_plain;h=7a3e5a11ca57aebc997d0902119ffaab1080c9ea;hp=d5ba2ab2046dc314890bc7d3c2f9185f605d9f85 revert passing args to coderef --- diff --git a/Changes b/Changes index efff47d..a798808 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Catalyst-Controller-WrapCGI +0.024 2009-12-22 01:13:01 + - revert passing args to coderefs (some CGIs might implicitly shift off + @ARGV .) + 0.023 2009-12-22 00:41:10 - some code stole from CGI::Compile (until we can dep on it) - correct line numbers for CGIs diff --git a/lib/Catalyst/Controller/CGIBin.pm b/lib/Catalyst/Controller/CGIBin.pm index cc5218d..fa061c7 100644 --- a/lib/Catalyst/Controller/CGIBin.pm +++ b/lib/Catalyst/Controller/CGIBin.pm @@ -25,11 +25,11 @@ Catalyst::Controller::CGIBin - Serve CGIs from root/cgi-bin =head1 VERSION -Version 0.023 +Version 0.024 =cut -our $VERSION = '0.023'; +our $VERSION = '0.024'; =head1 SYNOPSIS diff --git a/lib/Catalyst/Controller/WrapCGI.pm b/lib/Catalyst/Controller/WrapCGI.pm index 5c6dfe7..7236da2 100644 --- a/lib/Catalyst/Controller/WrapCGI.pm +++ b/lib/Catalyst/Controller/WrapCGI.pm @@ -21,11 +21,11 @@ Catalyst::Controller::WrapCGI - Run CGIs in Catalyst =head1 VERSION -Version 0.023 +Version 0.024 =cut -our $VERSION = '0.023'; +our $VERSION = '0.024'; =head1 SYNOPSIS @@ -143,8 +143,6 @@ C<< $self->wrap_cgi($c, $coderef) >> Runs C<$coderef> in a CGI environment using L, returns an L. -C<$coderef> is passed the Controller instance, and C<$c>. - The CGI environment is set up based on C<$c>. The environment variables to pass on are taken from the configuration for your @@ -235,7 +233,7 @@ sub wrap_cgi { my $saved_error; $env->setup; - eval { $call->($self, $c) }; + eval { $call->() }; $saved_error = $@; $env->restore; diff --git a/lib/CatalystX/GlobalContext.pm b/lib/CatalystX/GlobalContext.pm index 94a3d3a..7fba5db 100644 --- a/lib/CatalystX/GlobalContext.pm +++ b/lib/CatalystX/GlobalContext.pm @@ -15,11 +15,11 @@ CatalystX::GlobalContext - Export Catalyst Context =head1 VERSION -Version 0.023 +Version 0.024 =cut -our $VERSION = '0.023'; +our $VERSION = '0.024'; =head1 SYNOPSIS