#!/bin/bash
function testversion {
  echo Testing Ruby $1
  rbenv install -s $1
  rbenv local $1
  gem install bundler --quiet
  bundle install --quiet
  bundle exec rspec
  if [ $? -eq 0 ]; then
    echo -e "\033[32mSuccess testing Ruby $1\033[0m"
  else
    echo -e "\033[31mFailed testing Ruby $1 Exit code was $?\033[0m"
  fi
  echo

}

for VERSION in 1.8.7 1.9.3 2.0.0 2.1.1; do
  testversion $VERSION
done

#!/bin/bash
function testversion {
  echo Testing Ruby $1
  rbenv install -s $1
  rbenv local $1
  gem install bundler --quiet
  bundle install --quiet
  bundle exec rspec
  if [ $? -eq 0 ]; then
    echo -e "\033[32mSuccess testing Ruby $1\033[0m"
  else
    echo -e "\033[31mFailed testing Ruby $1 Exit code was $?\033[0m"
  fi
  echo

}

for VERSION in 2.2.9 2.3.6 2.4.3 2.5.0; do
  testversion $VERSION
done

Update local testing script to use current rubies
Update local testing script to use current rubies

I should add the multi-ruby test matrix support into the Rakefile,
perhaps parse it from the .travis.yml so there's one source of truth on
the Ruby versions.
