うちのいぬ Tech Blog

Tech Blog of Uchinoinu/My dog

Update rbenv and update ruby

Env

Flow

$ brew update
$ brew upgrade ruby-build
$ rbenv install -l # Check available versions
$ rbenv install 2.2.3 # choose one from list above
$ rbenv global 2.2.3
$ rbenv versions # Check result

if you use bundler, you should install new one for new ruby version

$ gem update bundler # no need?
$ gem install bundler

for each project

At project root

$rbenv local 2.2.3 # specify version

$ bundle install # no need?