[Rubygems-developers] query_command.rb question and patch

Chad Woolley thewoolleyman at gmail.com
Sun Apr 6 14:13:06 EDT 2008

On Sun, Apr 6, 2008 at 12:37 AM, Jos Backus <jos at catnook.com> wrote:
>  Understood. However, I also need the remote case to work for Puppet as it has
>  the ability to install the `latest' gem, so I need to be able to retrieve the
>  names and versions of remote gems. Pointers appreciated.

Invoke GemRunner with the appropriate ['--list','--remote','etc...'] options.

For examples, look at GemInstaller:


...which calls:
(see GemCommandManager#list_remote_gem)

Could probably be improved, I have to do manual parsing of results.
An option to return a data structure would be better.

-- Chad

More information about the Rubygems-developers mailing list