update gems and fix deprecation warnings

[finish #52241337]