tested with ruby 2.0 and works fine.