Ruby Warnings

Here are fixes for some trivial Ruby :warning:s.