diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-20 14:13:11 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-20 14:13:11 +0200 |
commit | e78b9aad4a9dd07f7a664ce722f5e7bbf1b89498 (patch) | |
tree | efd5cc96a30634bb8659895ee91ebc7018e6f39e | |
parent | log in table (diff) | |
download | dancer-debug-e78b9aad4a9dd07f7a664ce722f5e7bbf1b89498.tar.gz |
add abstract
-rw-r--r-- | lib/Dancer/Debug.pm | 37 | ||||
-rw-r--r-- | lib/Plack/Middleware/Debug/Dancer/Logger.pm | 5 | ||||
-rw-r--r-- | lib/Plack/Middleware/Debug/Dancer/Session.pm | 4 | ||||
-rw-r--r-- | lib/Plack/Middleware/Debug/Dancer/Settings.pm | 4 | ||||
-rw-r--r-- | lib/Plack/Middleware/Debug/Dancer/Version.pm | 4 |
5 files changed, 26 insertions, 28 deletions
diff --git a/lib/Dancer/Debug.pm b/lib/Dancer/Debug.pm index 4d0f7f0..aa3a912 100644 --- a/lib/Dancer/Debug.pm +++ b/lib/Dancer/Debug.pm @@ -1,23 +1,27 @@ package Dancer::Debug; +# ABSTRACT: Extend Plack::Middleware::Debug with some specific panels for Dancer + use strict; use warnings; our $VERSION = '0.01'; 1; -__END__ -=head1 NAME +=head1 SYNOPSIS -Dancer::Debug - Extension for Dancer specific panel to L<Plack::Middleware::Debug> +You can activate the panels in your development configuration file: -=head1 SYNOPSIS + plack_middlewares: + Debug: + - panels + - + - Parameters + - Dancer::Version + - Dancer::Settings + - Dancer::Logger - my $handler = sub { - my $env = shift; - my $request = Dancer::Request->new($env); - Dancer->dance($request); - }; +or in your app.psgi: $handler = builder { enable "Debug", @@ -27,17 +31,4 @@ Dancer::Debug - Extension for Dancer specific panel to L<Plack::Middleware::Debu =head1 DESCRIPTION -Dancer::Debug is - -=head1 AUTHOR - -franck cuny E<lt>franck@lumberjaph.netE<gt> - -=head1 SEE ALSO - -=head1 LICENSE - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. - -=cut +Dancer::Debug extends L<Plack::Middleware::Debug> with some specific panels for Dancer. diff --git a/lib/Plack/Middleware/Debug/Dancer/Logger.pm b/lib/Plack/Middleware/Debug/Dancer/Logger.pm index 61b904f..03e5b03 100644 --- a/lib/Plack/Middleware/Debug/Dancer/Logger.pm +++ b/lib/Plack/Middleware/Debug/Dancer/Logger.pm @@ -1,5 +1,7 @@ package Plack::Middleware::Debug::Dancer::Logger; -use 5.008; + +# ABSTRACT: Log message from you Dancer's application + use strict; use warnings; use parent qw(Plack::Middleware::Debug::Base); @@ -50,4 +52,3 @@ sub run { } 1; -__END__ diff --git a/lib/Plack/Middleware/Debug/Dancer/Session.pm b/lib/Plack/Middleware/Debug/Dancer/Session.pm index e4e410d..920e527 100644 --- a/lib/Plack/Middleware/Debug/Dancer/Session.pm +++ b/lib/Plack/Middleware/Debug/Dancer/Session.pm @@ -1,5 +1,7 @@ package Plack::Middleware::Debug::Dancer::Session; -use 5.008; + +# ABSTRACT: Session panel for your Dancer's application + use strict; use warnings; use parent qw(Plack::Middleware::Debug::Base); diff --git a/lib/Plack/Middleware/Debug/Dancer/Settings.pm b/lib/Plack/Middleware/Debug/Dancer/Settings.pm index cae1602..cc80b3d 100644 --- a/lib/Plack/Middleware/Debug/Dancer/Settings.pm +++ b/lib/Plack/Middleware/Debug/Dancer/Settings.pm @@ -1,5 +1,7 @@ package Plack::Middleware::Debug::Dancer::Settings; -use 5.008; + +# ABSTRACT: Settings panel of your Dancer's application + use strict; use warnings; use parent qw(Plack::Middleware::Debug::Base); diff --git a/lib/Plack/Middleware/Debug/Dancer/Version.pm b/lib/Plack/Middleware/Debug/Dancer/Version.pm index 5773af7..3514887 100644 --- a/lib/Plack/Middleware/Debug/Dancer/Version.pm +++ b/lib/Plack/Middleware/Debug/Dancer/Version.pm @@ -1,5 +1,7 @@ package Plack::Middleware::Debug::Dancer::Version; -use 5.008; + +# ABSTRACT: Show Dancer's version + use strict; use warnings; use parent qw(Plack::Middleware::Debug::Base); |