Change the typo in for loop

Changed rgems to gems in the loop