The rupee gained as Brent crude prices fell sharply and the dollar index weakened