Cool, thanks for the tip Jim.  I'm enjoying rubygems more and more.  This
project has made me understand a lot more about the internals of it.

I'm moving the code to a public repo tomorrow so everyone can get a better
look at it.

-Chad


On 1/19/07, Jim Weirich <[EMAIL PROTECTED]> wrote:

Jim Freeze wrote:
> Nice site. BTW, I just noticed that it lists as my latest gem
> commandline-0.7.9, when it is actually commandline-0.7.10.
> In this case, it is a bit misleading on what the latest version is.

Yes, it looks like it is doing a simple textual sort of the versions.  I
would recommend using the RubyGems Version object and sorting those.

$ irb --simple-prompt
>> require 'rubygems'
=> false
>> [Gem::Version.new("1.10"), Gem::Version.new("1.9")].sort.map { |t|
t.version }
=> ["1.9", "1.10"]


-- Jim Weirich
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to