First let me say I cannot do gem install, I don’t know why. Probably because I live in China and the firewall random things.
So I have to locally install gems. For example, i want to install this gem riddle. But this gem downloads as a tar or zip and when i open it it is a folder not a .gem file.
So what to do?
You can do
gem build whatever.gemspecinside of the directory that you untar/unzip — that will produce a.gemfile, then dogem install whatever.gem.You need to be at the directory where you unzip the gem file for example
and that’s it – you are done downloading and installing Rails.