Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#2748

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.

Reported by dwaite · June 3rd, 2009 @ 03:15 AM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. dwaite
    dwaite

    the test is insufficient as it depends on the current working directory. I created a local variant which uses:

    ENV['GEM_COMMAND'] = "touch #{filename};#"
    

    However, I do not know if such unix shell gymnastics are suitable for tests.

    June 3rd, 2009 @ 03:22 AM

  2. dwaite
  3. dwaite
    dwaite

    Based on feedback, revised testing to just call gem_command vs. invoking a script/command.

    June 4th, 2009 @ 05:25 AM

  4. dwaite
    dwaite

    (probably bad naming convention on my part; that is a new patch and is not meant to be installed in-order)

    June 4th, 2009 @ 05:26 AM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  6. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 04:07 AM

  7. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 9th, 2010 @ 09:55 PM

  8. Jeff Kreeftmeijer