andk/pause — pull request #55 by charsbar (2013-06-01 14:36:05+00:00)
Title: parse_version_safely should also ignore DATA/END section

Hi.

I find Mojolicious::Command::generate::plugin is listed in 02packages.details.txt as version 0.01, though it only has a $VERSION line in its DATA section.

https://metacpan.org/source/SRI/Mojolicious-4.10/lib/Mojolicious/Command/generate/plugin.pm#L35

This branch should fix the issue. I'm sorry I haven't written any test for this. I only tested this with Parse::PMFile which I borrowed a lot of code from pause.