AutoPrereq doesn't work here. autoprereq
Tomas Doran [Thu, 26 Aug 2010 16:36:20 +0000 (17:36 +0100)]
We get (from the tests):
  App: 0
  BaseApp::WithConfig: 0
And things that are optional deps:
  MooseX::ConfigFromFile: 0
  MooseX::SimpleConfig: 0

dist.ini
t/000_load.t

index abf6468..f07404d 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -18,15 +18,5 @@ copyright_holder = Infinity Interactive, Inc
 dist = MooseX-Getopt
 repository_at = gitmo
 authority = cpan:STEVAN
-auto_prereq = 0
+auto_prereq = 1
 
-[Prereq]
-Getopt::Long = 2.37
-Getopt::Long::Descriptive = 0.081
-Moose = 0.56
-
-[Prereq / TestRequires]
-Test::Exception = 0.21
-Test::Warn = 0.21
-Test::More = 0.88
-Test::Requires = 0.05
index a06573d..60e460e 100644 (file)
@@ -3,8 +3,12 @@
 use strict;
 use warnings;
 
-use Test::More tests => 1;
+use Test::More 0.88;
+use Test::Warn 0.21;
+use Test::Requires 0.05;
+use Test::Exception 0.21;
+
+use_ok('MooseX::Getopt');
+
+done_testing;
 
-BEGIN {
-    use_ok('MooseX::Getopt');
-}