Updating Ruby

Daily Standup

Today I did a walk-through for a workshop I’ll be helping out at, going through the process of setting up a Jekyll blog (memories!).

Updating Ruby

Turns out my version of Ruby was pretty out of date! I used the Ruby environment manager rvm to update, but got a pretty nasty warning at the start:

$ rvm -v
Warning! PATH is not properly set up, '/Users/username/.rvm/gems/ruby-2.3.3/bin' is not at first place.
Usually this is caused by shell initialization files. Search for 'PATH=...' entries.
You can also re-add RVM to your profile by running: 'rvm get stable --auto-dotfiles'.
To fix it temporarily in this shell session run: 'rvm use ruby-2.3.3'.
To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

I went ahead with the installation:

$ rvm install ruby-2.5.1

After the installation I set the new version to be the default with rvm use default 2.5.1. But I was still getting rvm warnings so I tried resetting the .bashrc and .bash_profile settings with rvm get stable --auto-dotfiles as per the warning instructions. This added the following line to my .bashrc file:

export PATH="$PATH:$HOME/.rvm/bin"

Well shocker, that was already there! And I was still getting a warning. Hmmm…

StackOverflow to the rescue: I just needed to run rvm reset and the warnings went away. Nice!

$ rvm -v
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
$ rvm list

rvm rubies

ruby-2.3.3 [ x86_64 ]
=* ruby-2.5.1 [ x86_64 ]

# => - current
# =* - current && default
# * - default

Other Stuff

Didn’t write on the day but I went to another fun meetup the other night and spoke to quite a few people. Literally did not open my laptop once though 😂

Up Next

STILL working on those websites.