Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.08 KB

pushing_gems.md

File metadata and controls

29 lines (18 loc) · 1.08 KB

How to push Gems

Abstract: In this document we will learn how to build and push new gems or new versions of already developed gems to RubyGems and add Wolox as the co-owner.

Steps

  1. First, we have to register ourselves in RubyGems because we'll be using those credentials to push the gem.

  2. Then we'll locate ourselves in the folder where our gem is being currently developed and run the following command:

gem build GEM_NAME.gemspec

This will generate a file called GEM_NAME-GEM_VERSION.gem we will use in the next step.

  1. Now we are gonna be pushing the new gem that we've built in the step before to RubyGems, for that we are gonna run the following command:
gem push GEM_NAME-GEM_VERSION.gem
  1. Lastly, we are going to add Wolox as a co-owner to the gem we developed:
gem owner GEM_NAME -a [email protected]

Now you are all done, your gem should be ready to be downloaded in no time after being evaluated by the RubyGems team!