Gems are pre-packaged bits of Ruby code that you can use in your own Ruby applications.
It's quite common, and good practice, to turn code that you use often into a gem so that it can be shared with others in your company or elsewhere.
Follow this guide to get started.