I recently spent some time working at Agora Games. During my time there, I ended up writing a pure ruby mpq (Blizzard game file format) parser specifically for StarCraft II replays.