tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

fix how to extract perl version from v-string #212

Closed skaji closed 7 years ago

skaji commented 7 years ago

fix #198

As in #198, if a pm file contains use v5.20;, then minilla produces META.json containing

   "prereqs" : {
      ...
      "runtime" : {
         "requires" : {
            "perl" : "5.20"
         }
      },

which means this distribution requires perl 5.200_000.

This PR fixes this issue by extracting perl version together with leading "v".

syohex commented 7 years ago

Looks good

skaji commented 7 years ago

@tokuhirom @syohex Thank you for your review!