There has been this awfully stupid error when I’ve been trying to install gems through ruby on windows. It’s trying to connect to
https://rubygems.org when windows decides to explode and not allow you to move forward.
#Finally found a solution that has worked for two Windows builds. Run these commands in your command line.
This will remove the default source for gems ruby will look for and add the non-https url.
If a gem that you have installed has a dependency with their own specified rubygems url you may get this error again. You can fix this by editing the problem gem and changing their url to the non-https version.