This article discusses how to make RubyGems and publish them using various options with Packagecloud.
If you want to set up a private gem server, check this article and follow the simple guides to configure it.
This post explains how to debug an MRI Ruby GC segfault that's caused by a buggy RubyGem.