scripts/rubygems in rvm-1.0.4 vs scripts/rubygems in rvm-1.0.5

- old
+ new

@@ -44,11 +44,11 @@ if [[ ! -d "$rvm_src_path/$rvm_gem_package_name" ]] ; then "$rvm_scripts_path/log" "info" "Retrieving $rvm_gem_package_name" "$rvm_scripts_path/fetch" "$rvm_gem_url" result=$? ; if [[ "$result" -gt 0 ]] ; then - "$rvm_scripts_path/log" "error" "There has been an error while trying to fetch the source. Aborting the installation." ; __rvm_pushpop ; return $result + "$rvm_scripts_path/log" "error" "There has been an error while trying to fetch the source. Aborting the installation." ; return $result fi \mkdir -p "$rvm_src_path/$rvm_gem_package_name" __rvm_run "rubygems.extract" "gunzip < $rvm_archives_path/$rvm_gem_package_name.tgz | tar xf - -C $rvm_src_path" "Extracting $rvm_gem_package_name ..." fi @@ -60,11 +60,11 @@ "$rvm_scripts_path/log" "info" "Installation of rubygems completed successfully." else "$rvm_scripts_path/log" "warning" "Installation of rubygems did not complete successfully." fi - if [[ ! -z "$rvm_major_version" ]] ; then - ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/${rvm_release_version}.${rvm_major_version}" + if [[ ! -z "$rvm_ruby_major_version" ]] ; then + ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/${rvm_ruby_release_version}.${rvm_ruby_major_version}" else ruby_lib_gem_path="$rvm_ruby_home/lib/ruby/gems/$interpreter" fi fi