scripts/selector in rvm-0.0.95 vs scripts/selector in rvm-0.0.96
- old
+ new
@@ -65,10 +65,19 @@
fi
alias jruby_ng="jruby --ng"
alias jruby_ng_server="jruby --ng-server"
;;
+ ironruby)
+ unset rvm_ruby_patch_level
+ rvm_ruby_version=${rvm_ruby_version:-"$(__rvm_db "ironruby_version")"}
+ rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
+ rvm_ruby_package_file="${rvm_ruby_string}.zip"
+ rvm_ruby_package_name="${rvm_ruby_string}"
+ rvm_url="$(__rvm_db "ironruby_url")${rvm_ruby_package_file}"
+ ;;
+
ree)
rvm_ruby_interpreter=ree
rvm_ruby_version=${rvm_ruby_version:-"$(__rvm_db "ree_version")"}
if [[ ! -z "$rvm_ruby_patch_level" ]] ; then
rvm_ruby_patch_level="$(echo $rvm_ruby_patch_level | sed 's#^p##')"
@@ -263,21 +272,19 @@
else
echo "unset ${variable}" >> $rvm_path/default
fi
done ; unset variable value
- if [[ -s "$rvm_path/bin/$rvm_ruby_string" ]] ; then
- rm -f $rvm_path/bin/default*
- ln -fs "$rvm_path/bin/$rvm_ruby_string" "$rvm_path/bin/default_ruby" # So that people know what it's for :)
- ln -fs "$rvm_path/$rvm_ruby_string/bin/gem" "$rvm_path/bin/default_gem"
- ln -fs "$rvm_path/$rvm_ruby_string/bin/irb" "$rvm_path/bin/default_irb"
- else
- rm -f $rvm_path/bin/default*
- fi
+ if [[ ! -z "$rvm_default_flag" ]] ; then $rvm_scripts_path/symlink "default" ; fi
fi
fi
+
unset rvm_default_flag
fi
+
+ if [[ ! -z "$rvm_symlink_name" ]] ; then $rvm_scripts_path/symlink "$rvm_symlink_name" ; unset rvm_symlink_name ; fi
+ if [[ ! -z "$rvm_editor_flag" ]] ; then $rvm_scripts_path/symlink "editor" ; unset rvm_editor_flag ; fi
+ if [[ ! -z "$rvm_passenger_flag" ]] ; then $rvm_scripts_path/symlink "passenger" ; unset rvm_passenger_flag; fi
# Export ruby string and gem set name for extrnal scripts to take advantage of them.
if [[ ! -z "$rvm_ruby_string" ]] ; then export rvm_ruby_string ; fi
if [[ ! -z "$rvm_gem_set_name" ]] ; then export rvm_gem_set_name ; fi