Be strict in specifying ruby version

TravisCI changed (broke) the default ruby 1.8.7 in a recent update.
See https://github.com/travis-ci/travis-ci/issues/2224 for more
details. This commit uses the suggested fix in the issue thread.