Ruby Warnings

Here are fixes for some Ruby :warning:s.