Update OpenSSL for All RVM Rubies
AKA Fix Heartbleed in all my RVM managed rubies.
Assumes you’re using RVM with homebrew as your autolibs.
# Updates OpenSSL and then recompiles and installs all your RVM managed rubies:
$ brew update
$ brew upgrade openssl
$ rvm list strings | while read RUBY; do rvm reinstall --disable-binary $RUBY; done
This will take a while.
After its done, you should be able to run
$ ruby -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
with each ruby and have it print out OpenSSL 1.0.1g 7 Apr 2014