From 4193ab9f4fdbe3bdea15a4693246d4fc4c517e7f Mon Sep 17 00:00:00 2001 From: Braintree Date: Fri, 7 Jun 2013 11:59:21 -0500 Subject: [PATCH] add .rvmrc to stop HttpTest from barfing when old rubies are on path --- .rvmrc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .rvmrc diff --git a/.rvmrc b/.rvmrc new file mode 100644 index 00000000..f8b5fc65 --- /dev/null +++ b/.rvmrc @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +RVMRC="ree-1.8.7-2012.02@gateway" +RUBYGEM_VERSION="1.3.7" + +rvm use $RVMRC --create --install + +if [[ `gem --version` != $RUBYGEM_VERSION ]] ; then + echo "Switching to RubyGems $RUBYGEM_VERSION" + rvm rubygems $RUBYGEM_VERSION +fi