rvm 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/VERSION.yml +1 -1
- data/lib/rvm/environment.rb +1 -1
- data/lib/rvm/shell/shell_wrapper.sh +1 -1
- data/rvm.gemspec +3 -110
- metadata +4 -111
- data/binscripts/rvm +0 -76
- data/binscripts/rvm-auto-ruby +0 -24
- data/binscripts/rvm-prompt +0 -208
- data/binscripts/rvm-shell +0 -35
- data/binscripts/rvm-update-head +0 -58
- data/binscripts/rvm-update-latest +0 -27
- data/binscripts/rvmsudo +0 -20
- data/config/db +0 -71
- data/config/known +0 -54
- data/config/md5 +0 -139
- data/contrib/gemset_snapshot +0 -25
- data/contrib/install-system-wide +0 -221
- data/contrib/r +0 -44
- data/examples/rvmrc +0 -49
- data/gemsets/default.gems +0 -1
- data/gemsets/global.gems +0 -1
- data/help/alias +0 -46
- data/help/benchmark +0 -17
- data/help/cleanup +0 -23
- data/help/debug +0 -8
- data/help/disk-usage +0 -15
- data/help/docs +0 -22
- data/help/exec +0 -33
- data/help/fetch +0 -5
- data/help/gem +0 -0
- data/help/gemdir +0 -0
- data/help/gemset +0 -14
- data/help/implode +0 -0
- data/help/info +0 -62
- data/help/install +0 -0
- data/help/list +0 -0
- data/help/migrate +0 -15
- data/help/monitor +0 -0
- data/help/notes +0 -0
- data/help/package +0 -0
- data/help/rake +0 -14
- data/help/remove +0 -0
- data/help/repair +0 -23
- data/help/reset +0 -0
- data/help/ruby +0 -84
- data/help/rubygems +0 -11
- data/help/rvmrc +0 -34
- data/help/snapshot +0 -15
- data/help/specs +0 -0
- data/help/srcdir +0 -0
- data/help/tests +0 -0
- data/help/tools +0 -22
- data/help/uninstall +0 -0
- data/help/update +0 -0
- data/help/upgrade +0 -18
- data/help/use +0 -0
- data/help/wrapper +0 -41
- data/install +0 -667
- data/man/man1/rvm.1 +0 -380
- data/man/man1/rvm.1.gz +0 -0
- data/scripts/alias +0 -226
- data/scripts/aliases +0 -4
- data/scripts/array +0 -32
- data/scripts/base +0 -57
- data/scripts/cd +0 -94
- data/scripts/cleanup +0 -58
- data/scripts/cli +0 -798
- data/scripts/color +0 -49
- data/scripts/completion +0 -151
- data/scripts/db +0 -87
- data/scripts/default +0 -64
- data/scripts/disk-usage +0 -60
- data/scripts/docs +0 -115
- data/scripts/env +0 -46
- data/scripts/environment-convertor +0 -74
- data/scripts/fetch +0 -231
- data/scripts/gemsets +0 -1045
- data/scripts/get +0 -126
- data/scripts/hash +0 -37
- data/scripts/help +0 -46
- data/scripts/hook +0 -23
- data/scripts/info +0 -213
- data/scripts/initialize +0 -29
- data/scripts/install +0 -667
- data/scripts/irbrc +0 -13
- data/scripts/irbrc.rb +0 -64
- data/scripts/list +0 -315
- data/scripts/log +0 -38
- data/scripts/maglev +0 -193
- data/scripts/manage +0 -2157
- data/scripts/match +0 -6
- data/scripts/md5 +0 -22
- data/scripts/migrate +0 -175
- data/scripts/monitor +0 -105
- data/scripts/notes +0 -140
- data/scripts/override_gem +0 -14
- data/scripts/package +0 -302
- data/scripts/patches +0 -64
- data/scripts/patchsets +0 -87
- data/scripts/repair +0 -199
- data/scripts/rubygems +0 -157
- data/scripts/rvm +0 -128
- data/scripts/rvm-install +0 -667
- data/scripts/selector +0 -904
- data/scripts/set +0 -301
- data/scripts/snapshot +0 -262
- data/scripts/tools +0 -58
- data/scripts/update +0 -667
- data/scripts/upgrade +0 -144
- data/scripts/utility +0 -1499
- data/scripts/version +0 -17
- data/scripts/wrapper +0 -210
data/scripts/version
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
__rvm_meta()
|
4
|
-
{
|
5
|
-
rvm_meta_author="Wayne E. Seguin"
|
6
|
-
rvm_meta_author_email="wayneeseguin@gmail.com"
|
7
|
-
rvm_meta_website="http://rvm.beginrescueend.com/"
|
8
|
-
rvm_meta_version="${rvm_version}"
|
9
|
-
}
|
10
|
-
|
11
|
-
__rvm_version()
|
12
|
-
{
|
13
|
-
__rvm_meta
|
14
|
-
|
15
|
-
echo -e "\nrvm ${rvm_meta_version} by ${rvm_meta_author} (${rvm_meta_author_email}) [${rvm_meta_website}]\n"
|
16
|
-
}
|
17
|
-
|
data/scripts/wrapper
DELETED
@@ -1,210 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
default_flag="$rvm_default_flag"
|
4
|
-
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
5
|
-
|
6
|
-
# Prevent recursion
|
7
|
-
unset rvm_default_flag rvm_wrapper_name prefix
|
8
|
-
|
9
|
-
source "$rvm_path/scripts/base"
|
10
|
-
|
11
|
-
usage()
|
12
|
-
{
|
13
|
-
printf "
|
14
|
-
Usage:
|
15
|
-
|
16
|
-
rvm wrapper [ruby_string] [wrapper_prefix] [binary[ binary[ ...]]]
|
17
|
-
|
18
|
-
Binaries
|
19
|
-
|
20
|
-
ruby, gem, rake, irb, rdoc, ri, testrb
|
21
|
-
|
22
|
-
Notes
|
23
|
-
|
24
|
-
For more information, see 'rvm help wrapper'
|
25
|
-
|
26
|
-
Example
|
27
|
-
|
28
|
-
# Wrap the spec binary as 'rails3_spec' for 1.9.2@rails3
|
29
|
-
rvm wrapper 1.9.2@rails3 rails3 spec
|
30
|
-
|
31
|
-
"
|
32
|
-
}
|
33
|
-
|
34
|
-
wrap()
|
35
|
-
{
|
36
|
-
|
37
|
-
if [[ -n "${file_name:-""}" ]] ;then
|
38
|
-
|
39
|
-
mkdir -p "$(dirname "$file_name")"
|
40
|
-
|
41
|
-
rm -f "$file_name"
|
42
|
-
|
43
|
-
if [[ "root" = "$USER" ]] ; then
|
44
|
-
path="${rvm_path:-"/usr/local/rvm"}"
|
45
|
-
else
|
46
|
-
path="${rvm_path:-"$HOME/.rvm"}"
|
47
|
-
fi
|
48
|
-
|
49
|
-
printf "#!/usr/bin/env bash
|
50
|
-
|
51
|
-
if [[ -s \"$path/environments/${environment_identifier}\" ]] ; then
|
52
|
-
source \"$path/environments/${environment_identifier}\"
|
53
|
-
exec $binary_name \"\$@\"
|
54
|
-
else
|
55
|
-
echo \"ERROR: Missing RVM environment file: '$path/environments/${environment_identifier}'\" >&2
|
56
|
-
exit 1
|
57
|
-
fi
|
58
|
-
" > "$file_name"
|
59
|
-
|
60
|
-
if [[ -f "$file_name" ]] ; then
|
61
|
-
chmod +x "$file_name"
|
62
|
-
fi
|
63
|
-
|
64
|
-
return 0
|
65
|
-
|
66
|
-
else
|
67
|
-
|
68
|
-
"$rvm_path/scripts/log" "error" \
|
69
|
-
"wrap() : file_name unkown variable for wrap()."
|
70
|
-
|
71
|
-
return 1
|
72
|
-
|
73
|
-
fi
|
74
|
-
}
|
75
|
-
|
76
|
-
symlink_binary()
|
77
|
-
{
|
78
|
-
# Generate the default wrapper with the given binary name.
|
79
|
-
# We first check if we can wrap the binary and if we were able to,
|
80
|
-
# we then symlink it into place.
|
81
|
-
if wrap_binary && [[ -f "$file_name" ]]; then
|
82
|
-
|
83
|
-
rm -f "$rvm_bin_path/${prefix}_${binary_name}"
|
84
|
-
|
85
|
-
ln -fs "$file_name" "$rvm_bin_path/${prefix}_${binary_name}"
|
86
|
-
|
87
|
-
fi
|
88
|
-
|
89
|
-
}
|
90
|
-
|
91
|
-
wrap_binary()
|
92
|
-
{
|
93
|
-
# We wrap when the given binary is in the path or override_check is set to one.
|
94
|
-
if [[ "$override_check" = "1" ]] || command -v $binary_name > /dev/null; then
|
95
|
-
|
96
|
-
wrap
|
97
|
-
|
98
|
-
else
|
99
|
-
|
100
|
-
"$rvm_path/scripts/log" "error" "Binary '$binary_name' not found."
|
101
|
-
|
102
|
-
return 1
|
103
|
-
|
104
|
-
fi
|
105
|
-
|
106
|
-
}
|
107
|
-
|
108
|
-
# Empty ruby string: show usage and exit.
|
109
|
-
if [[ $# -eq 0 ]] ; then
|
110
|
-
usage
|
111
|
-
exit 1
|
112
|
-
else
|
113
|
-
ruby_string="${1:-""}"
|
114
|
-
shift
|
115
|
-
fi
|
116
|
-
|
117
|
-
if [[ $# -gt 0 ]] ; then
|
118
|
-
prefix="${1:-""}"
|
119
|
-
shift
|
120
|
-
fi
|
121
|
-
|
122
|
-
if [[ -z "$ruby_string" ]] ; then
|
123
|
-
usage
|
124
|
-
exit 1
|
125
|
-
fi
|
126
|
-
|
127
|
-
binaries=($@)
|
128
|
-
override_check=0
|
129
|
-
|
130
|
-
# Default the list of binaries to those we use regularily.
|
131
|
-
if [[ ${#binaries[@]} -eq 0 ]] ; then
|
132
|
-
binaries=(ruby gem irb ri rdoc rake erb testrb)
|
133
|
-
fi
|
134
|
-
|
135
|
-
# Use the correct ruby.
|
136
|
-
__rvm_become "$ruby_string"
|
137
|
-
|
138
|
-
__rvm_ensure_has_environment_files
|
139
|
-
|
140
|
-
environment_identifier="$(__rvm_environment_identifier)"
|
141
|
-
|
142
|
-
# For each binary, we want to generate the wrapper / symlink
|
143
|
-
# it to the existing wrapper if needed.
|
144
|
-
for binary_name in "${binaries[@]}"; do
|
145
|
-
|
146
|
-
file_name="$rvm_path/wrappers/${environment_identifier}/${binary_name##*\/}"
|
147
|
-
|
148
|
-
if [[ ${rvm_default_flag:-0} -gt 0 ]] ; then
|
149
|
-
|
150
|
-
prefix="default"
|
151
|
-
|
152
|
-
fi
|
153
|
-
|
154
|
-
if [[ ! -d "$rvm_bin_path" ]] ; then
|
155
|
-
mkdir -p "$rvm_bin_path"
|
156
|
-
fi
|
157
|
-
|
158
|
-
if [[ -z "$prefix" ]] ; then
|
159
|
-
|
160
|
-
override_check=1
|
161
|
-
|
162
|
-
wrap_binary
|
163
|
-
|
164
|
-
# Symlink it into place.
|
165
|
-
if [[ -f "$file_name" ]]; then
|
166
|
-
|
167
|
-
if [[ "$binary_name" == "ruby" ]] ; then
|
168
|
-
|
169
|
-
destination="$rvm_bin_path/$environment_identifier"
|
170
|
-
|
171
|
-
else
|
172
|
-
|
173
|
-
destination="$rvm_bin_path/${binary_name##*\/}-${environment_identifier}"
|
174
|
-
|
175
|
-
fi
|
176
|
-
|
177
|
-
rm -f "$destination"
|
178
|
-
|
179
|
-
ln -nsf "$file_name" "$destination"
|
180
|
-
|
181
|
-
fi
|
182
|
-
|
183
|
-
elif [[ "--no-prefix" == "$prefix" ]]; then
|
184
|
-
|
185
|
-
override_check=1
|
186
|
-
|
187
|
-
wrap_binary
|
188
|
-
|
189
|
-
if [[ -f "$file_name" ]]; then
|
190
|
-
|
191
|
-
destination="$rvm_bin_path/${binary_name##*\/}"
|
192
|
-
|
193
|
-
if [[ -s "$destination" ]] ; then
|
194
|
-
|
195
|
-
rm -f "$destination"
|
196
|
-
|
197
|
-
fi
|
198
|
-
|
199
|
-
ln -nsf "$file_name" "$destination"
|
200
|
-
fi
|
201
|
-
|
202
|
-
else
|
203
|
-
|
204
|
-
symlink_binary
|
205
|
-
|
206
|
-
fi
|
207
|
-
|
208
|
-
done
|
209
|
-
|
210
|
-
exit $?
|