Borderers Richie Gray and Jill Douglas have been awarded honorary doctorates in recognition of their services to sport.