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: GitHub - Chris911/iStats: Ruby gem for your mac stats

Gem: iStats | RubyGems.org | your community gem host

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.