This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).
It works with Xcode 4.3 and the clang compiler it ships with its command line tools package.
Huge thanks to funny-falcon for the performance patches.