Gitignore .ruby-version and .ruby-gemset
Refactor it to set_properties

Updates the given key/value pairs and removes those that are nil