A RubyGem is a software package, commonly called a “gem”. Gems contain a packaged Ruby application or library. Gems are designed to be very easy to install (i.e. gem install rspec-rails) and help separate various tasks into separate modules.
As well as using 3rd party gems you can create your own gems.