Permalink
Browse files

use correct Dist::Zilla dist.ini and adapt opar.CheckModules.pl

  • Loading branch information...
1 parent 87fdb6b commit 691b63ff6e28b1bd01f70e62ee3d0769775a0826 @reneeb committed Mar 2, 2011
Showing with 33 additions and 1 deletion.
  1. +23 −1 dist.ini
  2. +10 −0 opar.CheckModules.pl
View
@@ -1,8 +1,30 @@
-Attribute::Handlers
+name = OPAR
+author = Renee Baecker <module@renee-baecker.de>
+license = GPL
+copyright_holder = Renee Baecker
+copyright_year = 2011
+
+[VersionFromModule]
+
+[PodWeaver]
+
+[GatherDir]
+[MetaYAML]
+[MakeMaker]
+[Manifest]
+[Readme]
+[License]
+
+[PodCoverageTests]
+[PodSyntaxTests]
+
+[Prereqs]
+Attribute::Handlers = 0
Captcha::reCAPTCHA
CGI::Application
CGI::Application::Dispatch
CGI::Application::Plugin::Redirect
+Data::Tabulate
Digest::MD5
Exception::Class::TryCatch
File::Basename
View
@@ -10,9 +10,19 @@
my $dir = dirname __FILE__;
my $ini_file = $dir . '/dist.ini';
+
+my $section_seen = 0;
+
open my $fh, '<', $ini_file or die $!;
while ( my $line = <$fh> ) {
chomp $line;
+
+ next if $line ne '[Prereqs]' and !$section_seen;
+
+ if ( $line eq '[Prereqs]' ) {
+ $section_seen++;
+ next;
+ }
my ($module,$version) = split /\s*=\s*/, $line;

0 comments on commit 691b63f

Please sign in to comment.