After reading Martin's answer, I've implemented a gem that implements the REST API for Sharepoint. It's not completely exhaustive, but it's enough for most of the tasks.
You can check out the gem over there: https://github.com/Plaristote/sharepoint-ruby