Fix build

- Fix Rubinius failures on Travis CI
- cache installed gems