I need to update my ruby version from 2.0.0 to the latest version, I can not use some gems because my version is not updated.
I had used Homebrew to install Ruby some time ago, How can i update my Ruby version?
Open your terminal and run
curl -L https://get.rvm.io | bash -s stable –ruby
When this is complete, you need to restart your terminal for the rvm to work.
rvm list known
This shows the list of versions of the ruby.
rvm install ruby-2.2.0
If you type
ruby -v in the terminal, it still shows you
To use the latest installed version.
rvm use ruby-2.2.0