Add ability to specify which version of the gem to install.

Required the ability to specify the gem version when installing.

Added with relevant specs also.