[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90020

John Napiorkowski jjn1056 at yahoo.com
Thu Feb 28 15:28:57 GMT 2013


----- Original Message -----

> From: Robert Rothenberg <robrwo at gmail.com>
> To: The elegant MVC web framework <catalyst at lists.scsys.co.uk>
> Cc: =

> Sent: Thursday, February 28, 2013 9:10 AM
> Subject: Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90020
> =

> On 28/02/13 13:40 Alexander Hartmaier wrote:
>>  The Catalyst team is proud to announce the latest version of =

> Catalyst::Runtime.
>>  John Napiorkowski wrote a great blog post [1] about its new features and
>>  asks for your comments and suggestions for upcoming features.
>> =

>>  |=A0 ||! Catalyst::Action now defines 'match_captures' so it is no =

> long
>>  considered|
>>  |=A0 =A0 ||an optional method.=A0 This might break you code if you have=
 made =

> custom|
>>  |=A0 =A0 ||action roles/classes where you define 'match_captures'.=A0 Y=
ou =

> must change|
>>  |=A0 =A0 ||your code to use a method modifier (such as 'around').|
>>  |=A0 ||-| |New match method "Method($HTTP_METHOD)" where =

> $HTTP_METHOD in (GET,
>>  POST,|
>>  |=A0 =A0 ||PUT, HEAD, DELETE, OPTION) and shortcuts in controllers call=
ed =

> "GET,
>>  POST|
>>  |=A0 =A0 ||PUT, HEAD, DELETE, OPTION").=A0 Tests and documentation.=A0 =
Please =

> note
>>  if you|
>>  |=A0 =A0 ||are currently using Catalyst::ActionRole::MatchRequestMethod=
s there =

> may|
>>  |=A0 =A0 ||be compatibility issues.=A0 You should remove that actionrol=
e since =

> the
>>  built|
>>  |=A0 =A0 ||in behavior is compatible on its own.|
>>  |=A0 ||-| |Initial debug screen now shows HTTP Method Match info|
>>  |=A0 ||-| |security fixes in the way we handle redirects|
>>  |=A0 ||-| |Make Catalyst::Engine and Catalyst::Base immutable|
>>  |=A0 ||-| |Some test and documentation improvements|
>> =

>> =

> =

> Will this break Catalyst::Action::REST?

It should not because CAR works totally differently. =A0However if you are =
using Catalyst::ActionRole::MatchMethods
you no longer need to because this change basically cored that functionalit=
y.

The new http method matching role is only applied when the dispatcher notic=
es you've used one of the new subroutine attributes. =A0So unless you've do=
ne some custom action roles that use GET, POST, etc. you should have no tro=
uble.

As always I recommend you test before sending this to production. =A0And co=
mplain hard if you find problems.

John

> =

> =

> =

> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
> =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130228/a7fa4=
d33/attachment.htm


More information about the Catalyst mailing list