cleanup the ruby code

things i did here

* [x] remove unnecessary whitespace
* [x] remove ruby warnings (ruby -w) (unused variables, ambiguous naming) 
* [x] remove hash-rockets and use new hash-syntax
* [x] remove unnecessary  `return` statements and method hashes `bla({:x => 'y'})` --> `bla(x: 'y')`
* [x] reformat with BeatifyRuby

i would have given the variable a better name, but i don't understand what it is supposed to do.