6 A quick reference to common [rubygems](https://rubygems.org) CLI commands.
9 ### Building and publishing
12 gem build *.gemspec # Build a gem
13 gem install *.gem # Install locally
14 gem push *.gem # Upload to rubygems.org
15 gem yank foogem -v 0.0.1 # Take it back
21 gem owner foogem -a rico@ricostacruz.com
23 gem list # List local gems
24 gem which rake # Point to where lib/rake.rb is
25 gem search -r rails # [remote] Search for gems
31 # https://github.com/fnando/gem-open
33 GEM_EDITOR="vim" gem open foogem
36 ### Changing to a directory
39 cd $(basename `gem which rake`) # Go to a gem's path