[ruby] Optionally specify gem versions to be installed