installs and configures rubygems