A Ruby Gem is a package that contains code and executables. A Ruby Gem package allows developers to bundle up the code into a single package that can be installed through one process. Gem is great for shell scripting, system administration, and application scripting. You can easily open a local or remote file on the command line. gem goes beyond simply splitting lines of files; it does word splitting too. And you can check to see if two words are in the same group made of delimited words.
How to publish
Package Management