resolve gem version dependency