From: Dan Rathbun Date: 2010-08-11T09:38:12+09:00 Subject: Re: Determining whether the running ruby is outdated? Lars Olsson wrote: > > I'm writing a small utility that shows information on the currently > running ruby environment. One part of the utility checks whether any > gems is outdated, but I also want to check if the ruby interpreter > ... Getting the currently installed version is simple, > but getting a list of released ruby versions seems a bit trickier. I'm > mainly interested in *stable* source versions, but I don't mind if my > utility lists development and rc versions as well. I just went thru ALL the 1.8.x i386-mswin32 releases compiling a list, and did 1.9.1 also. I did NOT do any previews, or release candidates, or 1.9.0 or 1.6.x > > Any suggestions on how to solve this? I had to spend 2 days downloading every package, extracting the interpreter DLLs, a PITB. The file is not done.. I'm missing a few dates. I may also be missing a few patch_levels that were released for test, but no precompiled package was released. (not likely anyone is running them.) I wrote a PureRuby Backport Patch for older versions, that adds newer constants to older versions (<1.8.7), which you might like to use (you'll get the idea when you read it; it can be condensed into smaller code.) It's attached here, and in the post you'll see other links where it's available (rubyforge snippet library, etc.) http://redmine.ruby-lang.org/issues/show/3665 .. some has suggested I add RUBY_ENGINE to all before 1.9.x (but I haven't got to it yet.) Attachments: http://www.ruby-forum.com/attachment/4934/Ruby_Releases.txt -- Posted via http://www.ruby-forum.com/.