From: Florian Ragwitz Date: Fri, 17 Oct 2008 04:22:59 +0000 (+0000) Subject: Remove internal constants from the Engine::HTTP namespace. X-Git-Tag: 5.8000_03~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=64b2a0de8e2d92d0ea90b6757e95497174f97339;hp=443f472fe17ccd394e4db3df07cae42ba29de5ff Remove internal constants from the Engine::HTTP namespace. This adds a dependency to namespace::clean. --- diff --git a/Makefile.PL b/Makefile.PL index 7b48560..33e4592 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,6 +5,7 @@ perl_version '5.008001'; name 'Catalyst-Runtime'; all_from 'lib/Catalyst/Runtime.pm'; +requires 'namespace::clean'; requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00300'; requires 'Moose' => '0.59'; requires 'Carp'; diff --git a/lib/Catalyst/Engine/HTTP.pm b/lib/Catalyst/Engine/HTTP.pm index 0dfc8e3..7292f7d 100644 --- a/lib/Catalyst/Engine/HTTP.pm +++ b/lib/Catalyst/Engine/HTTP.pm @@ -19,6 +19,8 @@ require Catalyst::Engine::HTTP::Restarter::Watcher; use constant CHUNKSIZE => 64 * 1024; use constant DEBUG => $ENV{CATALYST_HTTP_DEBUG} || 0; +use namespace::clean -except => [qw/meta/]; + =head1 NAME Catalyst::Engine::HTTP - Catalyst HTTP Engine