Remove internal constants from the Engine::HTTP namespace.
Florian Ragwitz [Fri, 17 Oct 2008 04:22:59 +0000 (04:22 +0000)]
This adds a dependency to namespace::clean.

Makefile.PL
lib/Catalyst/Engine/HTTP.pm

index 7b48560..33e4592 100644 (file)
@@ -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';
index 0dfc8e3..7292f7d 100644 (file)
@@ -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