How to create a ruby gem

Each time I create a gem I do the same search again and again. I keep saving the URLs in here and there and it’s really getting awkward. So I decided to write my own post about it.

LT;DR

bundle gem GEMNAME

Packaging The Gem Into Gem File

cd GEMNAME
gem build GEMNAME.gemspec

Pushing The Gem to Rubygems.org

gem push GEMNAME-0.0.1.gem

Resources

Last updated