Update gems and Foundation