On Sun, May 17, 2009 at 12:15 PM, Eric Wilhelm <scratchcomput...@gmail.com> wrote: > I wonder: Can we put in a general-purpose hook to catch this kind of > thing, or do we have to just remember it whenever we add another new > might-be-an-object attribute?
I don't know that we should attempt to write a general hook when 99% of cases to date are version.pm. I think we just need to be smarter about the specific places in META.yml that could contain a version number. As for the check -- maybe we just see if Parse::CPAN::Meta can parse the resulting file? We just need something to protect authors from themselves if they do something custom to META.yml and to get M::B bugs reported before a distribution winds up on CPAN. -- David