Install_gem function uses an array