Update gem version

Hello. i’m new in Ror project.

How to update gem version. Now ny gem version is 1.3.7.
I just wanna update to >=2.2.2.

Thanks
Tsolmon