There are more ways possible but I prefer this one.
First we have to bump the version in lib/kafo/version.rb. We should try to follow semantic versioning. Then we push this to master branch under theforeman. Then we build a gem and upload it to rubygems.org by executing
rake release
You have to be among owners of this gem. Ask on #theforeman-dev on freenode if you want to become one.
Now we update rubygem-kafo.spec in foreman-packaging.
Follow the repository instructions
to update the package by changing the version in the spec and updating
the source file. Open a pull request against rpm/develop
to submit
the change and create a test build.
Create a pull-request on theforeman/foreman-packaging repository against deb/develop branch.
Follow the repository instructions to run a script to bump the version number automatically. Opening a pull request will automatically attempt a test build.
Since that's all.