diaspora/diaspora — pull request #4908 by rootwyrm (2014-04-05 22:41:07+00:00)
Title: Fix to call correct ruby installation

This resolves runtime issues on *BSDs which require calling ruby by version, e.g. Ruby 2.0 is ruby20 and there is no ruby. (This is by design, to handle multiple installed versions.) Instead of hard coding 'ruby', use 'gem environment' to determine the most correct Ruby executable. It has the happy side effect of making it possible to quick-switch between Ruby versions for testing.