language: ruby

env:
  - "RAILS_VERSION=3.2.0"
  - "RAILS_VERSION=4.0.0"
  - "RAILS_VERSION=4.1.1"
  - "RAILS_VERSION=4.2.4"
  - "RAILS_VERSION=master"

rvm:
  - 1.9.3
  - 2.0
  - 2.1
  - 2.2

matrix:
  allow_failures:
    - env: "RAILS_VERSION=master"

before_script:
  - bundle exec rake app:db:migrate

script: bundle exec rake spec

language: ruby

env:
  - "RAILS_VERSION=3.2.0"
  - "RAILS_VERSION=4.0.0"
  - "RAILS_VERSION=4.1.1"
  - "RAILS_VERSION=4.2.4"
  - "RAILS_VERSION=master"

rvm:
  - 1.9.3
  - 2.0
  - 2.1
  - 2.2

matrix:
  allow_failures:
    - env: "RAILS_VERSION=master"

before_install:
  - gem update bundler

before_script:
  - bundle exec rake app:db:migrate

script: bundle exec rake spec

Update bundler on Travis before installing gems
Update bundler on Travis before installing gems

**Why**:
I noticed that recent builds started failing on Travis for no apparent reason. I then saw that Travis was using a different version of bundler compared to builds from 2 months ago. This version of bundler seems to be incompatible with certain versions of Ruby.

By making sure bundler is up to date, it allows Travis to install the gems on all the versions of Ruby that this repo supports.
