Hm, I don't see much difference between running sed and adding a patch to a formula? The shell command is also a no-brainer, why use ruby for that?