On Nov 11, 2008, at 11:41 AM, Hugh Sasse wrote:
On Tue, 11 Nov 2008, Phil Hagelberg wrote:
Ryan Davis <[EMAIL PROTECTED]> writes:
* Version parts with letters are prerelease (e.g. 'a', 'b5', or
RC1').

the second you do this you're gonna get bugs filed saying that you
didn't sort the versions the way the user intended... how do you sort
a1' vs 'b5' vs 'rc1' vs 'z7'?

Really? String#<=> is pretty well-understood as far as I can tell.

Oh, I bet will get scarier than that: Locale, current character set,
multibyte chars, utf-[8,16,32], and is the -K option in use, and are
we doing case sensitive matches or not? {Is anyone still using EBCDIC? I hope not, that's scarier than some of the things lurking in Dwemthy's
Array! :-)}

It will be simple enough to restrict version characters to the ASCII range.
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to