Characterization of Riemannian manifolds with weak holonomy group $G_2$ (following A. Gray)