gem install rails specific version code example Example: gem install version $ gem install fog -v 1.8