[Rubygems-developers] Pointing gem clients to local server(s) ONLY

Jos Backus jos at catnook.com
Wed Apr 18 18:05:49 EDT 2007


I'm trying to solve the problem of not being able to easily automate which
version of a particular gem will be installed by controlling the list of gems
available to the gem client. As an example, `gem install mysql' offers a
dialog because http://gems.rubyforge.org lists multiple available versions of
this gem.

Additionally, `gem list -r --source http://myhost:8808' consults more than
just http://myhost:8808, it also consults http://gems.rubyforge.org which I
don't want it to. I.e. if `--source' is specified, its values should override
the values produced by `gem sources'. Does that make sense?

This post suggests patching and rebuilding the rubygems sources:


Is there a better way of doing this, possibly planned for 0.9.3?

Jos Backus
jos at catnook.com

More information about the Rubygems-developers mailing list