Updates default Ruby version on MacOs
Open terminal and type:
ruby -v
In terminal, curl -L https://get.rvm.io | bash -s stable
Once this command has finished running you may need to restart your terminal for rvm to be recognised.
get cocoapods versions