Homebrew update & upgrade:
$ brew update
$ brew upgrade
$ brew cleanupBackup Homebrew directory:
$ sudo mv /usr/local ~/localResotre Homebrew directory:
$ sudo mv ~/local /usr/localInstall Command-Line Tools:
$ xcode-select --installRun Software-update:
$ sudo softwareupdate --install -allRe-Install Ruby and RubyGems:
$ rbenv uninstall 2.1.3
$ rbenv install 2.1.3
$ rbenv global 2.1.3
$ gem i bundler mechanize pit