rvm 0.0.80 → 0.0.81

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -26,14 +26,13 @@ Action
26
26
  tests - runs 'rake test' across selected ruby versions
27
27
  specs - runs 'rake spec' across selected ruby versions
28
28
 
29
- gemsync - sync gems from a specified version to current version
30
29
  gemdir - switch to gem directory for installation (new login shell)
31
30
  srcdir - switch to src directory for the current ruby installation
32
31
 
33
32
  Implementation
34
33
 
35
34
  * ruby - MRI/YARV Ruby (The Standard), defaults to 1.8.6
36
- jruby - jRuby
35
+ jruby - JRuby
37
36
  rbx - rubinius
38
37
  ree - ruby Enterprise Edition
39
38
  mput - shyouhei(mput)'s github repository
data/install CHANGED
@@ -1,15 +1,19 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
4
- if [[ -f "/etc/rvmrc" ]] ; then source "/etc/rvmrc" ; fi
5
- if [[ "root" = "$(whoami)" ]] ; then
6
- rvm_path="${rvm_path:-/usr/local/rvm}"
7
- rc_files="$rc_files /etc/profile /etc/zshenv"
8
- else
9
- if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
10
- rvm_path="${rvm_path:-$HOME/.rvm}"
3
+ if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
4
+ if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
5
+ if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi
6
+
7
+ if [[ -z "$rvm_path" ]] ; then
8
+ if [[ "root" = "$(whoami)" ]] ; then
9
+ rvm_path="${rvm_path:-/usr/local/rvm}"
10
+ else
11
+ rvm_path="${rvm_path:-$HOME/.rvm}"
12
+ fi
11
13
  fi
12
14
 
15
+ source scripts/initialize
16
+
13
17
  #
14
18
  # Setup
15
19
  #
@@ -21,8 +25,8 @@ if [[ ! -d "$source_dir" ]] ; then unset source_dir ; fi
21
25
  source_dir="${source_dir:-$cwd}"
22
26
 
23
27
  # State what is required to use rvm
24
- echo -e "\n$(tput setaf 2)rvm$(tput sgr0)\n\n shell scripts that allows a user to manage multiple ruby versions in their own account."
25
- echo -e "\n Installing rvm to $rvm_path ..."
28
+ echo -e "\n$(tput setaf 2)rvm$(tput sgr0) - shell scripts that allows a user to manage multiple ruby versions in their own account."
29
+ echo -e "\n Installing to $rvm_path..."
26
30
  for dir_name in src scripts bin log archives config gems examples ; do
27
31
  mkdir -p "$rvm_path/$dir_name"
28
32
  done
@@ -47,15 +51,15 @@ ln -nfs $rvm_path/scripts/rvm $rvm_path/bin/rvm
47
51
  #
48
52
  # RC Files
49
53
  #
50
- if [[ -z "$rvm_loaded_flag" ]] ; then
51
- for rcfile in $(echo $rc_files) ; do
52
- if [[ ! -f $rcfile ]] ; then touch $rcfile ; fi
53
- if [[ -z "$(awk '/\.rvm\/scripts\/rvm/' $rcfile)" ]] ; then
54
- echo " Adding 'if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi' to $rcfile."
55
- echo -e "\n# rvm-install added line:\nif [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi\n" >> $rcfile
56
- fi
57
- done
58
- fi
54
+ for rcfile in $(echo $rvm_rc_files) ; do
55
+ if [[ ! -f $rcfile ]] ; then touch $rcfile ; fi
56
+ if [[ -z "$(awk "/$(echo "$rvm_path/scripts/rvm" | sed 's#/#\\/#g')/" $rcfile)" ]] ; then
57
+ echo " Adding 'if [[ -s $rvm_path/scripts/rvm ]] && [[ "\$rvm_loaded_flag" -le 0 ]] ; then source $rvm_path/scripts/rvm ; fi' to $rcfile."
58
+ echo -e "\n# rvm-install added line:\nif [[ -s $rvm_path/scripts/rvm ]] && [[ "\$rvm_loaded_flag" != "1" ]] ; then source $rvm_path/scripts/rvm ; fi\n" >> $rcfile
59
+ else
60
+ : # it exists... remove it and append at the end
61
+ fi
62
+ done
59
63
 
60
64
  if [[ "root" = "$(whoami)" ]] ; then
61
65
  ln -nfs $rvm_path/scripts/rvm /usr/local/bin/rvm
@@ -66,7 +70,7 @@ fi
66
70
  # System Checks
67
71
  #
68
72
  system="$(uname)"
69
- echo -e "\n $(tput setaf 3)NOTES: $(tput sgr0)\n"
73
+ echo -e "\n$(tput setaf 2)Notes: $(tput sgr0)\n"
70
74
  if [[ "Linux" = "$system" ]] ; then
71
75
  rvm_apt_get_binary="$(which aptitude 2> /dev/null)"
72
76
  rvm_emerge_binary="$(which emerge 2> /dev/null)"
@@ -74,44 +78,42 @@ if [[ "Linux" = "$system" ]] ; then
74
78
  rvm_yum_binary="$(which yum 2> /dev/null)"
75
79
 
76
80
  if [[ ! -z "$rvm_apt_get_binary" ]] ; then
77
- echo -e " $item For jRuby (if you wish to use it) you will need:"
78
- echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
79
- echo -e " $item For ree (if you wish to use it) you will need:"
80
- echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
81
- echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
82
- echo -e " $ aptitude install libxml2-dev"
81
+ echo -e " $item For JRuby (if you wish to use it) you will need:"
82
+ echo -e " $ aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
83
+ echo -e " $item For ree (if you wish to use it) you will need:"
84
+ echo -e " $ aptitude install libreadline5-dev libssl-dev bison"
85
+ echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
86
+ echo -e " $ aptitude install libxml2-dev"
83
87
 
84
88
  elif [[ ! -z "$rvm_emerge_binary" ]] ; then
85
- echo -e " $item For jRuby (if you wish to use it) you will need:"
86
- echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
89
+ echo -e " $item For JRuby (if you wish to use it) you will need:"
90
+ echo -e " $ emerge dev-java/sun-jdk dev-java/sun-jre-bin"
87
91
 
88
92
  elif [[ ! -z "$rvm_pacman_binary" ]] ; then
89
- echo -e " $item For jRuby (if you wish to use it) you will need:"
90
- echo -e " $ pacman -Sy jdk jre"
93
+ echo -e " $item For JRuby (if you wish to use it) you will need:"
94
+ echo -e " $ pacman -Sy jdk jre"
91
95
 
92
96
  elif [[ ! -z "$rvm_yum_binary" ]] ; then
93
- echo -e " $item For ree (if you wish to use it) you will need:"
94
- echo -e " $ yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
97
+ echo -e " $item For ree (if you wish to use it) you will need:"
98
+ echo -e " $ yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
95
99
 
96
100
  else
97
- echo -e " $item For jRuby (if you wish to use it) you will need:"
98
- echo -e " The SUN java runtime environment and development kit."
101
+ echo -e " $item For JRuby (if you wish to use it) you will need:"
102
+ echo -e " The SUN java runtime environment and development kit."
99
103
  fi
100
104
  elif [[ "Darwin" = "$system" ]] ; then
101
- echo -e " $item Be sure that you have XCode Tools installed in order to use rvm."
102
- echo -e " $item If you intend on installing MacRuby you must install LLVM first."
105
+ echo -e " $item Be sure that you have XCode Tools installed in order to use rvm."
106
+ echo -e " $item If you intend on installing MacRuby you must install LLVM first."
103
107
  fi
104
108
 
105
- echo -e " $item In order to use rvm the following line must occur in your shell's loading files, after all path/variable settings.:"
106
- echo -e " $item if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
107
- echo -e " $item CLOSE THIS SHELL AND OPEN A NEW ONE in order to use rvm."
109
+ echo -e " $item In order to use rvm the following line must occur in your shell's loading files, after all path/variable settings.:"
110
+ echo -e " $item if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
111
+ echo -e " $item CLOSE THIS SHELL AND OPEN A NEW ONE in order to use rvm."
108
112
 
109
- echo -e "\n \033[0;33mRTFM: $(tput sgr0) http://rvm.beginrescueend.com/ \n"
113
+ echo -e "\n$(tput setaf 2)RTFM:\n $(tput sgr0) http://rvm.beginrescueend.com/ \n"
110
114
  echo -e "$(tput setaf 2)w⦿‿⦿t!$(tput sgr0)"
111
115
  echo -e "\n ~ Wayne\n"
112
116
 
113
- source $rvm_path/scripts/rvm
114
- rvm -v
115
- echo
117
+ $rvm_path/bin/rvm -v
116
118
 
117
119
  exit 0
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 80
4
+ :patch: 81
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.80"
8
+ s.version = "0.0.81"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wayne E. Seguin"]
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.files = [
21
21
  "LICENCE",
22
22
  "README",
23
- "binscripts/gemsync",
24
23
  "binscripts/rvm-prompt",
25
24
  "config/db",
26
25
  "examples/rvmrc",
@@ -36,11 +35,17 @@ Gem::Specification.new do |s|
36
35
  "scripts/cli",
37
36
  "scripts/color",
38
37
  "scripts/completion",
38
+ "scripts/db",
39
+ "scripts/fetch",
39
40
  "scripts/functions",
40
41
  "scripts/gems",
42
+ "scripts/initialize",
41
43
  "scripts/install",
42
44
  "scripts/irbrc",
43
45
  "scripts/irbrc.rb",
46
+ "scripts/log",
47
+ "scripts/match",
48
+ "scripts/monitor",
44
49
  "scripts/ruby-installer",
45
50
  "scripts/rvm",
46
51
  "scripts/rvm-install",
@@ -17,7 +17,7 @@ __rvm_parse_args() {
17
17
  while [[ $# -gt 0 ]] ; do
18
18
  rvm_token="$1" ; shift
19
19
  case "$rvm_token" in
20
- install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|implode|readline|gemsync|update|iconv|curl|openssl|ncurses|zlib|readline)
20
+ install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|implode|readline|update|iconv|curl|openssl|ncurses|zlib|readline)
21
21
  rvm_action=$rvm_token
22
22
  ;;
23
23
 
@@ -47,7 +47,7 @@ __rvm_parse_args() {
47
47
  rvm_ruby_interpreter="$rvm_token"
48
48
  rvm_ruby_string="$rvm_token"
49
49
  rvm_action="${rvm_action:-use}"
50
- if match "$1" "^[0-9]\.[0-9]" ; then rvm_ruby_version=$1 ; shift ; fi
50
+ if $rvm_scripts_path/match "$1" "^[0-9]\.[0-9]" ; then rvm_ruby_version=$1 ; shift ; fi
51
51
  ;;
52
52
 
53
53
  gems|gemset)
@@ -72,22 +72,6 @@ __rvm_parse_args() {
72
72
  eval "rvm_${rvm_token}_flag=1"
73
73
  ;;
74
74
 
75
- gemdup)
76
- rvm_action=$rvm_token
77
- if [[ -z "$1" ]] ; then
78
- rvm_ruby_interpreter="default"
79
- elif [[ "system" = "$1" ]] ; then
80
- rvm_ruby_interpreter=$1 ; shift
81
- elif [[ "user" = "$1" ]] ; then
82
- rvm_ruby_interpreter=$1 ; shift
83
- elif [[ "default" = "$1" ]] ; then
84
- rvm_ruby_interpreter=$1 ; shift
85
- else
86
- rvm_ruby_interpreter=$1 ; shift
87
- rvm_ruby_version=$2 ; shift
88
- fi
89
- ;;
90
-
91
75
  -S|-e)
92
76
  rvm_action="ruby"
93
77
  rvm_ruby_args="$rvm_token $@"
@@ -113,10 +97,10 @@ __rvm_parse_args() {
113
97
  rvm_parse_break=1
114
98
  fi
115
99
  else
116
- if match "$1" "^-" ; then
100
+ if $rvm_scripts_path/match "$1" "^-" ; then
117
101
  unset rvm_ruby_version
118
102
  else
119
- if match "$1" "^[0-9]" ; then
103
+ if $rvm_scripts_path/match "$1" "^[0-9]" ; then
120
104
  rvm_ruby_version=$(echo "$1" | tr ',' ' ') ; shift
121
105
  unset rvm_ruby_interpreter
122
106
  else
@@ -248,7 +232,6 @@ __rvm_parse_args() {
248
232
 
249
233
  --install) rvm_install_on_use_flag=1 ;;
250
234
  -h|--help|usage|help) rvm_action=help ;;
251
- --prefix) rvm_prefix_path="$1" ; shift ;;
252
235
  -G|--gems) rvm_gem_path="$1" ; shift ;;
253
236
  --source) rvm_src_path="$1" ; shift ;;
254
237
  --archives) rvm_archives_path="$1" ; shift ;;
@@ -266,6 +249,7 @@ __rvm_parse_args() {
266
249
 
267
250
  --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--jit|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose)
268
251
  eval "rvm_$(echo $rvm_token | sed 's#-##g')_flag=1"
252
+ if [[ "--debug" = "$rvm_token" ]] ; then export rvm_debug_flag ; fi
269
253
  ;;
270
254
 
271
255
  reboot|flush|asdf|damnit|wtf|argh|work|workdamnit|BOOM|boom|wth)
@@ -280,7 +264,7 @@ __rvm_parse_args() {
280
264
  *)
281
265
  if [[ ! -z "$rvm_token" ]] ; then
282
266
  if [[ "gems" = "$rvm_action" ]] ; then
283
- if match "$rvm_token" "^.+%.+$" ; then
267
+ if $rvm_scripts_path/match "$rvm_token" "^.+%.+$" ; then
284
268
  rvm_gem_set_name="$(echo "$rvm_token" | awk -F'%' '{print $2}')"
285
269
  rvm_ruby_string="$(echo "$rvm_token" | awk -F'%' '{print $1}')"
286
270
  elif [[ ! -z "$(echo "$rvm_token" | awk '/\.gems$/')" ]] ; then
@@ -295,19 +279,19 @@ __rvm_parse_args() {
295
279
  if [[ -z "$rvm_action" ]] ; then
296
280
  rvm_action="ruby" # Not sure if we really want to do this but we'll try it out.
297
281
  fi
298
- elif match "$rvm_token" "^.+%.+$" ; then
282
+ elif $rvm_scripts_path/match "$rvm_token" "^.+%.+$" ; then
299
283
  rvm_gem_set_name="$(echo "$rvm_token" | awk -F'%' '{print $2}')"
300
284
  rvm_ruby_string="$(echo "$rvm_token" | awk -F'%' '{print $1}')"
301
- elif match "$rvm_token" "-" ; then
285
+ elif $rvm_scripts_path/match "$rvm_token" "-" ; then
302
286
  rvm_ruby_string="$rvm_token"
303
- elif match "$rvm_token" "^[0-9].[0-9]" ; then
287
+ elif $rvm_scripts_path/match "$rvm_token" "^[0-9].[0-9]" ; then
304
288
  rvm_ruby_string="$rvm_token"
305
289
  rvm_action="${rvm_action:-use}"
306
- elif match "$rvm_token" "^ree" ; then
290
+ elif $rvm_scripts_path/match "$rvm_token" "^ree" ; then
307
291
  rvm_ruby_string="$rvm_token"
308
292
  rvm_action="${rvm_action:-use}"
309
293
  else
310
- if match "$rvm_token" "\.rb$" ; then # we have a specified ruby script
294
+ if $rvm_scripts_path/match "$rvm_token" "\.rb$" ; then # we have a specified ruby script
311
295
  rvm_ruby_args=$rvm_token
312
296
  rvm_ruby_file=$rvm_token
313
297
  if [[ -z "$rvm_action" ]] ; then
@@ -336,7 +320,6 @@ __rvm_parse_args() {
336
320
  }
337
321
 
338
322
  rvm() {
339
-
340
323
  trap '__rvm_cleanup_variables ; rm -rf "/tmp/rvm/$$" >/dev/null 2>&1' 0 1 2 3 15
341
324
 
342
325
  # Check that this is the current version.
@@ -357,7 +340,6 @@ rvm() {
357
340
  case "$rvm_action" in
358
341
  use) __rvm_use ; result=$? ;;
359
342
  gemdir) __rvm_gemdir ; result=$? ;;
360
- gemdup) __rvm_gemdup ; result=$? ;;
361
343
  srcdir) __rvm_source_dir ; result=$? ;;
362
344
  list) __rvm_list ; result=$? ;;
363
345
  version) __rvm_version ; result=$? ;;
@@ -381,11 +363,6 @@ rvm() {
381
363
  result=$?
382
364
  ;;
383
365
 
384
- gemsync)
385
- rvm_source_gem_path=$(__rvm_select ; echo $rvm_ruby_gem_home)
386
- __rvm_gem_sync
387
- ;;
388
-
389
366
  info|debug)
390
367
  __rvm_version
391
368
  __rvm_info
@@ -393,14 +370,14 @@ rvm() {
393
370
  ;;
394
371
 
395
372
  error)
396
- __rvm_log "fail" "$rvm_error_message ( see: 'rvm usage' )"
373
+ $rvm_scripts_path/log "fail" "$rvm_error_message ( see: 'rvm usage' )"
397
374
  __rvm_pushpop
398
375
  result=1;
399
376
  ;;
400
377
 
401
378
  *)
402
379
  if [[ ! -z "$rvm_action" ]] ; then
403
- __rvm_log "fail" "unknown action '$rvm_action'"
380
+ $rvm_scripts_path/log "fail" "unknown action '$rvm_action'"
404
381
  else
405
382
  __rvm_usage
406
383
  fi
@@ -1,52 +1,49 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- __color() {
4
- case "$1" in
5
- # regular colors
6
- black) tput setaf 0 ;;
7
- red) tput setaf 1 ;;
8
- green) tput setaf 2 ;;
9
- yellow) tput setaf 3 ;;
10
- blue) tput setaf 4 ;;
11
- magenta) tput setaf 5 ;;
12
- cyan) tput setaf 6 ;;
13
- white) tput setaf 7 ;;
3
+ case "$1" in
4
+ # regular colors
5
+ black) tput setaf 0 ;;
6
+ red) tput setaf 1 ;;
7
+ green) tput setaf 2 ;;
8
+ yellow) tput setaf 3 ;;
9
+ blue) tput setaf 4 ;;
10
+ magenta) tput setaf 5 ;;
11
+ cyan) tput setaf 6 ;;
12
+ white) tput setaf 7 ;;
14
13
 
15
- # emphasized (bolded) colors
16
- eblack) tput bold ; tput setaf 0 ;;
17
- ered) tput bold ; tput setaf 1 ;;
18
- egreen) tput bold ; tput setaf 2 ;;
19
- eyellow) tput bold ; tput setaf 3 ;;
20
- eblue) tput bold ; tput setaf 4 ;;
21
- emagenta) tput bold ; tput setaf 5 ;;
22
- ecyan) tput bold ; tput setaf 6 ;;
23
- ewhite) tput bold ; tput setaf 7 ;;
14
+ # emphasized (bolded) colors
15
+ eblack) tput bold ; tput setaf 0 ;;
16
+ ered) tput bold ; tput setaf 1 ;;
17
+ egreen) tput bold ; tput setaf 2 ;;
18
+ eyellow) tput bold ; tput setaf 3 ;;
19
+ eblue) tput bold ; tput setaf 4 ;;
20
+ emagenta) tput bold ; tput setaf 5 ;;
21
+ ecyan) tput bold ; tput setaf 6 ;;
22
+ ewhite) tput bold ; tput setaf 7 ;;
24
23
 
25
- # underlined colors
26
- ublack) set smul unset rmul ; tput setaf 0 ;;
27
- ured) set smul unset rmul ; tput setaf 1 ;;
28
- ugreen) set smul unset rmul ; tput setaf 2 ;;
29
- uyellow) set smul unset rmul ; tput setaf 3 ;;
30
- ublue) set smul unset rmul ; tput setaf 4 ;;
31
- umagenta) set smul unset rmul ; tput setaf 5 ;;
32
- ucyan) set smul unset rmul ; tput setaf 6 ;;
33
- uwhite) set smul unset rmul ; tput setaf 7 ;;
24
+ # underlined colors
25
+ ublack) set smul unset rmul ; tput setaf 0 ;;
26
+ ured) set smul unset rmul ; tput setaf 1 ;;
27
+ ugreen) set smul unset rmul ; tput setaf 2 ;;
28
+ uyellow) set smul unset rmul ; tput setaf 3 ;;
29
+ ublue) set smul unset rmul ; tput setaf 4 ;;
30
+ umagenta) set smul unset rmul ; tput setaf 5 ;;
31
+ ucyan) set smul unset rmul ; tput setaf 6 ;;
32
+ uwhite) set smul unset rmul ; tput setaf 7 ;;
34
33
 
35
- # background colors
36
- bblack) tput setab 0 ;;
37
- bred) tput setab 1 ;;
38
- bgreen) tput setab 2 ;;
39
- byellow) tput setab 3 ;;
40
- bblue) tput setab 4 ;;
41
- bmagenta) tput setab 5 ;;
42
- bcyan) tput setab 6 ;;
43
- bwhite) tput setab 7 ;;
44
-
45
- # Defaults
46
- default) tput setaf 9 ;;
47
- bdefault) tput setab 9 ;;
48
- none) tput sgr0 ;;
49
- *) tput sgr0 # Reset
50
- esac
51
- }
34
+ # background colors
35
+ bblack) tput setab 0 ;;
36
+ bred) tput setab 1 ;;
37
+ bgreen) tput setab 2 ;;
38
+ byellow) tput setab 3 ;;
39
+ bblue) tput setab 4 ;;
40
+ bmagenta) tput setab 5 ;;
41
+ bcyan) tput setab 6 ;;
42
+ bwhite) tput setab 7 ;;
52
43
 
44
+ # Defaults
45
+ default) tput setaf 9 ;;
46
+ bdefault) tput setab 9 ;;
47
+ none) tput sgr0 ;;
48
+ *) tput sgr0 # Reset
49
+ esac
@@ -41,7 +41,7 @@ _rvm ()
41
41
  [[ "$expansion" ]] && command="$expansion"
42
42
 
43
43
  case "$command" in
44
- install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|usage|help|implode|update|readline|iconv|benchmark|bench|use|gemsync)
44
+ install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|usage|help|implode|update|readline|iconv|benchmark|bench|use)
45
45
  ;;
46
46
 
47
47
  rm|remove)
@@ -56,13 +56,6 @@ _rvm ()
56
56
  gemdir)
57
57
  ;;
58
58
 
59
- gemdup)
60
- "system"
61
- "user"
62
- "default"
63
- ;;
64
-
65
-
66
59
  1.8|1.8.0|1.8.1|1.8.2|1.8.3|1.8.4|1.8.5|1.8.6|1.8.7|1.9|1.9.1|1.9.2)
67
60
  ;;
68
61
 
@@ -81,7 +74,6 @@ _rvm ()
81
74
  ;;
82
75
 
83
76
  --install) rvm_install_on_use_flag=1 ;;
84
- --prefix) rvm_prefix_path="$1" ; shift ;;
85
77
  -G|--gems) rvm_gem_path="$1" ; shift ;;
86
78
  --source) rvm_src_path="$1" ; shift ;;
87
79
  --archives) rvm_archives_path="$1" ; shift ;;
@@ -143,7 +135,6 @@ function _rvm {
143
135
  use) __rvm_use ; result=$? ;;
144
136
  gemdir) __rvm_gem-dir ; result=$? ;;
145
137
  srcdir) __rvm_src-dir ; result=$? ;;
146
- gemdup) __rvm_gem-dup ; result=$? ;;
147
138
  list) __rvm_list ; result=$? ;;
148
139
  version) __rvm_version ; result=$? ;;
149
140
  reset) __rvm_reset ; result=$? ;;
@@ -157,33 +148,22 @@ function _rvm {
157
148
  bench|benchmark) __rvm_benchmark ; result=$? ;;
158
149
  rubydo|rakedo|gemdo) __rvm_do ; result=$? ;;
159
150
 
160
- gemsync)
161
- result=0
162
- rvm_source_gem_path="$(__rvm_select ; echo $rvm_gem_home)"
163
- __rvm_gem_sync
164
- ;;
165
-
166
151
  tests|specs)
167
152
  rvm_summary_flag=1
168
- rvm_action="rake"
169
- __rvm_do
170
153
  ;;
171
154
 
172
155
  info|debug)
173
- __rvm_version
174
- __rvm_info
175
- if [[ "debug" = "$rvm_action" ]] ; then __rvm_debug ; fi
176
156
  result=0
177
157
  ;;
178
158
 
179
159
  error)
180
- __rvm_log "fail" "$rvm_error_message ( see: 'rvm usage' )"
160
+ $rvm_scripts_path/log "fail" "$rvm_error_message ( see: 'rvm usage' )"
181
161
  __rvm_pushpop
182
162
  result=1;
183
163
  ;;
184
164
  *)
185
165
  if [[ ! -z "$rvm_action" ]] ; then
186
- __rvm_log "fail" "unknown action '$rvm_action'"
166
+ $rvm_scripts_path/log "fail" "unknown action '$rvm_action'"
187
167
  else
188
168
  __rvm_usage
189
169
  fi