Ruby Language Building A Gem


Example

Once you have created your gem to publish it you have to follow a few steps:

  1. Build your gem with gem build <gem name>.gemspec (the gemspec file must exist)
  2. Create a RubyGems account if you do not already have one here
  3. Check to make sure that no gems exist that share your gems name
  4. Publish your gem with gem publish <gem name>.<gem version number>.gem