Fix Ruby warnings

- Fix remaining Ruby warnings
- Upgrade gem dependencies to remove additional warnings and deprecations

Work towards a cleaner spec suite output.