rvm 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/lib/VERSION.yml +1 -1
  2. data/lib/rvm/environment.rb +1 -1
  3. data/lib/rvm/shell/shell_wrapper.sh +1 -1
  4. data/rvm.gemspec +3 -110
  5. metadata +4 -111
  6. data/binscripts/rvm +0 -76
  7. data/binscripts/rvm-auto-ruby +0 -24
  8. data/binscripts/rvm-prompt +0 -208
  9. data/binscripts/rvm-shell +0 -35
  10. data/binscripts/rvm-update-head +0 -58
  11. data/binscripts/rvm-update-latest +0 -27
  12. data/binscripts/rvmsudo +0 -20
  13. data/config/db +0 -71
  14. data/config/known +0 -54
  15. data/config/md5 +0 -139
  16. data/contrib/gemset_snapshot +0 -25
  17. data/contrib/install-system-wide +0 -221
  18. data/contrib/r +0 -44
  19. data/examples/rvmrc +0 -49
  20. data/gemsets/default.gems +0 -1
  21. data/gemsets/global.gems +0 -1
  22. data/help/alias +0 -46
  23. data/help/benchmark +0 -17
  24. data/help/cleanup +0 -23
  25. data/help/debug +0 -8
  26. data/help/disk-usage +0 -15
  27. data/help/docs +0 -22
  28. data/help/exec +0 -33
  29. data/help/fetch +0 -5
  30. data/help/gem +0 -0
  31. data/help/gemdir +0 -0
  32. data/help/gemset +0 -14
  33. data/help/implode +0 -0
  34. data/help/info +0 -62
  35. data/help/install +0 -0
  36. data/help/list +0 -0
  37. data/help/migrate +0 -15
  38. data/help/monitor +0 -0
  39. data/help/notes +0 -0
  40. data/help/package +0 -0
  41. data/help/rake +0 -14
  42. data/help/remove +0 -0
  43. data/help/repair +0 -23
  44. data/help/reset +0 -0
  45. data/help/ruby +0 -84
  46. data/help/rubygems +0 -11
  47. data/help/rvmrc +0 -34
  48. data/help/snapshot +0 -15
  49. data/help/specs +0 -0
  50. data/help/srcdir +0 -0
  51. data/help/tests +0 -0
  52. data/help/tools +0 -22
  53. data/help/uninstall +0 -0
  54. data/help/update +0 -0
  55. data/help/upgrade +0 -18
  56. data/help/use +0 -0
  57. data/help/wrapper +0 -41
  58. data/install +0 -667
  59. data/man/man1/rvm.1 +0 -380
  60. data/man/man1/rvm.1.gz +0 -0
  61. data/scripts/alias +0 -226
  62. data/scripts/aliases +0 -4
  63. data/scripts/array +0 -32
  64. data/scripts/base +0 -57
  65. data/scripts/cd +0 -94
  66. data/scripts/cleanup +0 -58
  67. data/scripts/cli +0 -798
  68. data/scripts/color +0 -49
  69. data/scripts/completion +0 -151
  70. data/scripts/db +0 -87
  71. data/scripts/default +0 -64
  72. data/scripts/disk-usage +0 -60
  73. data/scripts/docs +0 -115
  74. data/scripts/env +0 -46
  75. data/scripts/environment-convertor +0 -74
  76. data/scripts/fetch +0 -231
  77. data/scripts/gemsets +0 -1045
  78. data/scripts/get +0 -126
  79. data/scripts/hash +0 -37
  80. data/scripts/help +0 -46
  81. data/scripts/hook +0 -23
  82. data/scripts/info +0 -213
  83. data/scripts/initialize +0 -29
  84. data/scripts/install +0 -667
  85. data/scripts/irbrc +0 -13
  86. data/scripts/irbrc.rb +0 -64
  87. data/scripts/list +0 -315
  88. data/scripts/log +0 -38
  89. data/scripts/maglev +0 -193
  90. data/scripts/manage +0 -2157
  91. data/scripts/match +0 -6
  92. data/scripts/md5 +0 -22
  93. data/scripts/migrate +0 -175
  94. data/scripts/monitor +0 -105
  95. data/scripts/notes +0 -140
  96. data/scripts/override_gem +0 -14
  97. data/scripts/package +0 -302
  98. data/scripts/patches +0 -64
  99. data/scripts/patchsets +0 -87
  100. data/scripts/repair +0 -199
  101. data/scripts/rubygems +0 -157
  102. data/scripts/rvm +0 -128
  103. data/scripts/rvm-install +0 -667
  104. data/scripts/selector +0 -904
  105. data/scripts/set +0 -301
  106. data/scripts/snapshot +0 -262
  107. data/scripts/tools +0 -58
  108. data/scripts/update +0 -667
  109. data/scripts/upgrade +0 -144
  110. data/scripts/utility +0 -1499
  111. data/scripts/version +0 -17
  112. data/scripts/wrapper +0 -210
@@ -1,126 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- source "$rvm_path/scripts/base"
4
- source "$rvm_path/scripts/version"
5
-
6
- get_help()
7
- {
8
- printf "
9
-
10
- Usage:
11
-
12
- rvm get {latest,head,help}
13
-
14
- Options:
15
-
16
- latest - download and install the latest RVM release listed by
17
- http://rvm.beginrescueend.com/releases/stable-version.txt
18
-
19
- head - git clone and install the latest RVM repository HEAD.
20
-
21
- help - Output this message.
22
-
23
- "
24
- }
25
-
26
- get_latest()
27
- {
28
- local version_url stable_version
29
-
30
- version_url="http://rvm.beginrescueend.com/releases/stable-version.txt"
31
-
32
- stable_version=$(curl -s $version_url)
33
-
34
- "$rvm_path/scripts/log" "info" "\nOriginal installed RVM version:"
35
- (__rvm_version)
36
-
37
-
38
- (
39
-
40
- __rvm_run "fetch" \
41
- "$rvm_path/scripts/fetch 'http://rvm.beginrescueend.com/releases/rvm-${stable_version}.tar.gz'" \
42
- "fetching rvm-${stable_version}.tar.gz"
43
-
44
- __rvm_run "extract" \
45
- "gunzip < \"${rvm_archives_path:-"$rvm_path/archives"}/rvm-${stable_version}.tar.gz\" | tar xf - -C ${rvm_src_path:-"$rvm_path/src"}" \
46
- "Extracting rvm-${stable_version}.tar.gz ..."
47
-
48
- __rvm_run "install" \
49
- "builtin cd ${rvm_src_path:-"$rvm_path/src"}/rvm-${stable_version}/; ./install" \
50
- "Installing rvm-${stable_version}..."
51
-
52
- )
53
-
54
- "$rvm_path/scripts/log" "info" "\nInstalled RVM version:"
55
- ( source $rvm_path/scripts/rvm ; rvm --version )
56
-
57
- rvm_hook="after_update"
58
-
59
- source "$rvm_path/scripts/hook"
60
- }
61
-
62
- get_head()
63
- {
64
-
65
- "$rvm_path/scripts/log" "info" "\nOriginal installed RVM version:"
66
-
67
- __rvm_version
68
-
69
- (
70
- if [[ ! -d "${rvm_src_path:-"$rvm_path/src"}" ]] ; then
71
- \mkdir -p "${rvm_src_path:-"$rvm_path/src"}"
72
- fi
73
-
74
- builtin cd "${rvm_src_path:-"$rvm_path/src"}"
75
-
76
- if [[ -d "${rvm_src_path:-"$rvm_path/src"}/rvm/.git" ]] ; then
77
-
78
- builtin cd "${rvm_src_path:-"$rvm_path/src"}/rvm/" && \
79
- git pull origin master && \
80
- ./scripts/install
81
-
82
- else
83
-
84
- builtin cd "${rvm_src_path:-"$rvm_path/src"}" && \
85
- ( git clone http://github.com/wayneeseguin/rvm.git || \
86
- git clone --depth 1 git://github.com/wayneeseguin/rvm.git ) && \
87
- builtin cd rvm/ && ./scripts/install
88
- fi
89
- )
90
-
91
- "$rvm_path/scripts/log" "info" "\nInstalled RVM HEAD version:"
92
- ( source $rvm_path/scripts/rvm ; rvm --version )
93
-
94
- rvm_hook="after_update"
95
-
96
- source "$rvm_path/scripts/hook"
97
-
98
- return 0
99
- }
100
-
101
- args=($*)
102
- action="${args[$__array_start]}"
103
- args[$__array_start]=""
104
- args=(${args[@]})
105
-
106
- case "$action" in
107
-
108
- latest)
109
- get_latest
110
- ;;
111
-
112
- head)
113
- get_head
114
- ;;
115
-
116
- help)
117
- get_help
118
- true
119
- ;;
120
-
121
- *)
122
- false
123
- ;;
124
- esac
125
-
126
- exit $?
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- #
4
- # The idea is that we emulate a hash using two methods
5
- #
6
- # The first method is providing functions by sourcing this file
7
- #
8
- # The second method is where this script is called directly,
9
- # we then provide functionality of a file based hash
10
- #
11
-
12
- if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
13
-
14
- if [[ -n "${ZSH_VERSION:-""}" ]] ; then __array_start=1 ; else __array_start=0 ; fi
15
-
16
- hash()
17
- {
18
- hash_name=$1 ; hash_key=$2 ; hash_value=$3
19
-
20
- eval "_hash_${hash_name}_keys=\${_hash_${hash_name}_keys:-()} ; _hash_${hash_name}_values=\${_hash_${hash_name}_values:-()}"
21
-
22
- if [[ -z "$hash_value" ]] ; then
23
- eval "length=\${#_hash_${hash_name}_keys[@]}"
24
- for (( index=$__array_start ; index < $length; index++ )) ; do
25
- eval "key=\"\${_hash_${hash_name}_keys[$index]}\""
26
- if [[ "$hash_key" = "$key" ]] ; then
27
- eval "echo -n \${_hash_${hash_name}_values[$index]}"
28
- break
29
- fi
30
- done
31
- else
32
- eval "index=\$((\${#_hash_${hash_name}_keys[*]} + $__array_start))"
33
- eval "_hash_${hash_name}_keys[$index]=\"$hash_key\""
34
- eval "_hash_${hash_name}_values[$index]=\"$hash_value\""
35
- fi
36
- }
37
-
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- rvm_base_except="selector"
4
-
5
- source "$rvm_path/scripts/base"
6
-
7
- rvm_help_path="${rvm_help_path:-"$rvm_path/help"}"
8
-
9
- args=($*)
10
-
11
- command="${args[$__array_start]}"
12
- args[$__array_start]=""
13
- args=(${args[@]})
14
-
15
- action="${args[$array_start]}"
16
- args[$__array_start]=""
17
- args=(${args[@]})
18
- pager="${PAGER:-less -X}"
19
-
20
- if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then
21
-
22
- if [[ -n "$action" && -s "${rvm_help_path}/${command}/${action}" ]] ; then
23
-
24
- eval "$pager '${rvm_help_path}/${command}/${action}'"
25
-
26
- else
27
-
28
- eval "$pager '${rvm_help_path}/${command}'"
29
-
30
- fi
31
-
32
- else
33
-
34
- eval "$pager '${rvm_path:-$HOME/.rvm}/README'"
35
-
36
- "$rvm_path/scripts/log" "info" \
37
- "Commands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; find . -maxdepth 1 -mindepth 1 -type f -print | \tr "\n" ' ' | sed -e 's#./##g')"
38
- fi
39
-
40
- "$rvm_path/scripts/log" "info" \
41
- "For additional information please visit RVM's documentation website:\n\n http://rvm.beginrescueend.com/"
42
-
43
- "$rvm_path/scripts/log" "info" \
44
- "If you still cannot find what an answer to your question, find me 'wayneeseguin' in #rvm on irc.freenode.net:\n\n http://webchat.freenode.net/?channels=rvm\n"
45
-
46
- exit $?
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- declare rvm_verbose_flag=${rvm_verbose_flag:-0}
4
-
5
- declare rvm_hook=${rvm_hook:-""}
6
-
7
- if [[ -n "$rvm_hook" ]] ; then
8
-
9
- if [[ -s "$rvm_path/hooks/$rvm_hook" ]] ; then
10
-
11
- if [[ ${rvm_verbose_flag:-0} -gt 0 || ${rvm_debug_flag:-0} -gt 0 ]] ; then
12
-
13
- "$rvm_path/scripts/log" "info" "running hook $rvm_hook"
14
-
15
- fi
16
-
17
- source "$rvm_path/hooks/$rvm_hook"
18
-
19
- fi
20
-
21
- fi
22
-
23
- unset rvm_hook
@@ -1,213 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
4
-
5
- source "$rvm_path/scripts/base"
6
-
7
- source "$rvm_path/scripts/version"
8
-
9
- version_for()
10
- {
11
- local binary=${1:-""}
12
-
13
- if command -v "$binary" >/dev/null ; then
14
- $binary --version | head -n1
15
- else
16
- echo "not installed"
17
- fi
18
-
19
- return 0
20
- }
21
-
22
- info_system()
23
- {
24
- rvm_info="
25
- system:
26
- uname: \"$(uname -a)\"
27
- bash: \"$(command -v bash) => $(version_for bash)\"
28
- zsh: \"$(command -v zsh) => $(version_for zsh)\"
29
- "
30
- }
31
-
32
- info_rvm()
33
- {
34
- rvm_info="
35
- rvm:
36
- version: \"$(__rvm_version | \tr "\n" ' ' | __rvm_strip)\"
37
- "
38
-
39
- }
40
-
41
- info_ruby()
42
- {
43
- [[ "$(__rvm_environment_identifier)" == "system" ]] && return
44
- ruby=$(command -v ruby)
45
- if [[ $? -eq 0 ]] && [[ -x "$ruby" ]] ; then full_version="$($ruby -v)" ; fi
46
- rvm_info="
47
- ruby:
48
- interpreter: \"$(printf "${full_version}" | awk '{print $1}')\"
49
- version: \"$(printf "${full_version}" | awk '{print $2}')\"
50
- date: \"$(printf "${full_version}" | sed 's/^.*(\([0-9]\{4\}\(-[0-9][0-9]\)\{2\}\).*$/\1/')\"
51
- platform: \"$(printf "${full_version}" | sed 's/^.*\[//' | sed 's/\].*$//')\"
52
- patchlevel: \"$(printf "${full_version}" | sed 's/^.*(//' | sed 's/).*$//')\"
53
- full_version: \"${full_version}\"
54
- "
55
-
56
- }
57
-
58
- info_homes()
59
- {
60
- rvm_info="
61
- homes:
62
- gem: \"${GEM_HOME:-"not set"}\"
63
- ruby: \"${MY_RUBY_HOME:-"not set"}\"
64
- "
65
- }
66
-
67
- info_binaries()
68
- {
69
- rvm_info="
70
- binaries:
71
- ruby: \"$(command -v ruby)\"
72
- irb: \"$(command -v irb)\"
73
- gem: \"$(command -v gem)\"
74
- rake: \"$(command -v rake)\"
75
- "
76
- }
77
-
78
- info_environment()
79
- {
80
- rvm_info="
81
- environment:
82
- PATH: \"${PATH:-""}\"
83
- GEM_HOME: \"${GEM_HOME:-""}\"
84
- GEM_PATH: \"${GEM_PATH:-""}\"
85
- MY_RUBY_HOME: \"${MY_RUBY_HOME:-""}\"
86
- IRBRC: \"${IRBRC:-""}\"
87
- RUBYOPT: \"${RUBYOPT:-""}\"
88
- gemset: \"$(printf "${GEM_HOME:-""}" | awk -F${rvm_gemset_separator:-"@"} '{print $2}')\"\n
89
- "
90
-
91
- if [[ -n "${MAGLEV_HOME:-""}" ]] ; then
92
- rvm_info="$rvm_info\n MAGLEV_HOME: \"$MAGLEV_HOME\""
93
- fi
94
-
95
- rvm_info="$rvm_info\n"
96
- }
97
-
98
- info_debug()
99
- {
100
- rvm_info="
101
-
102
- $(__rvm_version)
103
- $("$rvm_path/scripts/info" "$rvm_ruby_string" "" )
104
- PATH:\n$(printf "$PATH" | awk -F":" '{print $1":"$2":"$3":"$4":"$5}' )
105
- uname -a: $(uname -a)
106
- permissions: $(\ls -la "$rvm_path" "$rvm_path/rubies")
107
- "
108
-
109
- if [[ "Darwin" = "$(uname)" ]] ; then
110
- rvm_info="$rvm_info
111
- uname -r: $(uname -r)
112
- uname -m: $(uname -m)
113
- sw_vers: $(sw_vers | \tr "\n" ',')
114
- ARCHFLAGS: ${ARCHFLAGS:-""}
115
- LDFLAGS: ${LDFLAGS:-""}
116
- CFLAGS: ${CFLAGS:-""}
117
- /Developer/SDKs/*:$(/usr/bin/basename -a /Developer/SDKs/* | \tr "\n" ',')
118
- "
119
- fi
120
-
121
- for file_name in "$HOME/.bashrc" "$HOME/.bash_profile" "$HOME/.zshenv" ; do
122
-
123
- if [[ -s "$file_name" ]] ; then
124
-
125
- rvm_info="$rvm_info\n$file_name:\n$(\grep 'rvm' "$file_name" 2>/dev/null || true)"
126
-
127
- fi
128
-
129
- done
130
-
131
- if [[ "$rvm_selfcontained" = "0" ]] ; then
132
-
133
- debug_files=("$rvm_path/config/alias" "$rvm_path/config/system" "$rvm_path/config/db" "/etc/rvmrc" "/etc/gemrc")
134
-
135
- else
136
-
137
- debug_files=("$rvm_path/config/alias" "$rvm_path/config/system" "$rvm_path/config/db" "$HOME/.rvmrc" "$HOME/.gemrc")
138
-
139
- fi
140
-
141
- for file_name in "${debug_files[@]}" ; do
142
-
143
- if [[ -f "$file_name" && -s "$file_name" ]] ; then
144
-
145
- rvm_info="$rvm_info\n$file_name \(filtered\):\n$(awk '!/assword|_key/' "$file_name" )\n"
146
-
147
- fi
148
-
149
- done
150
-
151
- rvm_info="$rvm_info\ngem sources:\n$(gem sources | awk '/gems/')\n\n"
152
- }
153
-
154
- info_sections()
155
- {
156
-
157
- for section in $(printf "${sections//,/ }") ; do
158
-
159
- rvm_info="" ; "info_${section}" ; printf "$rvm_info"
160
-
161
- done
162
-
163
- }
164
-
165
- rvm_ruby_gem_home="${rvm_ruby_gem_home:-${GEM_HOME:-""}}"
166
-
167
- if [[ ! -d "$rvm_ruby_gem_home" ]] && command -v gem > /dev/null 2>&1; then
168
- rvm_ruby_gem_home="$(gem env home)"
169
- fi
170
-
171
- rvm_info=""
172
-
173
- args=($*)
174
-
175
- ruby_strings="${args[$__array_start]// /}"
176
- args[$__array_start]=""
177
- args=(${args[@]})
178
-
179
- sections="${args// /}"
180
- all_sections="system rvm ruby homes binaries environment"
181
-
182
- if "$rvm_path/scripts/match" "$all_sections debug" "${ruby_strings/,*/}" ; then
183
-
184
- sections="$ruby_strings"
185
- ruby_strings=""
186
-
187
- fi
188
-
189
- if [[ -z "${sections// /}" ]] ; then
190
- sections="$all_sections"
191
- fi
192
-
193
- if [[ -z "$ruby_strings" ]] ; then
194
-
195
- printf "\n$(__rvm_environment_identifier):\n"
196
-
197
- info_sections
198
-
199
- else
200
-
201
- for ruby_string in $(printf ${ruby_strings//,/ }) ; do
202
-
203
- __rvm_become "$ruby_string"
204
-
205
- printf "\n$(__rvm_environment_identifier):\n"
206
-
207
- info_sections
208
-
209
- done
210
-
211
- fi
212
-
213
- exit 0