#!/usr/bin/env bash

if
  [[ -s "/Users/haven/.rvm/gems/ruby-2.2.2/environment" ]]
then
  source "/Users/haven/.rvm/gems/ruby-2.2.2/environment"
  exec nokogiri "$@"
else
  echo "ERROR: Missing RVM environment file: '/Users/haven/.rvm/gems/ruby-2.2.2/environment'" >&2
  exit 1
fi
