Minor update to code style of Versioning

* use unless instead of if !
* map(&:to_s) is unnecessary