Travis multi-Ruby support

Fixes #4686.