Getting this error when installing Cocoapods
<p>I am having an issue trying cocoapods. 
<code>Last login: Sat Mar 26 20:17:39 on console
Brians-MacBook-Air:~ katypatterson$ sudo gem install cocoapods
Password:
ERROR:  Error installing cocoapods:
    activesupport requires Ruby version &gt;= 2.2.2.
Brians-MacBook-Air:~ katypatterson$</code>
Do I have install Ruby version 2.2.2 ?</p>