Use travis_retry to install gems.

Prevents possible network timeouts on rubygems.org from affecting the build.