Permalink
Browse files

Forgot JSON prerequisite for developers

  • Loading branch information...
1 parent 57e44a8 commit d65f6978f155eedbf12c7c1adbe9ee4faf7fe0b9 @sanko committed Jul 8, 2010
Showing with 5 additions and 4 deletions.
  1. +2 −1 Build.PL
  2. +3 −3 inc/MBX/Developer.pm
View
3 Build.PL
@@ -46,7 +46,8 @@ my $mb = $class->new(
'Test::More' => 0.80,
($is_developer
? ('CPAN::Meta::Converter' => 0,
- 'CPAN::Meta::Validator' => 0
+ 'CPAN::Meta::Validator' => 0,
+ JSON => 0
)
: ()
)
View
6 inc/MBX/Developer.pm
@@ -14,9 +14,9 @@ package inc::MBX::Developer;
sub write_metafile {
my $s = shift;
- return
- if map { !eval "require $_" }
- qw[CPAN::Meta::Converter CPAN::Meta::Validator JSON];
+ return if !eval 'require CPAN::Meta::Converter';
+ return if !eval 'require CPAN::Meta::Validator';
+ return if !eval 'require JSON';
JSON->VERSION(2);
my $data = {};
$s->prepare_metadata($data);

0 comments on commit d65f697

Please sign in to comment.