£8,000 gate installed in Ripon to tackle crime