Permalink
Browse files

Write META files more cleanly

  • Loading branch information...
1 parent abd2aa7 commit ee156f82e1244195d3a250327d5904ff08360475 @Leont committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Module/Build/Tiny.pm
View
@@ -80,7 +80,7 @@ sub Build_PL {
write_file('Build', "#!perl\nuse lib '$dir';\nuse Module::Build::Tiny;\nBuild();\n");
make_executable('Build');
write_file(qw/_build_params/, encode_json(\@ARGV));
- write_file("MY$_", read_file($_)) for grep { -f } qw/META.json META.yml/;
+ $meta->save(@$_) for ['MYMETA.json'], ['MYMETA.yml' => { version => 1.4 }];
}
1;

0 comments on commit ee156f8

Please sign in to comment.