[Bast-commits] r4444 - in trunk/Devel-REPL: .
lib/Devel/REPL/Plugin/CompletionDriver
Sartak at dev.catalyst.perl.org
Sartak at dev.catalyst.perl.org
Sat May 31 17:17:39 BST 2008
Author: Sartak
Date: 2008-05-31 17:17:39 +0100 (Sat, 31 May 2008)
New Revision: 4444
Modified:
trunk/Devel-REPL/
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm
Log:
r61340 at onn: sartak | 2008-05-31 12:17:19 -0400
Have the completion driver plugins load Completion
Have LexEnv completion driver load LexEnv instead of bitching about its absence
Property changes on: trunk/Devel-REPL
___________________________________________________________________
Name: svk:merge
- 08e7d58d-de06-4458-8c15-335e402ab116:/local/Devel-REPL:61338
6d2a1d83-d666-409f-9dbf-d3bfcf4e9009:/local/bast/broken_internets/Devel-REPL:80567
+ 08e7d58d-de06-4458-8c15-335e402ab116:/local/Devel-REPL:61340
6d2a1d83-d666-409f-9dbf-d3bfcf4e9009:/local/bast/broken_internets/Devel-REPL:80567
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm 2008-05-31 15:57:22 UTC (rev 4443)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm 2008-05-31 16:17:39 UTC (rev 4444)
@@ -2,6 +2,10 @@
use Devel::REPL::Plugin;
use namespace::clean -except => [ 'meta' ];
+with qw(
+ Devel::REPL::Plugin::Completion
+);
+
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm 2008-05-31 15:57:22 UTC (rev 4443)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm 2008-05-31 16:17:39 UTC (rev 4444)
@@ -4,6 +4,10 @@
use File::Spec;
use namespace::clean -except => [ 'meta' ];
+with qw(
+ Devel::REPL::Plugin::Completion
+);
+
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm 2008-05-31 15:57:22 UTC (rev 4443)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm 2008-05-31 16:17:39 UTC (rev 4444)
@@ -3,6 +3,10 @@
use B::Keywords qw/@Functions @Barewords/;
use namespace::clean -except => [ 'meta' ];
+with qw(
+ Devel::REPL::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 2008-05-31 15:57:22 UTC (rev 4443)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/LexEnv.pm 2008-05-31 16:17:39 UTC (rev 4444)
@@ -2,14 +2,11 @@
use Devel::REPL::Plugin;
use namespace::clean -except => [ 'meta' ];
-sub AFTER_PLUGIN {
- my ($_REPL) = @_;
+with qw(
+ Devel::REPL::Plugin::Completion
+ Devel::REPL::Plugin::LexEnv
+);
- if (!$_REPL->can('lexical_environment')) {
- warn "Devel::REPL::Plugin::CompletionDriver::LexEnv requires Devel::REPL::Plugin::LexEnv.";
- }
-}
-
around complete => sub {
my $orig = shift;
my ($self, $text, $document) = @_;
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm 2008-05-31 15:57:22 UTC (rev 4443)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/Methods.pm 2008-05-31 16:17:39 UTC (rev 4444)
@@ -2,7 +2,10 @@
use Devel::REPL::Plugin;
use namespace::clean -except => [ 'meta' ];
-with 'Devel::REPL::Plugin::FindVariable';
+with qw(
+ Devel::REPL::Plugin::Completion
+ Devel::REPL::Plugin::FindVariable
+);
around complete => sub {
my $orig = shift;
More information about the Bast-commits
mailing list