To develop with ruby we use rbenv. Rbenv allow us to use multiple version of ruby.
The package was installed by brew bundle install but we now need to install the ruby version we will use.
$ rbenv install 2.6.1
# Define ruby 2.6.1 as default
$ rbenv global 2.6.1
Be sure to use the last version of rubygem (this must be done for each version of ruby).
$ gem update --system
The following command help us to not install all documentation when we install a gem.
$ echo 'gem: --no-document' >> ~/.gemrc
Then we install our most common gems.
$ gem install bundler pg rails
Finally we configure bundler to do more parallelism on installation process.
# Parallelize gems installation with bundle
$ bundle config --global jobs `expr $(sysctl -n hw.ncpu) - 1`
Be sure to use the last version of npm and yarn.
$ npm install -g npm
$ npm install -g yarn