Modified some files to obey robucop rules for ruby.