Original comment: hashbangcode/vlad#295 (comment)
Just in case you people are still looking for a solution related to ruby installation and openssl troubleshooting (I've tried what @Oliboy50 said but no success), that's how I fixed things for me (as a short notice, I'm using RVM for ruby/packages management):
As described here, first I've fixed the openssl dependency for Ruby:
rvm pkg install openssl
So then I could finally install Ruby 2.2.3:
rvm install 2.2.3 --with-openssl-dir=$HOME/.rvm/usr
rvm list
rvm --default use 2.2.3