From: Massimiliano Mirra Date: 2002-10-26T05:39:47+09:00 Subject: Version class (was Re: Sort::Versions) On Thu, Oct 24, 2002 at 10:31:13AM +0900, michael libby wrote: > This is great! Now we can add things like Version#succ, #is_beta?, or > whatever. > > I did find some flaws, so I added test cases from the CPAN module docs and > fixed the failed tests. Patch enclosed. Man, I love open source. :-) Thanks. > I'm guessing since you wrote most of it, you'd to maintain it (as a > separate package from rpkg)? If not, I'll volunteer to take it on. I prefer to keep a version.rb in the rpkg distribution, as I want rpkg to be as self contained as possible. Would you be interested in maintaining a mixin to Version that provides extra functionality such as the #is_beta? and #succ that you propose? That way, rpkg would keep requiring 'rpkg/version', while users of the version.rb `on steroids', or those that don't want to install rpkg, would just require 'version', which includes both the base Version class (that we'd have to mirror) and the extensions. With such setup, if ever a Version comes into the standard distribution, no user code would have to be modified. Mmmh, I know that sounds complicated, but it's easier done than said. :-) Massimiliano