Upgrading gems for security