gem install version

C++
$ gem install fog -v 1.8

Source

Also in C++: