Compare commits

..

1 Commits

Author SHA1 Message Date
Florian Ragwitz 6b402d3357 Import of FLORA/CatalystX-REPL-0.03 from CPAN.
gitpan-cpan-distribution: CatalystX-REPL
gitpan-cpan-version:      0.03
gitpan-cpan-path:         FLORA/CatalystX-REPL-0.03.tar.gz
gitpan-cpan-author:       FLORA
gitpan-cpan-maturity:     released
2014-10-23 17:34:26 -05:00
8 changed files with 21 additions and 12 deletions
+3
View File
@@ -1,3 +1,6 @@
0.03 Fri, 10 Apr 2009 01:47:22 +0200
* Allow passing options to Carp::REPL.
0.02 Mon, 06 Apr 2009 22:28:52 +0100 0.02 Mon, 06 Apr 2009 22:28:52 +0100
* Doc improvmens (Ash Berlin, spurned on by Jon Rockway) * Doc improvmens (Ash Berlin, spurned on by Jon Rockway)
+1 -1
View File
@@ -11,4 +11,4 @@ requires:
Carp::REPL: 0 Carp::REPL: 0
Catalyst: 5.800006 Catalyst: 5.800006
namespace::clean: 0 namespace::clean: 0
version: 0.02 version: 0.03
+1 -1
View File
@@ -9,7 +9,7 @@ WriteMakefile(
NAME => 'CatalystX::REPL', NAME => 'CatalystX::REPL',
AUTHOR => 'Tomas\ Doran\ \<bobtfish\@bobtfish\.net\>\,\ Florian\ Ragwitz\ \<rafl\@debian\.org\>\,\ Ash\ Berlin\ \<ash\@cpan\.org\>', AUTHOR => 'Tomas\ Doran\ \<bobtfish\@bobtfish\.net\>\,\ Florian\ Ragwitz\ \<rafl\@debian\.org\>\,\ Ash\ Berlin\ \<ash\@cpan\.org\>',
ABSTRACT => 'read-eval-print-loop for debugging your Catalyst application', ABSTRACT => 'read-eval-print-loop for debugging your Catalyst application',
VERSION => '0.02', VERSION => '0.03',
EXE_FILES => [ qw() ], EXE_FILES => [ qw() ],
(eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()), (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
PREREQ_PM => { PREREQ_PM => {
+1 -1
View File
@@ -1,7 +1,7 @@
This archive contains the distribution CatalystX-REPL, version This archive contains the distribution CatalystX-REPL, version
0.02: 0.03:
read-eval-print-loop for debugging your Catalyst application read-eval-print-loop for debugging your Catalyst application
+1 -1
View File
@@ -1,5 +1,5 @@
name = CatalystX-REPL name = CatalystX-REPL
version = 0.02 version = 0.03
author = Tomas Doran <bobtfish@bobtfish.net> author = Tomas Doran <bobtfish@bobtfish.net>
author = Florian Ragwitz <rafl@debian.org> author = Florian Ragwitz <rafl@debian.org>
author = Ash Berlin <ash@cpan.org> author = Ash Berlin <ash@cpan.org>
+12 -6
View File
@@ -1,5 +1,5 @@
package CatalystX::REPL; package CatalystX::REPL;
our $VERSION = '0.02'; our $VERSION = '0.03';
# ABSTRACT: read-eval-print-loop for debugging your Catalyst application # ABSTRACT: read-eval-print-loop for debugging your Catalyst application
@@ -12,8 +12,9 @@ use namespace::clean -except => 'meta';
after setup_finalize => sub { after setup_finalize => sub {
my ($self) = @_; my ($self) = @_;
$SIG{__DIE__} = \&Carp::REPL::repl if (my $repl_options = Catalyst::Utils::env_value($self, 'repl')) {
if Catalyst::Utils::env_value($self, 'repl'); Carp::REPL->import(split q{,}, $repl_options);
}
}; };
1; 1;
@@ -25,7 +26,7 @@ CatalystX::REPL - read-eval-print-loop for debugging your Catalyst application
=head1 VERSION =head1 VERSION
version 0.02 version 0.03
=head1 SYNOPSIS =head1 SYNOPSIS
@@ -65,9 +66,14 @@ variables are set:
$ $c $ $c
MyApp=HASH(0xcea6ec) MyApp=HASH(0xcea6ec)
$ $c->req->uri $ $c->req->uri
http://localhost/foo/bar http://localhost/foo/bar
$ $
Options like C<warn> or C<nodie> can be passed to Carp::REPL by putting them,
seperated by commas, into the environment variable:
MYAPP_REPL=warn,nodie ./script/myapp_server.pl
Carp::REPL uses L<Devel::REPL> for the shell, so direct any questions how how Carp::REPL uses L<Devel::REPL> for the shell, so direct any questions how how
to use or customize the repl at that module. to use or customize the repl at that module.
+1 -1
View File
@@ -1,5 +1,5 @@
package TestApp; package TestApp;
our $VERSION = '0.02'; our $VERSION = '0.03';
use Moose; use Moose;
+1 -1
View File
@@ -1,5 +1,5 @@
package TestApp::Controller::Foo; package TestApp::Controller::Foo;
our $VERSION = '0.02'; our $VERSION = '0.03';
use Moose; use Moose;