Browse files

Clean up some RubyGems-related duplication.

As a positive side-effect, this provides an (unofficial) mechanism
for requesting a specific version of RubyGems be installed as a part
of a Ruby version install.
  • Loading branch information...
1 parent b478c5c commit 883ffcb30f5391cf7dbf1829dda6814ecffb33a2 Pieter van de Bruggen committed May 13, 2011
Showing with 1 addition and 13 deletions.
  1. +1 −13 scripts/manage
View
14 scripts/manage
@@ -286,19 +286,7 @@ __rvm_install_source()
export GEM_HOME="$rvm_ruby_gem_home"
export GEM_PATH="$rvm_ruby_gem_path"
- case "$rvm_ruby_string" in
- ruby-1.8*)
- version="${rvm_ruby_version//*.}"
- if [[ $version -lt 7 ]] ; then
- "$rvm_scripts_path/rubygems" 1.3.7
- else
- "$rvm_scripts_path/rubygems" latest
- fi
- ;;
- *)
- "$rvm_scripts_path/rubygems" latest
- ;;
- esac
+ "$rvm_scripts_path/rubygems" ${rvm_rubygems_version:-latest}
result=$?
__rvm_bin_script

0 comments on commit 883ffcb

Please sign in to comment.