Update ruby version to 2.1.1 and rubygems to 2.2.2

Update ruby version to 2.1.1 and rubygems to 2.2.2