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.
- 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/match
DELETED
data/scripts/md5
DELETED
@@ -1,22 +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
|
-
args=($*)
|
6
|
-
file="${args[0]}"
|
7
|
-
md5="${args[1]}"
|
8
|
-
args="$(echo ${args[@]:2}) " # Strip trailing / leading / extra spacing.
|
9
|
-
|
10
|
-
if [[ "Linux" = "$(uname)" ]] ; then
|
11
|
-
command="md5sum"
|
12
|
-
elif [[ "Darwin" = "$(uname)" ]] ; then
|
13
|
-
command="/sbin/md5 -q"
|
14
|
-
fi
|
15
|
-
|
16
|
-
file_md5=$($command "$file" | awk '{print $1}')
|
17
|
-
|
18
|
-
if [[ "$file_md5" = "$md5" ]] ; then
|
19
|
-
exit 0
|
20
|
-
else
|
21
|
-
exit 1
|
22
|
-
fi
|
data/scripts/migrate
DELETED
@@ -1,175 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
unset GREP_OPTIONS
|
4
|
-
|
5
|
-
source "$rvm_path/scripts/base"
|
6
|
-
|
7
|
-
usage()
|
8
|
-
{
|
9
|
-
printf "
|
10
|
-
|
11
|
-
Usage:
|
12
|
-
|
13
|
-
rvm migrate {source-ruby} {destination-ruby}
|
14
|
-
|
15
|
-
Description:
|
16
|
-
|
17
|
-
Moves all gemsets from {source-ruby} ruby to {destination-ruby}.
|
18
|
-
|
19
|
-
" >&2
|
20
|
-
}
|
21
|
-
|
22
|
-
confirm()
|
23
|
-
{
|
24
|
-
local confirmation_response
|
25
|
-
|
26
|
-
printf "$1 (Y/n): "
|
27
|
-
|
28
|
-
read -r confirmation_response
|
29
|
-
|
30
|
-
[[ -z "$confirmation_response" ]] || echo "$confirmation_response" | \grep -qi '^y'
|
31
|
-
}
|
32
|
-
|
33
|
-
die_with_error()
|
34
|
-
{
|
35
|
-
"$rvm_path/scripts/log" "fail" "$1"
|
36
|
-
|
37
|
-
exit "${2:-1}"
|
38
|
-
}
|
39
|
-
|
40
|
-
expand_ruby_name()
|
41
|
-
{
|
42
|
-
"$rvm_path/scripts/tools" strings "$1" | awk -F"${rvm_gemset_separator:-"@"}" '{print $1}'
|
43
|
-
}
|
44
|
-
|
45
|
-
migrate_rubies()
|
46
|
-
{
|
47
|
-
local origin_gemset destination_gemset gemset_name migrate_ruby_name migrate_alias_name migrate_new_alias_name binaries origin_wrappers_path full_bin_path expanded_symlink linked_binary_name new_wrapper_destination
|
48
|
-
|
49
|
-
expanded_source="$(expand_ruby_name "$source_ruby")"
|
50
|
-
expanded_destination="$(expand_ruby_name "$destination_ruby")"
|
51
|
-
|
52
|
-
if [[ -z "$expanded_source" ]]; then
|
53
|
-
die_with_error "Could not expand source ruby '$source_ruby'"
|
54
|
-
|
55
|
-
elif [[ -z "$expanded_destination" ]]; then
|
56
|
-
die_with_error "Could not expand destination ruby '$destination_ruby'"
|
57
|
-
|
58
|
-
elif [[ "$expanded_destination" = "$expanded_source" ]]; then
|
59
|
-
die_with_error "Source and Destination Ruby are the same ($expanded_destination)"
|
60
|
-
|
61
|
-
elif [[ ! -d "$rvm_path/rubies/$expanded_source" ]]; then
|
62
|
-
die_with_error "Ruby '$expanded_source' is not installed - please install it first."
|
63
|
-
|
64
|
-
elif [[ ! -d "$rvm_path/rubies/$expanded_destination" ]]; then
|
65
|
-
die_with_error "Ruby '$expanded_destination' is not installed - please install it first."
|
66
|
-
fi
|
67
|
-
|
68
|
-
echo "Are you sure you wish to MOVE gems from $expanded_source to $expanded_destination?"
|
69
|
-
|
70
|
-
confirm "This will overwrite existing gems in $expanded_destination and remove them from $expanded_source" || return 1
|
71
|
-
|
72
|
-
echo "Moving gemsets..."
|
73
|
-
|
74
|
-
while read -r origin_gemset; do
|
75
|
-
[[ "$origin_gemset" = "$expanded_source" || "$origin_gemset" = "${expanded_source}${rvm_gemset_separator:-"@"}"* ]] || continue
|
76
|
-
|
77
|
-
gemset_name="${origin_gemset/*${rvm_gemset_separator:-"@"}/}"
|
78
|
-
|
79
|
-
destination_gemset="$expanded_destination"
|
80
|
-
|
81
|
-
if [[ -n "$gemset_name" ]]; then
|
82
|
-
destination_gemset="${destination_gemset}${rvm_gemset_separator:-"@"}${gemset_name}"
|
83
|
-
fi
|
84
|
-
|
85
|
-
echo "Moving $origin_gemset to $destination_gemset"
|
86
|
-
|
87
|
-
rm -rf "${rvm_gems_path:-"$rvm_path/gems"}/$destination_gemset"
|
88
|
-
result="$?"
|
89
|
-
|
90
|
-
[[ $result -gt 0 ]] && die_with_error "Unable to remove gem directory '${rvm_gems_path:-"$rvm_path/gems"}/$destination_gemset'" "$result"
|
91
|
-
|
92
|
-
mv "${rvm_gems_path:-"$rvm_path/gems"}/$origin_gemset" "${rvm_gems_path:-"$rvm_path/gems"}/$destination_gemset"
|
93
|
-
result="$?"
|
94
|
-
|
95
|
-
[[ $result -gt 0 ]] && die_with_error "Unable to move '${rvm_gems_path:-"$rvm_path/gems"}/$origin_gemset' to '${rvm_gems_path:-"$rvm_path/gems"}/$destination_gemset'" "$result"
|
96
|
-
|
97
|
-
echo "Making gemset $destination_gemset pristine."
|
98
|
-
|
99
|
-
__rvm_run_with_env "gemset.pristine" "$destination_gemset" "rvm gemset pristine"
|
100
|
-
|
101
|
-
done < <("$rvm_path/scripts/list" gemsets strings | \grep "^$expanded_source")
|
102
|
-
|
103
|
-
|
104
|
-
if confirm 'Do you wish to move over aliases?' ; then
|
105
|
-
|
106
|
-
while read -r alias_pair; do
|
107
|
-
|
108
|
-
migrate_ruby_name="${alias_pair/*=/}"
|
109
|
-
|
110
|
-
migrate_alias_name="${alias_pair/=*/}"
|
111
|
-
|
112
|
-
if [[ "$migrate_ruby_name" = "$expanded_source" || "$migrate_ruby_name" = "${expanded_source}${rvm_gemset_separator:-"@"}"* ]]; then
|
113
|
-
|
114
|
-
migrate_new_alias_name="${migrate_ruby_name/$expanded_source/$expanded_destination}"
|
115
|
-
|
116
|
-
echo "Updating alias $migrate_alias_name to point to $migrate_new_alias_name"
|
117
|
-
|
118
|
-
"$rvm_path/scripts/alias" delete "$migrate_alias_name" >/dev/null 2>&1
|
119
|
-
|
120
|
-
"$rvm_path/scripts/alias" create "$migrate_alias_name" "$migrate_new_alias_name" >/dev/null 2>&1
|
121
|
-
fi
|
122
|
-
|
123
|
-
done < "$rvm_path/config/alias"
|
124
|
-
|
125
|
-
fi
|
126
|
-
|
127
|
-
if confirm "Do you wish to move over wrappers?" ; then
|
128
|
-
|
129
|
-
origin_wrappers_path="$rvm_path/wrappers/$expanded_source"
|
130
|
-
|
131
|
-
binaries=($(cd "${rvm_bin_path:-"$rvm_path/bin"}" ; find . -maxdepth 1 -mindepth 1 -type f))
|
132
|
-
|
133
|
-
for binary_name in "${binaries[@]//.\/}" ; do
|
134
|
-
|
135
|
-
full_bin_path="${rvm_bin_path:-"$rvm_path/bin"}/$binary_name"
|
136
|
-
|
137
|
-
[[ ! -L "$full_bin_path" ]] && continue
|
138
|
-
|
139
|
-
expanded_symlink="$(readlink "$full_bin_path")"
|
140
|
-
|
141
|
-
[[ "$expanded_symlink" != "$origin_wrappers_path/"* ]] && continue
|
142
|
-
|
143
|
-
linked_binary_name="$(basename "$expanded_symlink")"
|
144
|
-
|
145
|
-
[[ "$binary_name" = "$linked_binary_name-$expanded_source" || "$binary_name" = "$expanded_source" ]] && continue
|
146
|
-
|
147
|
-
new_wrapper_destination="${expanded_symlink/$expanded_source/$expanded_destination}"
|
148
|
-
|
149
|
-
ln -sf "$new_wrapper_destination" "$full_bin_path"
|
150
|
-
done
|
151
|
-
fi
|
152
|
-
|
153
|
-
if confirm "Do you also wish to completely remove $expanded_source (inc. archive)?" ; then
|
154
|
-
|
155
|
-
__rvm_run_with_env "rvm.remove" "$expanded_source" "rvm remove $expanded_source --archive --gems"
|
156
|
-
|
157
|
-
fi
|
158
|
-
|
159
|
-
echo "Successfully migrated $expanded_source to $expanded_destination"
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
args=($*)
|
164
|
-
source_ruby="${args[0]}"
|
165
|
-
destination_ruby="${args[1]}"
|
166
|
-
args="$(echo ${args[@]:2}) " # Strip trailing / leading / extra spacing.
|
167
|
-
|
168
|
-
if [[ -z "$source_ruby" || -z "$destination_ruby" ]]; then
|
169
|
-
usage ; exit 1
|
170
|
-
fi
|
171
|
-
|
172
|
-
source_ruby="$1"; shift
|
173
|
-
destination_ruby="$1"; shift
|
174
|
-
|
175
|
-
migrate_rubies
|
data/scripts/monitor
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
original_ruby_strings=$rvm_ruby_strings
|
4
|
-
original_ruby_string=$rvm_ruby_string
|
5
|
-
|
6
|
-
source "$rvm_path/scripts/base"
|
7
|
-
|
8
|
-
rvm_monitor_sleep="${rvm_monitor_sleep:-2}"
|
9
|
-
|
10
|
-
timestamp()
|
11
|
-
{
|
12
|
-
if [[ "Darwin" = "$(uname)" ]] ; then
|
13
|
-
echo $(stat -f "%m" $1)
|
14
|
-
else
|
15
|
-
echo $(stat -c "%Y" $1)
|
16
|
-
fi
|
17
|
-
}
|
18
|
-
|
19
|
-
push_if_timestamp_changed()
|
20
|
-
{
|
21
|
-
local file=$1
|
22
|
-
|
23
|
-
local file_timestamp=$(timestamp "$file")
|
24
|
-
|
25
|
-
eval "time=\$${framework}_timestamp"
|
26
|
-
|
27
|
-
if [[ "$file_timestamp" -gt $time ]] ; then
|
28
|
-
|
29
|
-
array_push "changed_${framework}_files" $file
|
30
|
-
|
31
|
-
fi
|
32
|
-
}
|
33
|
-
|
34
|
-
update_timestamp()
|
35
|
-
{
|
36
|
-
if [[ -d "${1}/" ]] ; then
|
37
|
-
|
38
|
-
\touch "$rvm_path/${$}_${1}_timestamp"
|
39
|
-
|
40
|
-
eval "${1}_timestamp=\$(timestamp \"$rvm_path/${$}_${1}_timestamp\")"
|
41
|
-
|
42
|
-
fi
|
43
|
-
}
|
44
|
-
|
45
|
-
update_timestamp "test"
|
46
|
-
update_timestamp "spec"
|
47
|
-
|
48
|
-
while : ; do
|
49
|
-
changed_test_files=() ; changed_spec_files=() ; changed_code_files=()
|
50
|
-
|
51
|
-
for file in lib/**/*.rb lib/*.rb app/**/*.rb app/*.rb ; do
|
52
|
-
if [[ -f "$file" ]] ; then push_if_timestamp_changed $file "code" ; fi
|
53
|
-
done
|
54
|
-
|
55
|
-
for framework in test spec ; do
|
56
|
-
|
57
|
-
if [[ -d "$framework/" ]] ; then
|
58
|
-
|
59
|
-
for file in ${framework}/**/*_${framework}.rb ${framework}/*_${framework}.rb ; do
|
60
|
-
if [[ -f "$file" ]] ; then
|
61
|
-
push_if_timestamp_changed $file $framework
|
62
|
-
fi
|
63
|
-
done
|
64
|
-
|
65
|
-
if [[ "$(array_length "changed_${framework}_files")" -gt 0 ]] ; then
|
66
|
-
rvm_ruby_strings=$original_ruby_strings
|
67
|
-
rvm_ruby_string=$original_ruby_string
|
68
|
-
if [[ "spec" = "$framework" ]] ; then
|
69
|
-
rvm_action="spec"
|
70
|
-
rvm_ruby_args="spec/spec_helper.rb ${changed_spec_files[*]}"
|
71
|
-
"$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
|
72
|
-
elif [[ "test" = "$framework" ]] ; then
|
73
|
-
rvm_action="ruby"
|
74
|
-
rvm_ruby_args=" -r$(echo "${changed_test_files[*]}" | sed 's/ / -r/g') test/test_helper.rb"
|
75
|
-
"$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
|
76
|
-
fi
|
77
|
-
update=1
|
78
|
-
fi
|
79
|
-
|
80
|
-
if [[ "$(array_length "changed_code_files")" -gt 0 ]] ; then
|
81
|
-
rvm_ruby_strings=$original_ruby_strings
|
82
|
-
rvm_ruby_string=$original_ruby_string
|
83
|
-
if [[ "spec" = "$framework" ]] ; then
|
84
|
-
rvm_action="spec"
|
85
|
-
rvm_ruby_args="spec/"
|
86
|
-
"$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
|
87
|
-
elif [[ "test" = "$framework" ]] ; then
|
88
|
-
rvm_action="rake"
|
89
|
-
rvm_ruby_args="test"
|
90
|
-
"$rvm_path/scripts/set" "$rvm_action" $rvm_ruby_args
|
91
|
-
fi
|
92
|
-
update=1
|
93
|
-
fi
|
94
|
-
fi
|
95
|
-
|
96
|
-
if [[ "$update" -eq 1 ]] ; then
|
97
|
-
update_timestamp $framework
|
98
|
-
fi
|
99
|
-
done
|
100
|
-
|
101
|
-
unset update changed_test_files changed_spec_files
|
102
|
-
|
103
|
-
sleep $rvm_monitor_sleep
|
104
|
-
done
|
105
|
-
|
data/scripts/notes
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
system="$(uname)"
|
4
|
-
|
5
|
-
if [[ "Linux" = "$system" ]] ; then
|
6
|
-
for file in /etc/*-release ; do
|
7
|
-
release="( $(cat $file) )" ; break
|
8
|
-
done
|
9
|
-
printf "\n\nNotes for ${system} $release\n"
|
10
|
-
|
11
|
-
rvm_aptitude_binary="$(command -v aptitude || command -v apt-get)"
|
12
|
-
rvm_emerge_binary="$(command -v emerge)"
|
13
|
-
rvm_pacman_binary="$(command -v pacman)"
|
14
|
-
rvm_yum_binary="$(command -v yum)"
|
15
|
-
|
16
|
-
printf "
|
17
|
-
NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X)
|
18
|
-
This is the *original* / standard Ruby Language Interpreter
|
19
|
-
'ree' represents Ruby Enterprise Edition
|
20
|
-
'rbx' represents Rubinius
|
21
|
-
|
22
|
-
bash >= 3.2 is required
|
23
|
-
curl is required
|
24
|
-
git is required (>= 1.7 recommended)
|
25
|
-
patch is required (for ree and some ruby-head's).
|
26
|
-
|
27
|
-
If you wish to install rbx and/or Ruby 1.9 head (MRI) (eg. 1.9.2-head),
|
28
|
-
then you must install and use rvm 1.8.7 first.
|
29
|
-
|
30
|
-
If you wish to have the 'pretty colors' again,
|
31
|
-
set 'export rvm_pretty_print_flag=1' in ~/.rvmrc.
|
32
|
-
"
|
33
|
-
|
34
|
-
if [[ ! -z "$rvm_aptitude_binary" ]] ; then
|
35
|
-
printf "
|
36
|
-
dependencies:
|
37
|
-
# For RVM
|
38
|
-
rvm: bash curl git
|
39
|
-
|
40
|
-
# For JRuby (if you wish to use it) you will need:
|
41
|
-
jruby: aptitude install curl sun-java6-bin sun-java6-jre sun-java6-jdk
|
42
|
-
|
43
|
-
# For Ruby (MRI & ree) you should install the following OS dependencies:
|
44
|
-
ruby: aptitude install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf
|
45
|
-
|
46
|
-
# In addition to ruby: dependencies,
|
47
|
-
ruby-head: subversion
|
48
|
-
|
49
|
-
# For IronRuby (if you wish to use it) you will need:
|
50
|
-
ironruby: aptitude install curl mono-2.0-devel
|
51
|
-
"
|
52
|
-
|
53
|
-
elif [[ ! -z "$rvm_emerge_binary" ]] ; then
|
54
|
-
printf "
|
55
|
-
dependencies:
|
56
|
-
# For RVM
|
57
|
-
rvm: bash curl git
|
58
|
-
|
59
|
-
# For MRI based rubies you will need:
|
60
|
-
ruby: # TODO: tell Wayne what goes here if you use Gentoo :)
|
61
|
-
ruby-head: dev/readline dev/zlib dev/libxml2 dev/openssl dev/iconv # TODO: tell Wayne what goes here if you use Gentoo :)
|
62
|
-
|
63
|
-
# For JRuby (if you wish to use it) you will need:
|
64
|
-
jruby: emerge dev-java/sun-jdk dev-java/sun-jre-bin
|
65
|
-
|
66
|
-
# For IronRuby (if you wish to use it) you will need:
|
67
|
-
ironruby: emerge dev-lang/mono
|
68
|
-
"
|
69
|
-
|
70
|
-
elif [[ ! -z "$rvm_pacman_binary" ]] ; then
|
71
|
-
printf "
|
72
|
-
dependencies:
|
73
|
-
# For RVM itself
|
74
|
-
rvm: bash curl git
|
75
|
-
|
76
|
-
# For Ruby (MRI & Ree) you should install the following OS dependencies:
|
77
|
-
ruby: pacman -Sy --noconfirm patch curl bison zlib readline libxml2 libxslt git autoconf diffutils patch bison make
|
78
|
-
ruby-head: pacman -Sy --noconfirm subversion
|
79
|
-
|
80
|
-
# For JRuby (if you wish to use it) you will need:
|
81
|
-
jruby: pacman -Sy --noconfirm jdk jre curl
|
82
|
-
|
83
|
-
# For IronRuby (if you wish to use it) you will need:
|
84
|
-
ironruby: pacman -Sy --noconfirm mono
|
85
|
-
"
|
86
|
-
|
87
|
-
elif [[ ! -z "$rvm_yum_binary" ]] ; then
|
88
|
-
printf "
|
89
|
-
dependencies:
|
90
|
-
# For RVM
|
91
|
-
rvm: yum install -y bash curl git
|
92
|
-
|
93
|
-
# For Ruby (MRI & Ree) you should install the following OS dependencies:
|
94
|
-
ruby: yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel ;
|
95
|
-
yum install -y iconv-devel # NOTE: For centos 5.4 final iconv-devel might not be available :(
|
96
|
-
|
97
|
-
# For JRuby (if you wish to use it) you will need:
|
98
|
-
jruby: yum install -y java
|
99
|
-
"
|
100
|
-
|
101
|
-
else
|
102
|
-
printf "
|
103
|
-
dependencies:
|
104
|
-
# RVM
|
105
|
-
rvm: bash curl git
|
106
|
-
|
107
|
-
# For Ruby (MRI & Ree) you should install the following OS dependencies:
|
108
|
-
ruby: # gcc-c++ patch readline zlib libyaml iconv libxml2 libxslt
|
109
|
-
|
110
|
-
# For JRuby (if you wish to use it) you will need:
|
111
|
-
jruby: # The SUN java runtime environment and development kit.
|
112
|
-
|
113
|
-
# For IronRuby (if you wish to use it) you will need:
|
114
|
-
ironruby: #The Mono Runtime and Development Platform (version 2.6 or greater is recommended).
|
115
|
-
"
|
116
|
-
fi
|
117
|
-
elif [[ "Darwin" = "$system" ]] ; then
|
118
|
-
|
119
|
-
release="( $(sw_vers -productName) )"
|
120
|
-
|
121
|
-
printf "
|
122
|
-
Notes for ${system} $release
|
123
|
-
For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
|
124
|
-
You should download the latest Xcode tools from developer.apple.com.
|
125
|
-
(This is since the dvd install for Snow Leopard contained bugs).
|
126
|
-
|
127
|
-
If you intend on installing MacRuby you must install LLVM first.
|
128
|
-
If you intend on installing JRuby you must install the JDK.
|
129
|
-
If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended).
|
130
|
-
|
131
|
-
To seamlessly abandon the Apple-installed system ruby (ruby 1.8.7 patchlevel 174 for Snow Leopard):
|
132
|
-
|
133
|
-
rvm install 1.8.7 # installs patch 302: closest supported version
|
134
|
-
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
|
135
|
-
rvm --default 1.8.7
|
136
|
-
"
|
137
|
-
fi
|
138
|
-
|
139
|
-
echo
|
140
|
-
|