Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd7fc5d

Browse files
committed
updated Test::Nginx.
1 parent 556f6ae commit bd7fc5d

File tree

19 files changed

+324
-118
lines changed

19 files changed

+324
-118
lines changed

test/inc/Module/Install.pm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BEGIN {
3131
# This is not enforced yet, but will be some time in the next few
3232
# releases once we can make sure it won't clash with custom
3333
# Module::Install extensions.
34-
$VERSION = '0.99';
34+
$VERSION = '1.00';
3535

3636
# Storage for the pseudo-singleton
3737
$MAIN = undef;
@@ -230,8 +230,12 @@ sub preload {
230230
sub new {
231231
my ($class, %args) = @_;
232232

233-
delete $INC{'FindBin.pm'};
234-
require FindBin;
233+
delete $INC{'FindBin.pm'};
234+
{
235+
# to suppress the redefine warning
236+
local $SIG{__WARN__} = sub {};
237+
require FindBin;
238+
}
235239

236240
# ignore the prefix on extension modules built from top level.
237241
my $base_path = Cwd::abs_path($FindBin::Bin);

test/inc/Module/Install/AutoInstall.pm

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}
@@ -48,6 +48,14 @@ sub auto_install {
4848
while (my ($mod, $ver) = splice(@requires, 0, 2)) {
4949
$seen{$mod}{$ver}++;
5050
}
51+
my @build_requires = map @$_, map @$_, grep ref, $self->build_requires;
52+
while (my ($mod, $ver) = splice(@build_requires, 0, 2)) {
53+
$seen{$mod}{$ver}++;
54+
}
55+
my @configure_requires = map @$_, map @$_, grep ref, $self->configure_requires;
56+
while (my ($mod, $ver) = splice(@configure_requires, 0, 2)) {
57+
$seen{$mod}{$ver}++;
58+
}
5159

5260
my @deduped;
5361
while (my ($mod, $ver) = splice(@features_require, 0, 2)) {

test/inc/Module/Install/Base.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package Module::Install::Base;
44
use strict 'vars';
55
use vars qw{$VERSION};
66
BEGIN {
7-
$VERSION = '0.99';
7+
$VERSION = '1.00';
88
}
99

1010
# Suspend handler for "redefined" warnings

test/inc/Module/Install/Can.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use Module::Install::Base ();
99

1010
use vars qw{$VERSION @ISA $ISCORE};
1111
BEGIN {
12-
$VERSION = '0.99';
12+
$VERSION = '1.00';
1313
@ISA = 'Module::Install::Base';
1414
$ISCORE = 1;
1515
}

test/inc/Module/Install/Fetch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

test/inc/Module/Install/Include.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

test/inc/Module/Install/Makefile.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/;
88

99
use vars qw{$VERSION @ISA $ISCORE};
1010
BEGIN {
11-
$VERSION = '0.99';
11+
$VERSION = '1.00';
1212
@ISA = 'Module::Install::Base';
1313
$ISCORE = 1;
1414
}

test/inc/Module/Install/Metadata.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

test/inc/Module/Install/Win32.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

test/inc/Module/Install/WriteAll.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '0.99';
9+
$VERSION = '1.00';
1010
@ISA = qw{Module::Install::Base};
1111
$ISCORE = 1;
1212
}

0 commit comments

Comments
 (0)