Skip to content

Commit 469b4f4

Browse files
author
Jan Henning Thorsen
committed
Add basic repo files
1 parent 28392b2 commit 469b4f4

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Revision history for Mojo-IOLoop-ReadWriteFork
2+
3+
0.01
4+
* First release on CPAN

MANIFEST.SKIP

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
^mypp.yml
2+
.git
3+
\.old
4+
\.swp
5+
~$
6+
^blib/
7+
^Makefile$
8+
^MANIFEST.*
9+
^MYMETA*
10+
^Mojo-IOLoop-ReadWriteFork

Makefile.PL

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
use ExtUtils::MakeMaker;
2+
WriteMakefile(
3+
NAME => 'Mojo::IOLoop::ReadWriteFork',
4+
ABSTRACT_FROM => 'lib/Mojo/IOLoop/ReadWriteFork.pm',
5+
VERSION_FROM => 'lib/Mojo/IOLoop/ReadWriteFork.pm',
6+
AUTHOR => 'Jan Henning Thorsen <[email protected]>',
7+
LICENSE => 'perl',
8+
PREREQ_PM => {
9+
'Mojolicious' => '4.30',
10+
'IO::Pty' => '1.10',
11+
},
12+
BUILD_REQUIRES => {
13+
'Test::More' => '0.90',
14+
},
15+
META_MERGE => {
16+
resources => {
17+
license => 'http://dev.perl.org/licenses/',
18+
homepage => 'https://metacpan.org/release/Mojo-IOLoop-ReadWriteFork',
19+
bugtracker => 'https://github.com/jhthorsen/mojo-ioloop-readwritefork/issues',
20+
repository => 'https://github.com/jhthorsen/mojo-ioloop-readwritefork',
21+
},
22+
},
23+
test => {
24+
TESTS => 't/*.t',
25+
},
26+
);

t/00-basic.t

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
use Test::More;
2+
use File::Find;
3+
4+
if(($ENV{HARNESS_PERL_SWITCHES} || '') =~ /Devel::Cover/) {
5+
plan skip_all => 'HARNESS_PERL_SWITCHES =~ /Devel::Cover/';
6+
}
7+
if(!eval 'use Test::Pod; 1') {
8+
*Test::Pod::pod_file_ok = sub { SKIP: { skip "pod_file_ok(@_) (Test::Pod is required)", 1 } };
9+
}
10+
if(!eval 'use Test::Pod::Coverage; 1') {
11+
*Test::Pod::Coverage::pod_coverage_ok = sub { SKIP: { skip "pod_coverage_ok(@_) (Test::Pod::Coverage is required)", 1 } };
12+
}
13+
14+
find(
15+
{
16+
wanted => sub { /\.pm$/ and push @files, $File::Find::name },
17+
no_chdir => 1
18+
},
19+
-e 'blib' ? 'blib' : 'lib',
20+
);
21+
22+
plan tests => @files * 3;
23+
24+
for my $file (@files) {
25+
my $module = $file; $module =~ s,\.pm$,,; $module =~ s,.*/?lib/,,; $module =~ s,/,::,g;
26+
ok eval "use $module; 1", "use $module" or diag $@;
27+
Test::Pod::pod_file_ok($file);
28+
Test::Pod::Coverage::pod_coverage_ok($module);
29+
}

0 commit comments

Comments
 (0)