install_script 'script/re.pl';
+build_requires 'Test::More';
requires 'Moose';
requires 'MooseX::Object::Pluggable';
+requires 'MooseX::Getopt';
requires 'namespace::clean';
requires 'File::HomeDir';
requires 'File::Spec';
requires 'Term::ReadLine';
+requires 'Lexical::Persistence';
+requires 'Data::Dump::Streamer';
auto_install;
WriteAll;
use namespace::clean -except => [ 'meta' ];
use 5.8.1; # might work with earlier perls but probably not
-our $VERSION = '1.000000';
+our $VERSION = '1.001000'; # 1.1.0
with 'MooseX::Object::Pluggable';
Alternatively, use the 're.pl' script installed with the distribution
+ system$ re.pl
+
=head1 AUTHOR
Matt S Trout - mst (at) shadowcatsystems.co.uk (L<http://www.shadowcatsystems.co.uk/>)
--- /dev/null
+package Devel::REPL::Plugin::DDS;
+
+use Moose::Role;
+use Data::Dump::Streamer ();
+
+around 'print' => sub {
+ my $orig = shift;
+ my $self = shift;
+ my $to_dump = (@_ > 1) ? [@_] : $_[0];
+ my $out;
+ if (ref $to_dump) {
+ my $dds = Data::Dump::Streamer->new;
+ $dds->Freezer(sub { "$_[0]"; });
+ $dds->Data($to_dump);
+ $out = $dds->Out;
+ } else {
+ $out = $to_dump;
+ }
+ $self->$orig($out);
+};
+
+1;
#!/usr/bin/env perl
-use lib 'lib';
use Devel::REPL::Script 'run';
-
-#my $repl = Devel::REPL->new;
-
-#$repl->load_plugin('History');
-#$repl->load_plugin('LexEnv');
-#$repl->run;
--- /dev/null
+use strict;
+use warnings;
+use Test::More 'no_plan';
+
+use_ok('Devel::REPL');
+use_ok('Devel::REPL::Script');
+use_ok('Devel::REPL::Plugin::History');
+use_ok('Devel::REPL::Plugin::LexEnv');
+use_ok('Devel::REPL::Plugin::DDS');