xcode-select --install
accept license agreement: sudo xcodebuild -license
ruby -e "$(curl -fsSl https://raw.githubusercontent.com/Homebrew/install/master/install)"
\curl -sSL https://get.rvm.io | sudo bash -s stable --autolibs=homebrew
source /etc/profile.d/rvm.sh
rvm group add rvm $USER
rvm install 2.5.1
brew install openssl --force
On macOS Sierra (10.12) or earlier
sudo chown -R $USER:admin /usr/local
On macOS High Sierra (10.13)
sudo chown -R $(whoami) $(brew --prefix)/*
gem install bundler
bundle install
brew install chromedriver