Make the consumer backward compatible to ruby 1.8

Hi, i found the consumer is not compatible with ruby 1.8, i made a little change to fix it,, if you need tests for the change just let me know.

Regards.