ruby 1.9.x compatibility

Signed-off-by: Barry Allard <barry.allard@gmail.com>