Sorry to hear about the broken rib! Yikes. Hope you recover well/quickly.

I am going to get flack for suggesting this one, but it does work.

Fill a water bottle w/ vinegar & ammonia water. Could probably go with just the vinegar, stay slightly more humane. Anywho, squirt the animal when it nears.