From: oliver Date: Sun, 18 Jan 2009 00:44:43 +0000 (+0000) Subject: make plugins be M::I features so dependencies are optional X-Git-Tag: v1.003015~73 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab213f1fb1871c2b753fcea321938e8815a04c39;p=p5sagit%2FDevel-REPL.git make plugins be M::I features so dependencies are optional Add irc nick for oliver git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@5317 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/Changes b/Changes index c44e05a..0afbd9f 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,6 @@ +1.3.2 + - make plugins be M::I features so dependencies are optional + - Add irc nick for oliver 1.3.1 - Fix brokenness in the distribution manifest 1.3.0 diff --git a/Makefile.PL b/Makefile.PL index 0c7f38b..2752336 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,25 +7,60 @@ all_from 'lib/Devel/REPL.pm'; install_script 'script/re.pl'; +# core +requires 'File::Spec'; +requires 'Term::ReadLine'; + +# rest requires 'Moose' => '0.64'; requires 'MooseX::Object::Pluggable' => '0.0009'; requires 'MooseX::Getopt' => '0.15'; requires 'MooseX::AttributeHelpers' => '0.14'; requires 'namespace::clean'; requires 'File::HomeDir'; -requires 'Lexical::Persistence'; -requires 'Data::Dump::Streamer'; -requires 'PPI'; -requires 'B::Keywords'; requires 'Task::Weaken'; -requires 'App::Nopaste'; - -# core -requires 'File::Spec'; -requires 'Term::ReadLine'; +requires 'B::Concise'; requires 'Term::ANSIColor'; +requires 'Devel::Peek'; + +feature 'Completion plugin - extensible tab completion', + -default => 0, + 'PPI' => 0; + +feature 'DDS plugin - better format results with Data::Dump::Streamer', + -default => 0, + 'Data::Dump::Streamer' => 0; + +feature 'INC completion driver - tab complete module names in use and require', + -default => 0, + 'File::Next' => 0; + +feature 'Keywords completion driver - tab complete Perl keywords and operators', + -default => 0, + 'B::Keywords' => 0; + +feature 'LexEnv plugin - variables declared with "my" persist between statements', + -default => 0, + 'Lexical::Persistence' => 0; + +feature 'MultiLine::PPI plugin - continue reading lines until all blocks are closed', + -default => 0, + 'PPI' => 0; + +feature 'Nopaste plugin - upload a session\'s input and output to a Pastebin', + -default => 0, + 'App::Nopaste' => 0; + +feature 'PPI plugin - PPI dumping of Perl code', + -default => 0, + 'PPI' => 0; + +feature 'Refresh plugin - automatically reload libraries with Module::Refresh', + -default => 0, + 'Module::Refresh' => 0; test_requires 'Test::More'; auto_install; WriteAll; + diff --git a/README b/README index 3f9861a..060c48c 100644 --- a/README +++ b/README @@ -164,18 +164,25 @@ REQUIREMENTS * File::HomeDir - * Lexical::Persistence + * Task::Weaken - * Data::Dump::Streamer + Optionally, some plugins if installed will require the following + modules: * PPI + * Data::Dump::Streamer + + * File::Next + * B::Keywords - * Task::Weaken + * Lexical::Persistence * App::Nopaste + * Module::Refresh + AUTHOR Matt S Trout - mst (at) shadowcatsystems.co.uk () @@ -186,7 +193,7 @@ CONTRIBUTORS epitaph mgrimes - mgrimes (at) cpan dot org Shawn M Moore - sartak (at) gmail.com - Oliver Gorwits + Oliver Gorwits - oliver on irc.perl.org LICENSE This library is free software under the same terms as perl itself diff --git a/lib/Devel/REPL.pm b/lib/Devel/REPL.pm index 6d71798..9989e8c 100644 --- a/lib/Devel/REPL.pm +++ b/lib/Devel/REPL.pm @@ -5,7 +5,7 @@ use Moose; use namespace::clean -except => [ 'meta' ]; use 5.008001; # backwards compat, doesn't warn like 5.8.1 -our $VERSION = '1.003001'; # 1.3.1 +our $VERSION = '1.003002'; # 1.3.2 with 'MooseX::Object::Pluggable'; @@ -346,7 +346,17 @@ L =item * -L +L + +=back + +Optionally, some plugins if installed will require the following modules: + +=over 4 + +=item * + +L =item * @@ -354,7 +364,7 @@ L =item * -L +L =item * @@ -362,12 +372,16 @@ L =item * -L +L =item * L +=item * + +L + =back =head1 AUTHOR @@ -388,7 +402,7 @@ Matt S Trout - mst (at) shadowcatsystems.co.uk (L