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

this is a weird pattern for a dynamic language. if you want to check if something is publishable, either have a convention, so all jobs are publishable, ie for a given naming pattern, or check for a specific method aka `respond_to? :publish`