Fix some Ruby warnings

Fixes some ruby :warning:s.