products forums blog support careers about
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ROR-249
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: Chris Williams
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Aptana RadRails

Support resolution of gems to multiple install directories (as on Leopard)

Created: 12/Dec/07 03:52 PM   Updated: 04/Jan/08 11:19 AM
Component/s: RubyGems
Affects Version/s: 1.0.0
Fix Version/s: 1.0.0

Importance: Major
Studio Install Type: N/A
Operating System: Mac OS X
Participants: Chris Williams


 Description  « Hide
Leopard installs gems into two directories - system where they have pre-installed gems, and a user directory. Our variable loadpath initializers only support resolving a variable to a single path. We need to be able to get the whole path to resolve it and check each of the locations the gem could be installed.

 All   Comments   Change History      Sort Order:
Chris Williams - 04/Jan/08 11:19 AM
Checked in a first cut at this which supports resolving a single path variable (like GEM_LIB) to multiple possible paths/locations. It then will iterate through the locations and find if the resulting expanded path actually exists, returning the first one that does.

What this does is allows us to have multiple gem install paths, but use the same variable to refer to both. Then we can resolve them to their correct file system paths regardless of whether there's one or 20 possible install paths (so long as the gem is installed). This also means we're still portable across different machines.