How to install a specific version of a ruby gem?

mjs picture mjs · Jun 10, 2013 · Viewed 451.8k times · Source

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

Answer

mjs picture mjs · Jun 10, 2013

Use the -v flag:

$ gem install fog -v 1.8