FooBarWidget/passenger — pull request #26 by tomhughes (2011-10-08 11:31:00+00:00)
Title: Only prepend LIBDIR to the load path if it's truly missing

Forcing LIBDIR to be the first item on the load path means that if passenger has been installed as a package in the main ruby library directory then the rack (if any) in that directory will always be used regardless of what the Gemfile may ask for.

With this patch LIBDIR is only prepended to the load path if it is not present anywhere on the existing path, rather than if it isn't the first thing on the path. This allows any rack gem added to the path by bundler to take precedence over one in LIBDIR.