According to this post : SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/
Goto link http://rubygems.org/pages/download
Download the latest zip file
Unzip it
run "ruby setup.rb" in unzipped folder
now run gem install command