GEM is a pretty cool packaging system for Ruby apps. Take a look to http://rubygems.org.
Usually it is installed together with ruby. You can update your gems with this command:
sudo gem1.9 update --system
Here is the user guid: http://docs.rubygems.org/read/book/1