Devel-REPL-Plugin-DDP

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      },
      "develop" : {
         "requires" : {
            "Dist::Milla" : "v1.0.8",
            "Test::Pod" : "1.41"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::Printer" : "0.17",
            "Devel::REPL::Plugin" : "0",
            "perl" : "5.008005"
         }
      },
      "test" : {
         "requires" : {
            "Test::More" : "0.88"
         }
      }
   },
   "release_status" : "stable",

META.yml  view on Meta::CPAN

no_index:
  directory:
    - t
    - xt
    - inc
    - share
    - eg
    - examples
requires:
  Data::Printer: 0.17
  Devel::REPL::Plugin: 0
  perl: 5.008005
resources:
  bugtracker: https://github.com/tsibley/Devel-REPL-Plugin-DDP/issues
  homepage: https://github.com/tsibley/Devel-REPL-Plugin-DDP
  repository: https://github.com/tsibley/Devel-REPL-Plugin-DDP.git
version: 0.05
x_contributors:
  - 'Andreas Voegele <andreas@andreasvoegele.com>'
  - 'Thomas Sibley <tsibley@cpan.org>'

Makefile.PL  view on Meta::CPAN


my %WriteMakefileArgs = (
  "ABSTRACT" => "Format return values with Data::Printer",
  "AUTHOR" => "Thomas Sibley <tsibley\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Devel-REPL-Plugin-DDP",
  "EXE_FILES" => [],
  "LICENSE" => "perl",
  "NAME" => "Devel::REPL::Plugin::DDP",
  "PREREQ_PM" => {
    "Data::Printer" => "0.17",
    "Devel::REPL::Plugin" => 0
  },
  "TEST_REQUIRES" => {
    "Test::More" => "0.88"
  },
  "VERSION" => "0.05",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Data::Printer" => "0.17",
  "Devel::REPL::Plugin" => 0,
  "Test::More" => "0.88"
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

README  view on Meta::CPAN

NAME
    Devel::REPL::Plugin::DDP - Format return values with Data::Printer

DESCRIPTION
    Use this in your Devel::REPL profile or load it from your "re.pl"
    script.

    You'll also want to make sure your profile or script runs the following:

        $_REPL->normal_color("reset");

    or disables the standard Colors plugin.

cpanfile  view on Meta::CPAN

requires 'perl', '5.008005';

requires 'Data::Printer' => '>=0.17';
requires 'Devel::REPL::Plugin';

on test => sub {
    requires 'Test::More', '0.88';
};

lib/Devel/REPL/Plugin/DDP.pm  view on Meta::CPAN

package Devel::REPL::Plugin::DDP;

use strict;
use 5.008_005;
our $VERSION = '0.05';

use Devel::REPL::Plugin;
use Data::Printer use_prototypes => 0;

around 'format_result' => sub {
    my $orig = shift;
    my $self = shift;
    my @to_dump = @_;
    my $out;
    for (@to_dump) {
        my $buf;
        p(\$_,

lib/Devel/REPL/Plugin/DDP.pm  view on Meta::CPAN

};

1;

__END__

=encoding utf-8

=head1 NAME

Devel::REPL::Plugin::DDP - Format return values with Data::Printer

=head1 DESCRIPTION

Use this in your Devel::REPL profile or load it from your C<re.pl> script.

You'll also want to make sure your profile or script runs the following:

    $_REPL->normal_color("reset");

or disables the L<standard Colors plugin|Devel::REPL::Plugin::Colors>.

=head1 AUTHOR

Thomas Sibley E<lt>tsibley@cpan.orgE<gt>

=head1 COPYRIGHT

Copyright 2013- Thomas Sibley

=head1 LICENSE

t/basic.t  view on Meta::CPAN

use strict;
use Test::More;
use Devel::REPL::Plugin::DDP;

# replace with the actual test
ok 1;

done_testing;



( run in 0.411 second using v1.01-cache-2.11-cpan-4ee56698ea0 )