Ruppeiner theory of black hole thermodynamics