It looks like your source is either not responding properly, or the stone cannot be found in the source.
Try gem install rack-test . If this gives you an error, try switching the source from which you get the gem.
First add the source gem source -a 'https://production.cf.rubygems.org'
Then try installing again.
OR
You can try installing directly from another source using gem install rack-test --source 'https://production.cf.rubygems.org'
Once you install this stone for proper installation, try installing the rails again.
source share