To ruffle someone is to rub a hand or paw over their fur, headfur, feathers, or hair, usually leaving them mussed; it is an affectionate action although its untidy effect may be resented.