Cleanup for rubygems standard and rails 4 compatibility