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.
-
First, we have to register ourselves in RubyGems because we'll be using those credentials to push the gem.
-
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.
- 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
- 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!