Add contrib doc
Bump ruby version on Travis
Small bit of refactoring