Pin gem versions

This prevents errors occurring with the travis build when new versions
of gems are released.

Fixes #331