Skip to main content

Ruby

Quickly setup with rbenv

Install version manager - rbenv

brew install rbenv
# run this and follow the printed instructions:
rbenv init

Install the latest stable version

# List latest stable versions
rbenv install --list

# Install a specific version
rbenv install 3.2.2

# Activate a specific version
rbenv gloabl 3.2.2

Install CocoaPods

Sudo-less installation

Add following line to ~/.zshrc

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

And then,

source ~/.zshrc

Finally,

gem install cocoapods