Skip to content

Commit 5dfba3e

Browse files
sjnschwern
authored andcommitted
import Acme::Godot 0.001001 from CPAN
git-cpan-module: Acme::Godot git-cpan-version: 0.001001 git-cpan-authorid: SJN
1 parent 6f79201 commit 5dfba3e

File tree

10 files changed

+45
-18
lines changed

10 files changed

+45
-18
lines changed

Build.PL

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ my $builder = Module::Build->new(
1717
build_requires => {
1818
'Test::Exception' => 0,
1919
},
20+
build_recommends => {
21+
'Test::Perl::Critic' => 1,
22+
'Perl::Critic' => 0.18,
23+
'Test::Pod' => 1.14,
24+
'Test::Pod::Coverage' => 1.04,
25+
'Test::Kwalitee' => 0,
26+
},
2027
requires => {
2128
'perl' => '5.5.63', # First version with our()
2229
'Test::More' => 0,

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ Revision history for Acme-Godot
33
0.1.0
44
Initial release.
55

6+
0.1.1
7+
Update module dependency recommendations, add a test
8+

META.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Acme-Godot
3-
version: 0.001000
3+
version: 0.001001
44
author:
55
- 'Salve J. Nilsen <[email protected]>'
66
abstract: Nothing to be done
@@ -16,8 +16,8 @@ build_requires:
1616
provides:
1717
Acme::Godot:
1818
file: lib/Acme/Godot.pm
19-
version: 0.001000
20-
generated_by: Module::Build version 0.2805
19+
version: 0.001001
20+
generated_by: Module::Build version 0.2807
2121
meta-spec:
2222
url: http://module-build.sourceforge.net/META-spec-v1.2.html
2323
version: 1.2

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Acme-Godot version 0.1.0
1+
Acme-Godot version 0.1.1
22

33
This module will make your program wait for Godot. Please consult
44
the module documentation for further insights.

lib/Acme/Godot.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use strict;
77
package Acme::Godot;
88

9-
use version; our $VERSION = qv(0.1.0)->numify;
9+
use version; our $VERSION = qv(0.1.1)->numify;
1010

1111
# Module implementation here
1212

@@ -43,7 +43,7 @@ Acme::Godot - Nothing to be done
4343
4444
=head1 VERSION
4545
46-
This document describes Acme::Godot version 0.1.0
46+
This document describes Acme::Godot version 0.1.1
4747
4848
4949
=head1 SYNOPSIS
@@ -103,6 +103,11 @@ None reported. We're still waiting for Godot to bring the test reports.
103103
No bugs have been reported. Where's Godot with the bug reports?
104104
105105
106+
=head1 ACKNOWLEDGEMENTS
107+
108+
Thanks to mr. Rune Sandnes for the inspiration.
109+
110+
106111
=head1 AUTHOR
107112
108113
Salve J. Nilsen C<< <[email protected]> >>

t/00_load.t

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33

44
use strict;
55
use warnings;
6-
use Test::More tests => 1;
6+
use Test::More tests => 2;
77
use Test::Exception;
88

9-
throws_ok {
9+
local $SIG{INT} = local $SIG{HUP} = sub { die "User got bored\n" };
10+
throws_ok( sub {
1011
local $SIG{ALRM} = sub { die "Waiting no more\n" };
1112
alarm 5;
1213
require Acme::Godot;
1314
alarm 0;
14-
} qr/Waiting no more/, "Godot didn't arrive";
15+
$SIG{ALRM} = "default";
16+
}, qr/Waiting no more/, "Godot didn't arrive during the first 5 seconds");
17+
18+
TODO: {
19+
todo_skip "Need test that successfully waits for Godot to arrive", 1;
20+
21+
local $SIG{INT} = local $SIG{HUP} = sub { die "not ok\n" };
22+
require_ok( "Acme::Godot" );
23+
}
24+

t/boilerplate.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use strict;
99
use warnings;
1010
use Test::More;
1111

12-
plan skip_all => 'For authors only (set PERL_AUTHOR_TEST to run.)'
13-
unless $ENV{PERL_AUTHOR_TEST};
12+
plan skip_all => 'For authors only (set PERL5_AUTHOR_TEST to run.)'
13+
unless $ENV{PERL5_AUTHOR_TEST};
1414

1515
plan tests => 3;
1616

t/kwalitee.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use strict;
55
use warnings;
66
use Test::More;
77

8-
plan skip_all => 'For authors only (set PERL_AUTHOR_TEST to run.)'
9-
unless $ENV{PERL_AUTHOR_TEST};
8+
plan skip_all => 'For authors only (set PERL5_AUTHOR_TEST to run.)'
9+
unless $ENV{PERL5_AUTHOR_TEST};
1010

1111
eval 'use Test::Kwalitee;'; ## no critic
1212
plan skip_all => 'Test::Kwalitee not installed; skipping'

t/perlcritic.t

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ use strict;
77
use warnings;
88
use Test::More;
99

10-
plan skip_all => 'For authors only (set PERL_AUTHOR_TEST to run.)'
11-
unless $ENV{PERL_AUTHOR_TEST};
10+
plan skip_all => 'For authors only (set PERL5_AUTHOR_TEST to run.)'
11+
unless $ENV{PERL5_AUTHOR_TEST};
1212

1313
eval 'use Test::Perl::Critic;'; ## no critic
1414
plan skip_all => "Test::Perl::Critic required for testing PBP compliance"
1515
if $@;
1616

17-
use Perl::Critic::Utils qw(all_perl_files);
17+
eval 'use Perl::Critic::Utils qw(all_perl_files);'; ## no critic
18+
plan skip_all => "Perl::Critic::Utils required for testing PBP compliance"
19+
if $@;
1820

1921
my @files = ( all_perl_files('blib'), grep {m/\.t\z/} all_perl_files('t') );
2022
plan tests => scalar @files;

t/version.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use version;
88
use Test::More;
99
use Module::Build;
1010

11-
plan skip_all => 'For authors only (set PERL_AUTHOR_TEST to run.)'
12-
unless $ENV{PERL_AUTHOR_TEST};
11+
plan skip_all => 'For authors only (set PERL5_AUTHOR_TEST to run.)'
12+
unless $ENV{PERL5_AUTHOR_TEST};
1313

1414
plan tests => 3;
1515

0 commit comments

Comments
 (0)