Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 2.06 KB

step_four_ruby.md

File metadata and controls

21 lines (19 loc) · 2.06 KB

Ruby Engineering Configurations : Step Four

This installation utilizes rbenv to run ruby. If you are ok with that, let's type cmd + space to launch Terminal to perform the next block of installations in your home directory.

  1. Setup Ruby via brew install rbenv
  2. Following the guide on the repo create the .rbenv directory. rbenv init and then eval "$(rbenv init -)".
  3. Create the rbenv plugin directory mkdir $(rbenv root)/plugins.
  4. Install rbenv-default-gems plugin git clone https://github.com/rbenv/rbenv-default-gems.git $(rbenv root)/plugins/rbenv-default-gems.
  5. Install rbenv/rbenv-gem-rehash plugin git clone https://github.com/sstephenson/rbenv-gem-rehash.git $(rbenv root)/plugins/rbenv-gem-rehash.
  6. Install rbenv-vars plugin git clone https://github.com/rbenv/rbenv-vars.git $(rbenv root)/plugins/rbenv-vars.
  7. Install rbenv-update plugin git clone https://github.com/rkh/rbenv-update.git $(rbenv root)/plugins/rbenv-update.
  8. Install a few common versions of ruby. Please note you can run rbenv install -l to see the current versions available. I installed the following: 2.7.5, 3.0.3, and 3.1.0 and the time this guide was compiled.
  9. Run rbenv global 2.7.5 to setup the global version of ruby.
  10. If this is a new machine migrated from an older box, make sure to copy over the .rbenv/vars file so you do not lose passwords.
  11. Setup pre-gems for our IDE at this time: gem install rsense.
  12. Verify global rbenv vars are setup correctly. Type nano $HOME/.rbenv/vars and confirm the following. Adjust if necessary. Once completed, type rbenv vars and you should see export GEM_PATH='bundle'.
#GLOBAL
GEM_PATH=.bundle