Last week I built my first Ruby gem with a C extension. It lets you
display the temperature for your computer’s CPU and some info about the
fan. The gem is a Ruby wrapper for a small C library that interacts with
Apple’s IOKit library. If you are interested in looking at a simple
source code that adds C modules to Ruby take a look. I’ll write a blog
post soon and update this post with a link.
Github: GitHub - Chris911/iStats: Ruby gem for your mac stats