A York woman who stalked a personal trainer has been spared jail.