Test against Ruby 2.1 / 2.2 on Travis CI

Including fix for Ruby 2.2.