capability in key_common not working properly.

Method capability in key_common is not working for me (Ruby 1.9.3 & GnuPG 2.0.22)
I made it works by adding some "== 1" conditions.