View the Project on GitHub nicolas-brousse/osx-install-and-tips
$ brew install rbenv ruby-build
Add the rbenv
plugin to OhMyZsh config.
$ rbenv install 2.4.1
# Define ruby 2.4.1 as default
$ rbenv global 2.4.1
$ gem update --system
$ echo 'gem: --no-document' >> ~/.gemrc
$ gem install bundler foreman pg rails
# Parallelize gems installation with bundle
$ bundle config --global jobs `expr $(sysctl -n hw.ncpu) - 1`
$ brew install puma/puma/puma-dev
Somes tips here.
https://gist.github.com/brentertz/1384279
https://gist.github.com/jpantuso/1110217
http://www.bounga.org/ruby/2012/02/06/pow-using-rbenv/
http://robots.thoughtbot.com/using-rbenv-to-manage-rubies-and-gems
https://robots.thoughtbot.com/parallel-gem-installing-using-bundler