Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add author side tests

  • Loading branch information...
commit a61cc42fc2c7cf913e4b10a95923e40ec6e5e809 1 parent cfe8040
@bobtfish bobtfish authored
View
14 Makefile.PL
@@ -15,5 +15,19 @@ requires 'Log::Stash' => '0.001';
test_requires 'Test::More' => '0.88';
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::NoTabs';
+author_requires 'Test::Pod::Coverage' => '1.04';
+author_requires 'Pod::Coverage' => '0.19';
+author_requires 'Pod::Coverage::TrustPod';
+author_requires 'Test::Spelling';
+
+author_tests 't/author';
+
+if ($Module::Install::AUTHOR) {
+ system("pod2text lib/Log/Stash/Output/ElasticSearch.pm > README")
+ and die $!;
+}
+
WriteAll;
View
16 README
@@ -0,0 +1,16 @@
+NAME
+ Log::Stash::Output::ElasticSearch - output logstash messages into
+ ElasticSearch.
+
+DESCRIPTION
+SEE ALSO
+ Log::Stash
+ <http://logstash.net>
+
+AUTHOR
+ Tomas (t0m) Doran <bobtfish@bobtfish.net>
+
+COPYRIGHT
+LICENSE
+ XXX - TODO
+
View
8 lib/Log/Stash/Output/ElasticSearch.pm
@@ -135,16 +135,8 @@ Log::Stash::Output::ElasticSearch - output logstash messages into ElasticSearch.
Tomas (t0m) Doran <bobtfish@bobtfish.net>
-=head1 SPONSORSHIP
-
-This module exists due to the wonderful people at
-L<Suretec Systems|http://www.suretecsystems.com/> who sponsored it's
-development.
-
=head1 COPYRIGHT
-Copyright Suretec Systems 2012.
-
=head1 LICENSE
XXX - TODO
View
10 t/author/notabs.t
@@ -0,0 +1,10 @@
+use strict;
+use warnings;
+
+use File::Spec;
+use FindBin ();
+use Test::More;
+use Test::NoTabs;
+
+all_perl_files_ok(qw/lib/);
+
View
8 t/author/pod.t
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Test::Pod 1.14;
+
+all_pod_files_ok();
+
View
20 t/author/podcoverage.t
@@ -0,0 +1,20 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Pod::Coverage 0.19;
+use Test::Pod::Coverage 1.04;
+
+my @modules = all_modules;
+our @private = ( 'BUILD' );
+foreach my $module (@modules) {
+ local @private = (@private, 'expand_class_name', 'make') if $module =~ /^Log::Stash::DSL::Factory$/;
+
+ pod_coverage_ok($module, {
+ also_private => \@private,
+ coverage_class => 'Pod::Coverage::TrustPod',
+ });
+}
+
+done_testing;
+
View
29 t/author/spelling.t
@@ -0,0 +1,29 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::Spelling;
+
+add_stopwords(qw(
+ Starman
+ ZeroMQ
+ API
+ Affero
+ FCGI
+ JSON
+ Tomas
+ Doran
+ t0m
+ Jorden
+ Logstash
+ Sissel
+ Suretec
+ TODO
+ STDIN
+ STDOUT
+ STDERR
+ logstash
+));
+set_spell_cmd('aspell list -l en');
+all_pod_files_spelling_ok();
+
+done_testing();
Please sign in to comment.
Something went wrong with that request. Please try again.