fix Rails 3.2 support and add .travis.yml build matrix