opscode/cookbooks — pull request #300 by redbeard (2012-01-09 05:03:56+00:00)
Title: COOK-963: Identifies bundler use and runs unicorn using 'bundle exec' to avoid Gem conflicts for older Rails 3.0.x apps that rely on older versions of Rack (1.2.x)

Current sv-unicorn-run template launches unicorn / unicorn_rails directly.

Should use 'bundle exec unicorn' when bundler is present in gems – otherwise gem conflict will occur for any Rails app that uses a version of rack older than the system-wide unicorn gem.

This is always the case with Rails 3.0.0 apps which use rack 1.2.x vs later versions which use 1.4.

Fixed in patch. Identifies the present of bundler using the same mechanism that the recipe currently uses.