If you are getting:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ...
Its most likely your gem gem is outdated.
Try updating via:
gem update --system
then try to install your gem as required
if it still fails, try using raggi brew update
brew tap raggi/ale $ brew install openssl-osx-caas referred from here: