language: ruby
notifications:
  email:
    on_success: change
    on_failure: always

before_install:
  - gem update --system $RUBYGEMS_VERSION
  - gem --version
  - gem install bundler
  - bundle --version
  - mkdir -p tmp/bundle

bundler_args: "--binstubs"

rvm: 
  - 1.8.7
  - 1.9.2
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - jruby-head
  - rbx

script: bin/rake build spec install

matrix:
  allow_failures:
    - rvm: 1.8.7

language: ruby
notifications:
  email:
    on_success: change
    on_failure: always

before_install:
  - gem update --system $RUBYGEMS_VERSION

  - gem --version
  - gem install bundler
  - bundle --version
  - mkdir -p tmp/bundle

bundler_args: "--binstubs"

rvm: 
  # - 1.8.7 - include below so RUBYGEMS version gets set
  - 1.9.2
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - jruby-head
  - rbx

script: bin/rake build spec install

matrix:
  allow_failures:
    - rvm: 1.8.7
      env: RUBYGEMS_VERSION=1.8.25
  include:
    # set RUBYGEMS_VERSION=1.8.25 for ruby 1.8.7 to avoid "undefined method `source_index' for Gem:Module" errors
    - rvm: 1.8.7
      env: RUBYGEMS_VERSION=1.8.25


Set RUBYGEMS back to avoid
Set RUBYGEMS back to avoid
