Add some resilience to the travis-ci job so that if rubygems is temperamental or fails it will retry

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1531453 13f79535-47bb-0310-9956-ffa450edef68