Unfortunately, it doesn't look like this patch works in Ruby 1.9, where YAML is actually the Psych module. Any Psych experts know how to make this 1.9-compatible?
I commented here:
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> YAML
=> Psych