Browse files

Let users configure the rubygems version to install for a given inter…

…preter
  • Loading branch information...
1 parent bd23ec4 commit 761bcfa7d439339a259e9f2935649b225a7c3955 @Sutto Sutto committed Jun 18, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/manage
View
3 scripts/manage
@@ -959,7 +959,8 @@ __rvm_rubygems_setup() {
ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/jruby"
else
$rvm_scripts_path/log "info" "Installing rubygems dedicated to $rvm_ruby_string..."
- rvm_rubygems_version=$(__rvm_db "rubygems_version")
+ rvm_rubygems_version="$(__rvm_db "${rvm_ruby_interpreter}_rubygems_version")"
+ rvm_rubygems_version="${rvm_rubygems_version:-"$(__rvm_db "rubygems_version")"}"
rvm_rubygems_url=$(__rvm_db "rubygems_${rvm_rubygems_version}_url")
rvm_gem_package_name="rubygems-$rvm_rubygems_version"
rvm_gem_url="$rvm_rubygems_url/$rvm_gem_package_name.tgz"

0 comments on commit 761bcfa

Please sign in to comment.