Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installs Ruby 1.9.3-p194 with a patch set for faster require. (http://bugs.ruby-lang.org/issues/7158)
#!/bin/bash
pushd /tmp
COMMITS="8243d294600ca6e635bb617be23f34172e7676ab c23b88eff207744cccc42fa74f991eacdb419957 bf0c8f0fe1643c011fe9fa7dd14faeed604bd797 c7ec412a92e279f7f8d1ae88a2b1673dd64312f6"
PATCHES=""
for f in $COMMITS; do
wget --no-check-certificate https://github.com/gnprice/ruby/commit/$f.patch
PATCHES=$PATCHES,/tmp/$f.patch
done
rvm install -n fast_require 1.9.3-p194 --patch $PATCHES
for f in $COMMITS; do
rm /tmp/$f.patch
done
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.