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