Prolific offender jailed for threatening man with knife in Ripon