Perl-Toolchain-Gang / CPAN-Meta-Requirements

a set of version requirements for a CPAN dist
5 stars 15 forks source link

Publicize Range classes and objects #22

Closed miyagawa closed 10 months ago

miyagawa commented 9 years ago

I've requested this to rjbs numerous times on irc, but just for a record purpose I post it here.

I want to parse and handle CPAN Meta spec's "Version Range" object as a first class object. CPAN::Meta::Requirements has a fine API, but its interface is always string representation based and always works with paris of (module => version range), and the internal _Range classes are kept private.

This has led me to:

I think moving _Range classes to a public class and making __entry_for a public method (like version_range_for_module) is a great start. Additionally, a simple parse API such as CPAN::Meta::Version::Range->parse($str) would be nice to have.

Leont commented 1 year ago

I have needed this more than once, and think I'll just go ahead implementing this

karenetheridge commented 10 months ago

done in #37?