keep $VERSION right in the repo
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / CompletionDriver / Keywords.pm
index decc6c8..90eb43d 100644 (file)
@@ -1,11 +1,18 @@
+use strict;
+use warnings;
 package Devel::REPL::Plugin::CompletionDriver::Keywords;
+
+our $VERSION = '1.003027';
+
 use Devel::REPL::Plugin;
+use Devel::REPL::Plugin::Completion;    # die early if cannot load
 use B::Keywords qw/@Functions @Barewords/;
-use namespace::clean -except => [ 'meta' ];
+use namespace::autoclean;
 
-with qw(
-  Devel::REPL::Plugin::Completion
-);
+sub BEFORE_PLUGIN {
+    my $self = shift;
+    $self->load_plugin('Completion');
+}
 
 around complete => sub {
   my $orig = shift;