Skip to content

Publishing to RubyGems

swaroopsm edited this page Dec 18, 2014 · 1 revision

Following are the steps to publish to http://rubygems.org.

  1. Make sure all tests pass by running rspec on the terminal
  2. Build the gem using gem build fusioncharts-rails.gemspec. This will create a filename called: fusioncharts-rails-<version>.gem
  3. Publish the gem by: gem push fusioncharts-rails-<version>.gem. This will ask to authenticate with your http://rubygems.org email and password.

Note: You can add additional owners to the gem http://guides.rubygems.org/command-reference/#gem-owner.

Eg.: gem owner fusioncharts-rails -k <api_key> -a <email>

The api-key can be retrieved at ~/.gem/credentials

Clone this wiki locally