back out r12441
It is not compatible with Ruby 1.8.7.
Authored by: marutosijp 2013-12-22
Parent: [r12442]
Child: [r12444]