This project is archived and is in readonly mode.

#2748 ✓stale

Should allow overriding 'gem' command for environments with multiple ruby installs

Reported by dwaite | June 3rd, 2009 @ 03:15 AM | in 3.x

When on Mac OS X, installing ruby 1.9 from MacPorts will add a '1.9' suffix to commands. Some Linux distributions also have such a suffix by default. However, when doing a 'rake1.9 gems:install', the GemDependency object runs the 'gem' command based solely on the ruby system string.

The attached patch adds support for a GEM_COMMAND environment variable, to allow for arbitrarily specifying the executable name (and possibly path) for running the 'gem' utility. It seems that the unix idiom for specifying such things is the tool name in caps (i.e. CC=gcc). However, 'GEM' is already used to specify a specific gem name by the rake 'gem:' tasks.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>