[Bast-commits] r5877 -
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver
oliver at dev.catalyst.perl.org
oliver at dev.catalyst.perl.org
Thu Apr 9 21:42:00 GMT 2009
Author: oliver
Date: 2009-04-09 22:41:59 +0100 (Thu, 09 Apr 2009)
New Revision: 5877
Modified:
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Turtles.pm
Log:
resolve rt.cpan#43807 three Completion drivers not loading Completion plugin
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm 2009-04-09 21:33:40 UTC (rev 5876)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm 2009-04-09 21:41:59 UTC (rev 5877)
@@ -2,6 +2,11 @@
use Devel::REPL::Plugin;
use namespace::clean -except => [ 'meta' ];
+sub BEFORE_PLUGIN {
+ my $self = shift;
+ $self->load_plugin('Completion');
+}
+
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm 2009-04-09 21:33:40 UTC (rev 5876)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm 2009-04-09 21:41:59 UTC (rev 5877)
@@ -2,6 +2,11 @@
use Devel::REPL::Plugin;
use namespace::clean -except => [ 'meta' ];
+sub BEFORE_PLUGIN {
+ my $self = shift;
+ $self->load_plugin('Completion');
+}
+
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Turtles.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Turtles.pm 2009-04-09 21:33:40 UTC (rev 5876)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Turtles.pm 2009-04-09 21:41:59 UTC (rev 5877)
@@ -1,10 +1,12 @@
-#!/usr/bin/perl
-
package Devel::REPL::Plugin::CompletionDriver::Turtles;
use Devel::REPL::Plugin;
-
use namespace::clean -except => [ "meta" ];
+sub BEFORE_PLUGIN {
+ my $self = shift;
+ $self->load_plugin('Completion');
+}
+
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
More information about the Bast-commits
mailing list