Ruby gem with C extension

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: https://github.com/Chris911/iStats

Gem: https://rubygems.org/gems/iStats

It’s very interesting, I’ll take a look your source.

Thank’s

I just updated the gem to also display battery information. Gives you
access to the overall health (from Apple’s diagnostic tools) and cycle
count.