Skip to content

Commit 26ee7f0

Browse files
committed
Use requires_by_perl - Plack::Test
1 parent 39f1943 commit 26ee7f0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cpanfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ requires_by_perl 'Plack',
9595
otherwise skip
9696
;
9797

98+
requires_by_perl 'Plack::Test',
99+
prior 5.012 => skip
100+
;
101+
98102
requires_by_perl 'Pod::Man',
99103
prior 5.010 => '==4.14',
100104
prior 5.012 => '==5.01',
@@ -128,13 +132,6 @@ requires_by_perl 'Test::MockModule',
128132
prior 5.012 => '==0.178',
129133
;
130134

131-
# Last versions which install on < 5.12
132-
if ( "$]" < 5.012 ) {
133-
}
134-
else {
135-
requires 'Plack::Test';
136-
}
137-
138135
if ( "$]" >= 5.010 ) {
139136
requires 'Perl::Critic', '>= 1.144';
140137
}

0 commit comments

Comments
 (0)