rvm 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,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
-
@@ -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 $?