chriseppstein/compass — pull request #1086 by alfonsocora (2012-11-07 17:18:42+00:00)
Title: Fix the duck typing to support the Hashery gem

This pull request makes Compass compatible with Hashery. The Hashery gem defines a "read" method in the Hash class, so Compass duck typing thinks it's an IO object and blows up when it tries to read it. I added a new condition to the type check to see if the config is actually a Hash (using instance_of, not is_a) before checking if it's an IO object.