change rubygems source and fix ruby version