Patch for Ruby 1.9 in Quantal

Signed-off-by: Vlad <vg@vladgh.com>