How to create and debug Ruby gem with C (native) extension
explains how to create a minimum Ruby gem with native extension written in C and debug it with gdb.
Tags: c, debug, gem, ruby