Implemented something similar for a project I was working on a few months ago using PHP. Just wrote up a blog post about my implementation:
http://nleach.com/post/4315166514/activity-feed-in-redis-usi...
It's pretty similar to the Ruby example, but I figured I'd share it anyway. Feedback very much welcome!