scripts/gemsets in rvm-0.1.38 vs scripts/gemsets in rvm-0.1.39
- old
+ new
@@ -104,11 +104,11 @@
for dir in bin doc gems specifications ; do
mkdir -p "$destination_path/$dir"
cp -Rf "$source_path/$dir" "$destination_path/"
done
$rvm_scripts_path/log "info" "Making gemset for $destination_ruby pristine."
- $(rvm $destination_ruby ; gem pristine --all)
+ (rvm "$destination_ruby" ; gemset_pristine)
else
$rvm_scripts_path/log "error" "Gems directory does not exist for $source_path ($source_path)"
return 1
fi
@@ -329,11 +329,11 @@
# Switch the cache back.
rm -rf "$live_cache_path"
mv "$temporary_cache_path" "$live_cache_path"
}
-gem_pristine() {
+gemset_pristine() {
gem pristine --all
}
# Loads the default gemsets for the current interpreter and gemset.
gemset_initial() {
@@ -398,10 +398,10 @@
elif [[ "gemdir" = "$action" ]] || [[ "gempath" = "$action" ]] || [[ "gemhome" = "$action" ]] || [[ "home" = "$action" ]] || [[ "path" = "$action" ]] || [[ "version" = "$action" ]] ; then
gemset_info
elif [[ "install" = "$action" ]] ; then
gem_install $*
elif [[ "pristine" = "$action" ]] ; then
- gem_pristine $*
+ gemset_pristine $*
elif [[ "initial" = "$action" ]] ; then
gemset_initial
elif [[ "prune" = "$action" ]] ; then
gemset_prune
elif [[ "clear" = "$action" ]] ; then