Stephanie Oh with some great tips on building Ruby gems.
One tip I’d add is using a tool like jeweler to help you correctly set up and easily manage your RubyGems projects. Regardless, do take the time to read the RubyGems Guide she references — little stuff like needing to rename your gem is going to happen and really understanding the anatomy of a Ruby gem will save you a lot of time and frustration in the long run.