From: Arthur Axel 'fREW' Schmidt Date: Wed, 30 Oct 2013 18:41:54 +0000 (-0500) Subject: convert to unobtrusive Dist::Zilla X-Git-Tag: v0.006001~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc4fd4b07483cf8691aa6c7b65bc73bb40e85757;hp=7a2965fcfd52fd1ad093089364e3511af66c8635;p=p5sagit%2FLog-Contextual.git convert to unobtrusive Dist::Zilla --- diff --git a/.gitignore b/.gitignore index 80558d1..9bd9c6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,2 @@ -*.swp -/Build -/_build -/*.bak -/*.old -/blib -/*gz -/inc -/pm_to_blib -/Makefile -/MANIFEST -/META.yml -/MYMETA.yml -/MYMETA.json -/README +.build +Log-Contextual-* diff --git a/Changes b/Changes index eb16015..525984d 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,6 @@ -Revision history for Log-Contextual +Revision history for {{$dist->name}} + +{{$NEXT}} 0.006000 2013-09-05 - Add Log::Contextual::Easy::Default for simple LC usage (Jakob Voß) diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index 3e95233..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1 +0,0 @@ -^(?!script/\w+\.pl|examples/[^\.]+|lib/[\/\w]+\.p(m|od)|inc/|t/\w+\.t|t/lib/[\/\w]+\.pm|t/\w+\.conf|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$) diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 4549778..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,16 +0,0 @@ -use 5.006; -use inc::Module::Install 0.91; -use strict; -use warnings FATAL => 'all'; - -perl_version '5.006'; -all_from 'lib/Log/Contextual.pm'; -requires 'Data::Dumper::Concise'; -requires 'Exporter::Declare' => 0.111; -requires 'Carp'; -requires 'Scalar::Util'; -requires 'Moo' => 1.003000; - -test_requires 'Test::Fatal'; - -WriteAll; diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..9de00a8 --- /dev/null +++ b/cpanfile @@ -0,0 +1,9 @@ +requires 'Data::Dumper::Concise' => 0; +requires 'Exporter::Declare' => 0.111; +requires 'Carp' => 0; +requires 'Scalar::Util' => 0; +requires 'Moo' => 1.003000; + +on test => sub { + requires 'Test::Fatal'; +} diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..f104f25 --- /dev/null +++ b/dist.ini @@ -0,0 +1,16 @@ +name = Log-Contextual +author = Arthur Axel "fREW" Schmidt +license = Perl_5 +copyright_holder = Arthur Axel "fREW" Schmidt +version = 0.006000 + +[NextRelease] +[@Git] +[@Basic] +[GithubMeta] +issues = 1 +[MetaJSON] +[PkgVersion] +[ReadmeFromPod] +[PodSyntaxTests] +[Prereqs::FromCPANfile] diff --git a/lib/Log/Contextual.pm b/lib/Log/Contextual.pm index e438ef0..e01f048 100644 --- a/lib/Log/Contextual.pm +++ b/lib/Log/Contextual.pm @@ -1,12 +1,10 @@ package Log::Contextual; +# ABSTRACT: Simple logging interface with a contextual log + use strict; use warnings; -our $VERSION = '0.006000'; -$VERSION = eval $VERSION - if $VERSION =~ /_/; # numify for warning-free dev releases - my @levels = qw(debug trace warn info error fatal); use Exporter::Declare; @@ -191,10 +189,6 @@ for (qw(set with)) { __END__ -=head1 NAME - -Log::Contextual - Simple logging interface with a contextual log - =head1 SYNOPSIS use Log::Contextual qw( :log :dlog set_logger with_logger ); @@ -672,10 +666,6 @@ functions. The router singleton is available as the return value of the router() of Log::Contextual may overload router() to return instances of custom log routers that could for example work with loggers that use a different interface. -=head1 AUTHOR - -frew - Arthur Axel "fREW" Schmidt - =head1 CONTRIBUTORS =encoding utf8 @@ -688,15 +678,5 @@ voj - Jakob Voß mst - Matt S. Trout -=head1 COPYRIGHT - -Copyright (c) 2012 the Log::Contextual L and L as listed -above. - -=head1 LICENSE - -This library is free software and may be distributed under the same terms as -Perl 5 itself. - =cut diff --git a/lib/Log/Contextual/Easy/Default.pm b/lib/Log/Contextual/Easy/Default.pm index 932a32b..82f73e9 100644 --- a/lib/Log/Contextual/Easy/Default.pm +++ b/lib/Log/Contextual/Easy/Default.pm @@ -1,5 +1,10 @@ package Log::Contextual::Easy::Default; +# ABSTRACT: Import all logging methods with WarnLogger as default + +use strict; +use warnings; + use base 'Log::Contextual'; sub arg_default_logger { @@ -19,10 +24,6 @@ sub default_import { qw(:dlog :log ) } __END__ -=head1 NAME - -Log::Contextual::Easy::Default - Import all logging methods with WarnLogger as default - =head1 SYNOPSIS In your module: @@ -59,8 +60,6 @@ For what C<::Default> implies, see L. =over 4 -=item L - =item L =back diff --git a/lib/Log/Contextual/Easy/Package.pm b/lib/Log/Contextual/Easy/Package.pm index 100b2e6..f5a71fa 100644 --- a/lib/Log/Contextual/Easy/Package.pm +++ b/lib/Log/Contextual/Easy/Package.pm @@ -1,5 +1,10 @@ package Log::Contextual::Easy::Package; +# ABSTRACT: Import all logging methods with WarnLogger as default package logger + +use strict; +use warnings; + use base 'Log::Contextual'; sub arg_package_logger { @@ -19,10 +24,6 @@ sub default_import { qw(:dlog :log ) } __END__ -=head1 NAME - -Log::Contextual::Easy::Package - Import all logging methods with WarnLogger as default package logger - =head1 SYNOPSIS In your module: @@ -59,8 +60,6 @@ For what C<::Package> implies, see L. =over 4 -=item L - =item L =back diff --git a/lib/Log/Contextual/Role/Router.pm b/lib/Log/Contextual/Role/Router.pm index 0dfd157..d55c379 100644 --- a/lib/Log/Contextual/Role/Router.pm +++ b/lib/Log/Contextual/Role/Router.pm @@ -1,5 +1,7 @@ package Log::Contextual::Role::Router; +# ABSTRACT: Abstract interface between loggers and logging code blocks + use Moo::Role; requires 'before_import'; @@ -10,10 +12,6 @@ requires 'handle_log_request'; __END__ -=head1 NAME - -Log::Contextual::Role::Router - Abstract interface between loggers and logging code blocks - =head1 SYNOPSIS package MyApp::Log::Router; @@ -182,13 +180,3 @@ as well. =back =back - -=head1 SEE ALSO - -=over 4 - -=item C - -=back - - diff --git a/lib/Log/Contextual/SimpleLogger.pm b/lib/Log/Contextual/SimpleLogger.pm index c68292e..3b17930 100644 --- a/lib/Log/Contextual/SimpleLogger.pm +++ b/lib/Log/Contextual/SimpleLogger.pm @@ -1,5 +1,8 @@ package Log::Contextual::SimpleLogger; +# ABSTRACT: Super simple logger made for playing with Log::Contextual + + use strict; use warnings; @@ -57,10 +60,6 @@ sub _log { __END__ -=head1 NAME - -Log::Contextual::SimpleLogger - Super simple logger made for playing with Log::Contextual - =head1 SYNOPSIS use Log::Contextual::SimpleLogger; @@ -182,17 +181,5 @@ level is enabled. say q{fatal'ing} if $l->is_fatal; -=head1 AUTHOR - -See L - -=head1 COPYRIGHT - -See L - -=head1 LICENSE - -See L - =cut diff --git a/lib/Log/Contextual/TeeLogger.pm b/lib/Log/Contextual/TeeLogger.pm index 2389956..a60b226 100644 --- a/lib/Log/Contextual/TeeLogger.pm +++ b/lib/Log/Contextual/TeeLogger.pm @@ -1,5 +1,7 @@ package Log::Contextual::TeeLogger; +# ABSTRACT: Output to more than one logger + use strict; use warnings; @@ -42,10 +44,6 @@ sub new { __END__ -=head1 NAME - -Log::Contextual::TeeLogger - Output to more than one logger - =head1 SYNOPSIS use Log::Contextual::SimpleLogger; @@ -163,17 +161,5 @@ level is enabled. say q{fatal'ing} if $l->is_fatal; -=head1 AUTHOR - -See L - -=head1 COPYRIGHT - -See L - -=head1 LICENSE - -See L - =cut diff --git a/lib/Log/Contextual/WarnLogger.pm b/lib/Log/Contextual/WarnLogger.pm index 968c19e..b978e10 100644 --- a/lib/Log/Contextual/WarnLogger.pm +++ b/lib/Log/Contextual/WarnLogger.pm @@ -1,5 +1,7 @@ package Log::Contextual::WarnLogger; +# ABSTRACT: logger for libraries using Log::Contextual + use strict; use warnings; @@ -117,10 +119,6 @@ sub _log { __END__ -=head1 NAME - -Log::Contextual::WarnLogger - Simple logger for libraries using Log::Contextual - =head1 SYNOPSIS package My::Package; @@ -273,17 +271,5 @@ environment variable is enabled. If different levels are specified, appropriate is_$level functions work as you would expect. -=head1 AUTHOR - -See L - -=head1 COPYRIGHT - -See L - -=head1 LICENSE - -See L - =cut diff --git a/t/perltidy.t b/t/perltidy.t index 007afee..2d871e9 100644 --- a/t/perltidy.t +++ b/t/perltidy.t @@ -13,7 +13,7 @@ require Test::PerlTidy; Test::PerlTidy::run_tests( path => '.', perltidyrc => '.perltidyrc', - exclude => ['inc/'], + exclude => ['.build/'], ); done_testing;