Ruby: How to install a specific version of a ruby gem

rubyrubygems

Using the command-line gem tool, how can I install a specific version of a gem?

Best Answer

Use the -v flag:

$ gem install fog -v 1.8