Generate .travis.yml and refactor ruby-version handling