diff options
author | Richard Simões <rsimoes@cpan.org> | 2011-12-22 22:39:48 -0600 |
---|---|---|
committer | Richard Simões <rsimoes@cpan.org> | 2011-12-22 22:42:27 -0600 |
commit | 213d16167fece349396daa4ab2a39ec6753d82b6 (patch) | |
tree | 39307fa20c7a9d837c34977de74634e110c79ee4 | |
parent | Merge pull request #2 from fayland/master (diff) | |
download | dancer-logger-psgi-213d16167fece349396daa4ab2a39ec6753d82b6.tar.gz |
bring dist.ini up to date, add perlcritic rc
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .shipit | 6 | ||||
-rw-r--r-- | Changes | 8 | ||||
-rw-r--r-- | dist.ini | 44 | ||||
-rw-r--r-- | lib/Dancer/Logger/PSGI.pm | 17 | ||||
-rw-r--r-- | perlcritic.rc | 5 |
6 files changed, 48 insertions, 34 deletions
diff --git a/.gitignore b/.gitignore index 31b003f..d20aaaa 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,7 @@ MANIFEST Makefile.old nytprof.out MANIFEST.bak +Dancer-Logger-PSGI* *.sw[po] t/logs/ +.build \ No newline at end of file diff --git a/.shipit b/.shipit deleted file mode 100644 index e28b215..0000000 --- a/.shipit +++ /dev/null @@ -1,6 +0,0 @@ -steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist -git.tagpattern = release-%v -git.push_to = release - -CheckChangeLog.files = Changes -MakeDist.destination = ~/code/distribs/ diff --git a/Changes b/Changes index aa78763..2385084 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,11 @@ Revision history for Perl extension Dancer::Logger::PSGI -0.02 Sun 20 Jun 2010 01:26:57 PM CEST +{{$NEXT}} + - avoid using Dancer::Request class construction syntax deprecated in + Dancer version 1.3059 [Alberto Simões, Fayland Lam] + +0.02 2010-06-20 13:26:57 CEST - better log message [Alexis Sukrieh] -0.01 Sat Apr 17 12:38:16 2010 +0.01 2010-04-17 12:38:16 CEST - original version diff --git a/dist.ini b/dist.ini index 160701d..6f47da2 100644 --- a/dist.ini +++ b/dist.ini @@ -2,28 +2,38 @@ name = Dancer-Logger-PSGI author = franck cuny <franck@lumberjaph.net> license = Perl_5 copyright_holder = franck cuny -copyright_year = 2010 -version = 0.02 +copyright_year = 2011 +version = 0.020_001 -[@Git] [@Filter] bundle = @Basic +remove = MakeMaker +[ModuleBuild] -[MetaConfig] -[MetaJSON] -[PkgVersion] -[PodSyntaxTests] -[PodCoverageTests] -[NoTabsTests] -[EOLTests] +[@Git] +allow_dirty = Changes -[MetaResources] -repository = git://github.com/franckcuny/dancer-logger-psgi.git -bugtracker = http://rt.cpan.org/Public/Dist/Display.html?Name=Dancer::Logger::PSGI -homepage = http://search.cpan.org/perldoc?Dancer::Logger::PSGI +[@TestingMania] +disable = Test::Synopsis +[AutoMetaResources] +homepage = https://metacpan.org/release/%{dist} +repository.github = user:franckcuny +bugtracker.github = user:franckcuny + +[Test::PodSpelling] +stopwords = franck +stopwords = cuny +stopwords = psgi +stopwords = psgix +stopwords = JavaScript [PodWeaver] -[AutoPrereq] +[AutoPrereqs] [ReadmeFromPod] -[CheckChangeLog] -[UploadToCPAN] +[CheckChangesHasContent] +[Clean] +[ExtraTests] +[MetaJSON] +[MinimumPerl] +[NextRelease] +[OurPkgVersion] diff --git a/lib/Dancer/Logger/PSGI.pm b/lib/Dancer/Logger/PSGI.pm index 3f8c216..25e8f5f 100644 --- a/lib/Dancer/Logger/PSGI.pm +++ b/lib/Dancer/Logger/PSGI.pm @@ -1,14 +1,12 @@ package Dancer::Logger::PSGI; -# ABSTRACT: PSGI Log handler for Dancer - use strict; use warnings; - -our $VERSION = '0.01'; - use Dancer::SharedData; -use base 'Dancer::Logger::Abstract'; +use base "Dancer::Logger::Abstract"; + +# VERSION +# ABSTRACT: PSGI Log handler for Dancer sub init {} @@ -18,13 +16,14 @@ sub _log { chomp $full_message; my $request = Dancer::SharedData->request; - if ($request->{env}->{'psgix.logger'}) { - $request->{env}->{'psgix.logger'}->( + if ($request->{env}{"psgix.logger"}) { + $request->{env}{"psgix.logger"}->( { level => $level, message => $full_message, } ); } + return; } 1; @@ -48,7 +47,7 @@ or in your environment file: - plack_middlewares: - ConsoleLogger -With L<Plack::Middleware::ConsoleLogger>, all your log will be send to the javascript console of your browser. +With L<Plack::Middleware::ConsoleLogger>, all your log will be send to the JavaScript console of your browser. =head1 DESCRIPTION diff --git a/perlcritic.rc b/perlcritic.rc new file mode 100644 index 0000000..ca1da37 --- /dev/null +++ b/perlcritic.rc @@ -0,0 +1,5 @@ +severity = 3 +verbose = 9 +theme = core +include = Variables::ProhibitPackageVars +exclude = Subroutines::ProhibitUnusedPrivateSubroutines \ No newline at end of file |