To check the version of OpenSSL Ruby was built with:
ruby -r openssl -e 'puts OpenSSL::OPENSSL_VERSION'
Anything below 1.0.1g is vulnerable.
ruby -r openssl -e 'puts OpenSSL::OPENSSL_VERSION'
Anything below 1.0.1g is vulnerable.