Gothon is a project mainly written in Ruby, it's free.
text-based adventure game
This is a slight refactoring of the Gothon game from "Learn Ruby the Hard Way" where levels are split into their own classes.