9 examples for gem

15
1
2
  # get the latest update of a certain gem
gem update bropages
6
1
2
  # Uninstall all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
4
1
2
  # yo specific version
gem install -v=0.0.15 bropages
2
1
2
3
4
  # Print out gem's internal environment variables,
# which tells you things like where gems are
# being installed:
gem env
1
1
2
  # Show more info for a gem search
gem search -d cocoapods
1
1
2
3
4
5
6
7
8
  # Install a gem (for instance example "bropages") locally in your user directory
gem install --user-install bropages
 
# You may need to install the ruby development environment beforehand.
# In Ubuntu, as of 31/08/2016: `sudo apt-get install ruby-dev`
#
# After a first `gem install --user-install`, pay attention to the message
# telling you to add the local gem bin directory to you PATH.
1
1
2
  # uninstall a gem
gem uninstall bropages