Add 'ruby-head' to allowed failures

Add 'ruby-head' to allowed failures in the build matrix. For more
information, see https://github.com/travis-ci/travis-ci/issues/1195.