From: Karen Etheridge Date: Sun, 15 Mar 2015 05:28:15 +0000 (-0700) Subject: keep all namespaces clean X-Git-Tag: v1.003027~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=commitdiff_plain;h=1d6c2dbc8cd96877b4f8df5698b6ff18d2fddac8 keep all namespaces clean --- diff --git a/lib/Devel/REPL/Error.pm b/lib/Devel/REPL/Error.pm index 58b1013..82a6815 100644 --- a/lib/Devel/REPL/Error.pm +++ b/lib/Devel/REPL/Error.pm @@ -1,6 +1,7 @@ package Devel::REPL::Error; use Moose; +use namespace::autoclean; # FIXME get nothingmuch to refactor and release his useful error object diff --git a/lib/Devel/REPL/Meta/Plugin.pm b/lib/Devel/REPL/Meta/Plugin.pm index 03f19f1..e08726e 100644 --- a/lib/Devel/REPL/Meta/Plugin.pm +++ b/lib/Devel/REPL/Meta/Plugin.pm @@ -3,6 +3,7 @@ use warnings; package Devel::REPL::Meta::Plugin; use Moose; +use namespace::autoclean; extends 'Moose::Meta::Role'; diff --git a/lib/Devel/REPL/Plugin.pm b/lib/Devel/REPL/Plugin.pm index dd5cdee..e1a6d8d 100644 --- a/lib/Devel/REPL/Plugin.pm +++ b/lib/Devel/REPL/Plugin.pm @@ -4,6 +4,7 @@ package Devel::REPL::Plugin; use Devel::REPL::Meta::Plugin; use Moose::Role (); +use namespace::autoclean; sub import { my $target = caller; diff --git a/lib/Devel/REPL/Plugin/Commands.pm b/lib/Devel/REPL/Plugin/Commands.pm index 4f99734..5cf0893 100644 --- a/lib/Devel/REPL/Plugin/Commands.pm +++ b/lib/Devel/REPL/Plugin/Commands.pm @@ -4,8 +4,8 @@ package Devel::REPL::Plugin::Commands; use Devel::REPL::Plugin; use Scalar::Util qw(weaken); - use namespace::autoclean; + our $COMMAND_INSTALLER; has 'command_set' => ( diff --git a/lib/Devel/REPL/Plugin/DDC.pm b/lib/Devel/REPL/Plugin/DDC.pm index 26fdd13..97f3239 100644 --- a/lib/Devel/REPL/Plugin/DDC.pm +++ b/lib/Devel/REPL/Plugin/DDC.pm @@ -4,6 +4,7 @@ package Devel::REPL::Plugin::DDC; use Devel::REPL::Plugin; use Data::Dumper::Concise (); +use namespace::autoclean; around 'format_result' => sub { my $orig = shift; diff --git a/lib/Devel/REPL/Plugin/DDS.pm b/lib/Devel/REPL/Plugin/DDS.pm index 6b4dde7..ee60a84 100644 --- a/lib/Devel/REPL/Plugin/DDS.pm +++ b/lib/Devel/REPL/Plugin/DDS.pm @@ -4,6 +4,7 @@ package Devel::REPL::Plugin::DDS; use Devel::REPL::Plugin; use Data::Dump::Streamer (); +use namespace::autoclean; around 'format_result' => sub { my $orig = shift; diff --git a/lib/Devel/REPL/Plugin/ReadLineHistory.pm b/lib/Devel/REPL/Plugin/ReadLineHistory.pm index 6a50e7f..3fb9c9d 100644 --- a/lib/Devel/REPL/Plugin/ReadLineHistory.pm +++ b/lib/Devel/REPL/Plugin/ReadLineHistory.pm @@ -10,6 +10,7 @@ package Devel::REPL::Plugin::ReadLineHistory; use Devel::REPL::Plugin; use File::HomeDir; use File::Spec; +use namespace::autoclean; my $hist_file = $ENV{PERLREPL_HISTFILE} || File::Spec->catfile(File::HomeDir->my_home, '.perlreplhist'); diff --git a/lib/Devel/REPL/Profile.pm b/lib/Devel/REPL/Profile.pm index 3ae853c..9f17dde 100644 --- a/lib/Devel/REPL/Profile.pm +++ b/lib/Devel/REPL/Profile.pm @@ -1,8 +1,8 @@ package Devel::REPL::Profile; use Moose::Role; - requires 'apply_profile'; +use namespace::autoclean; =head1 NAME