Andrew CantinoAndrew Cantino
Standup 2/8/2010: Potential Geminstaller issues
edit Posted by Andrew Cantino on Monday February 08, 2010 at 10:23AM

Interesting Things

A project reported that GemInstaller failed when installing Rails 2.2.2, because it attempted to list the remote Rails 3.0.beta gem. There's a bug open and awaiting more info, but since this is not reproducible on RubyGems 1.3.5, it may be due to an old RubyGems version not handling prerelease gems properly.

The GemInstaller author heartily recommends that you switch to Bundler anyway

Comments

  1. Chad Woolley Chad Woolley on February 21, 2010 at 02:45PM

    As I suspected, this was due to an old version of RubyGems which does not support prerelease gems (it was added in a 1.3.x minor release, which is kinda wack, but I digress).

    Anyway, if your RubyGems is non-prerelease-supporting, you can reproduce the error in IRB thusly:

    require 'rubygems'; Gem::Version.new('1.a')
    

    I just tested against the new RubyGems 1.3.6, and AFAIK GemInstaller is working fine against it. But you should still switch to Bundler.