Skip to content
Browse files

Try to test for .minicpanrc via Makefile.PL.

  • Loading branch information...
1 parent b761ba6 commit 724f12282fe0819d94c1de740c86aae3fe80ecf4 @jkeenan committed Mar 5, 2010
Showing with 11 additions and 1 deletion.
  1. +3 −0 Changes
  2. +7 −0 Makefile.PL
  3. +1 −1 lib/CPAN/Mini/Visit/Simple.pm
View
3 Changes
@@ -1,5 +1,8 @@
Revision history for Perl module CPAN::Mini::Visit::Simple
+0.04 Fri Mar 5 22:12:25 EST 2010
+ - Test for presence of CPAN::Mini config file in Makefile.PL
+
0.03 Fri Mar 5 18:48:27 EST 2010
- 0.02 was uploaded to CPAN but failed automated testing;
begin to fix
View
7 Makefile.PL
@@ -3,6 +3,13 @@ use ExtUtils::MakeMaker 6.56;
# Require a version of EU:MM sufficient to have 'BUILD_REQUIRES'
# so that we get the modern File::Path::make_path() in our tests.
+eval { require CPAN::Mini; };
+die "No CPAN::Mini" if "$@";
+my $config_file = CPAN::Mini->config_file({});
+unless ( defined $config_file and -e $config_file ) {
+ die "CPAN::Mini config file not located: $!";
+}
+
WriteMakefile(
NAME => 'CPAN::Mini::Visit::Simple',
VERSION_FROM => 'lib/CPAN/Mini/Visit/Simple.pm',
View
2 lib/CPAN/Mini/Visit/Simple.pm
@@ -3,7 +3,7 @@ use 5.010;
use strict;
use warnings;
-our $VERSION = '0.003';
+our $VERSION = '0.004';
$VERSION = eval $VERSION; ## no critic
use Archive::Extract;

0 comments on commit 724f122

Please sign in to comment.
Something went wrong with that request. Please try again.