Add explicit dependency on 'yard' gem.

This seems to solve the "uninitialized constant YARD" error. Will have
to see whether it is the case on Travis as well.