Reindent case statements.
Fix assignments in conditions.
Don't use deprecated File.exists? method.
Don't load ruby-debug, skip ruby < 1.9 compat.
Fix incorrect reliance on proc equality.
Fix a large number of style nits.

Working slowly through the rubocop list.