added support for specifying gem version