Permalink
Browse files

Do not install rubygems for ruby-head.

  • Loading branch information...
wayneeseguin committed Feb 19, 2010
1 parent 43f5fa8 commit e23c14a830650b2bd23f721185cf60d8e941a7e0
Showing with 10 additions and 1 deletion.
  1. +10 −1 scripts/manage
View
@@ -853,6 +853,15 @@ __rvm_post_install() {
__rvm_rubygems_setup() {
if [[ ! -z "$(echo $rvm_ruby_version | awk '/^1\.9/')" ]] || [[ ! -z "$(echo $rvm_ruby_interpreter | awk '/^mput/')" ]] ; then
+ install=0
+ elif [[ "$rvm_ruby_string" = "ruby-head" ]] ; then
+ install=0
+ else
+ install=1
+ fi
+
+
+ if [[ "$install" -eq 0 ]] ; then
# 1.9.X has it's own built-in gem command
__rvm_inject_ruby_shebang "$rvm_ruby_src_path/bin/gem"
__rvm_inject_gem_env "$rvm_ruby_home/bin/gem"
@@ -868,7 +877,7 @@ __rvm_rubygems_setup() {
__rvm_inject_gem_env "$rvm_ruby_home/bin/gem"
ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/1.$rvm_major_version"
elif [[ ! -z "$(echo $rvm_ruby_interpreter | awk '/^rbx|jruby/')" ]] ; then
- (($rvm_debug_flag)) && $rvm_scripts_path/log "debug" "Skipping rubygems update for $rvm_ruby_version"
+ if [[ ! -z "$rvm_debug_flag" ]] ; then $rvm_scripts_path/log "debug" "Skipping rubygems update for $rvm_ruby_version" ; fi
ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/jruby"
else
$rvm_scripts_path/log "info" "Installing rubygems dedicated to $rvm_ruby_string..."

0 comments on commit e23c14a

Please sign in to comment.