[Rubygems-developers] Order of require_paths

TRANS transfire at gmail.com
Sun Oct 7 10:16:59 EDT 2007


On 10/6/07, Eric Hodel <drbrain at segment7.net> wrote:
> On Oct 6, 2007, at 07:54 , TRANS wrote:
> > The order in which libs are searched is in reverse of how they are
> > given in the gemspce's require_paths attribute. I realize that order
> > doesn't usually matter, but it can --I have a particular case in which
> > it does. The reverse order seems unintutive. Thought I'd just bring
> > that to light. Maybe it would be better to reverse it for a future
> > version.
>
> By the same token, changing it may break gems that inadvertently
> depend on the order.  I think it is best to leave it alone.

Looks like the problem is worse than I thought. I reversed the order
of my require paths and now my gem works on Windows systems but not
Linux systems. It would appear that the order is dependent on the
platform.

T.


More information about the Rubygems-developers mailing list