Gem commands cheatsheet.md
gem list
- List all gems installed
gem list -i <gem_name>
- It shows if a gem exists or not. The output is true or false
gem list <gem_name>
- It shows the gem version
Example: gem list zlib
gem which <gem_name>
- It shows the gem path
Example: gem which zlib
gem install <gem_name>
- It installs a specific gem
Example: gem install nokogiri
gem install <gem_name> -v <version>
- It installs a specific gem version
Example: gem install rails -v 5.0.1