On Aug 27, 2006, at 12:50 AM, Patrick Gundlach wrote:

> I'd like to ask you for your recommendations. I
> develop (privately) a set of libraries which are used in several
> projects. Some of these I also want to share with others (i.e.
> distribute). When developing I use a directory structure such as
>
> lib/   <--- libraries here
> test/  <--- tests
> ...
>
> Now, when using the library from another project I either need to
>
> 1) put the above lib directory in $:, the search path
> 2) copy the needed libs to the project
> or
> 3) install the library in a system wide/private directory structure
>    and set the environment variable RUBYLIB.
>
> Of course I would always like to use the newest version of a lib.
>
>
> What do you guys recommend? Symlinks?

ruby -I in your rake/make testing rule.

If the directories don't exist ruby won't care and it'll use  
installed versions.

If they do, they'll be picked up before gems/site_lib.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com