Evolution of a gravity wave spectrum through a current gradient