Update gems and fix code/tests to adapt.