puma/puma — pull request #348 by mjc (2013-08-06 22:48:20+00:00)
Title: Upstart autodetect ruby managers

- HOME is now picked up automatically from setuid.
- script will try rbenv, rvm, then chruby automatically.
- quoted heredoc to prevent /bin/sh interpreting variables early
- setuid/setgid by default so $HOME can be set reliably