diff --git a/Changes b/Changes index c87ab87..0276b9e 100644 --- a/Changes +++ b/Changes @@ -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 * Doc improvmens (Ash Berlin, spurned on by Jon Rockway) diff --git a/META.yml b/META.yml index 841583b..c271df4 100644 --- a/META.yml +++ b/META.yml @@ -11,4 +11,4 @@ requires: Carp::REPL: 0 Catalyst: 5.800006 namespace::clean: 0 -version: 0.02 +version: 0.03 diff --git a/Makefile.PL b/Makefile.PL index b7e22a6..24e4ca1 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,7 +9,7 @@ WriteMakefile( NAME => 'CatalystX::REPL', AUTHOR => 'Tomas\ Doran\ \\,\ Florian\ Ragwitz\ \\,\ Ash\ Berlin\ \', ABSTRACT => 'read-eval-print-loop for debugging your Catalyst application', - VERSION => '0.02', + VERSION => '0.03', EXE_FILES => [ qw() ], (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()), PREREQ_PM => { diff --git a/README b/README index 017fe94..1b8b0dd 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ This archive contains the distribution CatalystX-REPL, version -0.02: +0.03: read-eval-print-loop for debugging your Catalyst application diff --git a/dist.ini b/dist.ini index 1ae9fa9..e34da44 100644 --- a/dist.ini +++ b/dist.ini @@ -1,5 +1,5 @@ name = CatalystX-REPL -version = 0.02 +version = 0.03 author = Tomas Doran author = Florian Ragwitz author = Ash Berlin diff --git a/lib/CatalystX/REPL.pm b/lib/CatalystX/REPL.pm index ddf2aa1..a954be6 100644 --- a/lib/CatalystX/REPL.pm +++ b/lib/CatalystX/REPL.pm @@ -1,5 +1,5 @@ package CatalystX::REPL; -our $VERSION = '0.02'; +our $VERSION = '0.03'; # ABSTRACT: read-eval-print-loop for debugging your Catalyst application @@ -12,8 +12,9 @@ use namespace::clean -except => 'meta'; after setup_finalize => sub { my ($self) = @_; - $SIG{__DIE__} = \&Carp::REPL::repl - if Catalyst::Utils::env_value($self, 'repl'); + if (my $repl_options = Catalyst::Utils::env_value($self, 'repl')) { + Carp::REPL->import(split q{,}, $repl_options); + } }; 1; @@ -25,7 +26,7 @@ CatalystX::REPL - read-eval-print-loop for debugging your Catalyst application =head1 VERSION -version 0.02 +version 0.03 =head1 SYNOPSIS @@ -65,9 +66,14 @@ variables are set: $ $c MyApp=HASH(0xcea6ec) - $ $c->req->uri + $ $c->req->uri http://localhost/foo/bar - $ + $ + +Options like C or C 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 for the shell, so direct any questions how how to use or customize the repl at that module. diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm index 357158c..4188ba6 100644 --- a/t/lib/TestApp.pm +++ b/t/lib/TestApp.pm @@ -1,5 +1,5 @@ package TestApp; -our $VERSION = '0.02'; +our $VERSION = '0.03'; use Moose; diff --git a/t/lib/TestApp/Controller/Foo.pm b/t/lib/TestApp/Controller/Foo.pm index 03c2add..560baec 100644 --- a/t/lib/TestApp/Controller/Foo.pm +++ b/t/lib/TestApp/Controller/Foo.pm @@ -1,5 +1,5 @@ package TestApp::Controller::Foo; -our $VERSION = '0.02'; +our $VERSION = '0.03'; use Moose;