rvm 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- data/config/db +1 -1
- data/config/md5 +4 -0
- data/install +2 -2
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +4 -3
- data/scripts/completion +115 -0
- data/scripts/install +2 -2
- data/scripts/manage +29 -24
- data/scripts/rvm-install +2 -2
- data/scripts/update +2 -2
- data/scripts/utility +9 -2
- metadata +6 -12
data/config/db
CHANGED
@@ -30,7 +30,7 @@ macruby_version=0.5
|
|
30
30
|
macruby_url=http://www.macruby.org/files
|
31
31
|
macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
|
32
32
|
macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
|
33
|
-
maglev_version=
|
33
|
+
maglev_version=23191
|
34
34
|
maglev_url=http://glass-downloads.gemstone.com/maglev
|
35
35
|
maglev_repo_url=git://github.com/MagLev/maglev.git
|
36
36
|
rubinius_repo_url=git://github.com/evanphx/rubinius.git
|
data/config/md5
CHANGED
@@ -73,3 +73,7 @@ GemStone-23101.Darwin-i386.tar.gz=09b2c6fbb17b5571d31f2539779a2c24
|
|
73
73
|
GemStone-23101.Linux-x86_64.tar.gz=9710555efbeb3563c607f09db1d33090
|
74
74
|
MagLev-23101.Darwin-i386.tar.gz=281c9615cb2ef94f720b67fb893f1e26
|
75
75
|
MagLev-23101.Linux-x86_64.tar.gz=3294165bd510129fcf591920573c3af1
|
76
|
+
GemStone-23191.Darwin-i386.tar.gz=d3137c1996b9a599d58fa77b9c0573b0
|
77
|
+
GemStone-23191.Linux-x86_64.tar.gz=030b8b4951168142436ff958c222f7f1
|
78
|
+
MagLev-23191.Darwin-i386.tar.gz=04b71b607392da54cc7366616483cfc9
|
79
|
+
MagLev-23191.Linux-x86_64.tar.gz=479917622dd8605393e43e7c18c3fa44
|
data/install
CHANGED
@@ -180,8 +180,8 @@ for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-*
|
|
180
180
|
for file in gem rake ; do
|
181
181
|
spinner
|
182
182
|
if [[ -s "$new_path/bin/$file" ]] ; then
|
183
|
-
sed -
|
184
|
-
|
183
|
+
sed -e '1,1s=.*=#!'"${new_path}/bin/ruby=" "${new_path}/bin/${file}" > "${new_path}/bin/${file}.new"
|
184
|
+
mv -f "$new_path/bin/$file.new" "$new_path/bin/$file"
|
185
185
|
chmod +x "$new_path/bin/$file"
|
186
186
|
fi
|
187
187
|
done
|
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rvm}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.27"
|
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"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-11}
|
13
13
|
s.default_executable = %q{rvm-install}
|
14
14
|
s.description = %q{Manages Ruby interpreter environments and switching between them.}
|
15
15
|
s.email = %q{wayneeseguin@gmail.com}
|
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
"scripts/cd",
|
42
42
|
"scripts/cli",
|
43
43
|
"scripts/color",
|
44
|
+
"scripts/completion",
|
44
45
|
"scripts/db",
|
45
46
|
"scripts/fetch",
|
46
47
|
"scripts/gemsets",
|
@@ -81,7 +82,7 @@ Gem::Specification.new do |s|
|
|
81
82
|
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
82
83
|
s.require_paths = ["lib"]
|
83
84
|
s.rubyforge_project = %q{rvm}
|
84
|
-
s.rubygems_version = %q{1.3.
|
85
|
+
s.rubygems_version = %q{1.3.5}
|
85
86
|
s.summary = %q{Ruby Version Manager (rvm)}
|
86
87
|
|
87
88
|
if s.respond_to? :specification_version then
|
data/scripts/completion
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
# bash completion for Ruby Version Manager (RVM)
|
2
|
+
|
3
|
+
__rvm_comp()
|
4
|
+
{
|
5
|
+
local cur="${COMP_WORDS[COMP_CWORD]}"
|
6
|
+
COMPREPLY=($(compgen -W "$1" -- "$cur"))
|
7
|
+
return 0
|
8
|
+
}
|
9
|
+
|
10
|
+
__rvm_subcommand()
|
11
|
+
{
|
12
|
+
local word subcommand c=1
|
13
|
+
|
14
|
+
while [ $c -lt $COMP_CWORD ]; do
|
15
|
+
word="${COMP_WORDS[c]}"
|
16
|
+
for subcommand in $1; do
|
17
|
+
if [ "$subcommand" = "$word" ]; then
|
18
|
+
echo "$subcommand"
|
19
|
+
return
|
20
|
+
fi
|
21
|
+
done
|
22
|
+
c=$((++c))
|
23
|
+
done
|
24
|
+
}
|
25
|
+
|
26
|
+
__rvm_rubies ()
|
27
|
+
{
|
28
|
+
echo "$(rvm list strings) default system"
|
29
|
+
}
|
30
|
+
|
31
|
+
__rvm_gemsets ()
|
32
|
+
{
|
33
|
+
echo "$(rvm gemset list | grep -v gemset 2>/dev/null)"
|
34
|
+
}
|
35
|
+
|
36
|
+
_rvm_commands ()
|
37
|
+
{
|
38
|
+
local cur=${COMP_WORDS[COMP_CWORD]}
|
39
|
+
|
40
|
+
COMMANDS='\
|
41
|
+
version use reload impload update reset info debug\
|
42
|
+
install uninstall remove\
|
43
|
+
ruby gem rake tests specs monitor gemset\
|
44
|
+
gemdir srcdir fetch list package notes'
|
45
|
+
|
46
|
+
RVM_OPTS='\
|
47
|
+
-v --version\
|
48
|
+
-h --help\
|
49
|
+
-l --level\
|
50
|
+
--tag\
|
51
|
+
--rev\
|
52
|
+
--prefix\
|
53
|
+
--bin\
|
54
|
+
--source\
|
55
|
+
--archives\
|
56
|
+
-S --script\
|
57
|
+
-G --gems\
|
58
|
+
-C --configure\
|
59
|
+
--reconfigure\
|
60
|
+
--make\
|
61
|
+
--make-install\
|
62
|
+
--nice\
|
63
|
+
-m --gem-set\
|
64
|
+
--rm-gem-set'
|
65
|
+
|
66
|
+
case "${cur}" in
|
67
|
+
-*) _rvm_opts ;;
|
68
|
+
*) __rvm_comp "$COMMANDS $(__rvm_rubies)" ;;
|
69
|
+
esac
|
70
|
+
}
|
71
|
+
|
72
|
+
_rvm_opts ()
|
73
|
+
{
|
74
|
+
local rvm_opts='\
|
75
|
+
-v --version\
|
76
|
+
-h --help'
|
77
|
+
|
78
|
+
__rvm_comp "$rvm_opts"
|
79
|
+
}
|
80
|
+
|
81
|
+
_rvm_use ()
|
82
|
+
{
|
83
|
+
local command="${COMP_WORDS[COMP_CWORD-2]}"
|
84
|
+
|
85
|
+
case "${command}" in
|
86
|
+
gemset) __rvm_comp "$(__rvm_gemsets)" ;;
|
87
|
+
*) __rvm_comp "$(__rvm_rubies)" ;;
|
88
|
+
esac
|
89
|
+
}
|
90
|
+
|
91
|
+
_rvm_gemset ()
|
92
|
+
{
|
93
|
+
local subcommands="use create"
|
94
|
+
local subcommand="$(__rvm_subcommand "$subcommands")"
|
95
|
+
|
96
|
+
if [ -z "$subcommand" ]; then
|
97
|
+
__rvm_comp "$subcommands"
|
98
|
+
return
|
99
|
+
fi
|
100
|
+
}
|
101
|
+
|
102
|
+
_rvm ()
|
103
|
+
{
|
104
|
+
local prev=${COMP_WORDS[COMP_CWORD-1]}
|
105
|
+
|
106
|
+
case "${prev}" in
|
107
|
+
use) _rvm_use ;;
|
108
|
+
gemset) _rvm_gemset ;;
|
109
|
+
*) _rvm_commands ;;
|
110
|
+
esac
|
111
|
+
|
112
|
+
return 0
|
113
|
+
}
|
114
|
+
|
115
|
+
complete -o default -o nospace -F _rvm rvm
|
data/scripts/install
CHANGED
@@ -180,8 +180,8 @@ for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-*
|
|
180
180
|
for file in gem rake ; do
|
181
181
|
spinner
|
182
182
|
if [[ -s "$new_path/bin/$file" ]] ; then
|
183
|
-
sed -
|
184
|
-
|
183
|
+
sed -e '1,1s=.*=#!'"${new_path}/bin/ruby=" "${new_path}/bin/${file}" > "${new_path}/bin/${file}.new"
|
184
|
+
mv -f "$new_path/bin/$file.new" "$new_path/bin/$file"
|
185
185
|
chmod +x "$new_path/bin/$file"
|
186
186
|
fi
|
187
187
|
done
|
data/scripts/manage
CHANGED
@@ -39,22 +39,24 @@ __rvm_install_source() {
|
|
39
39
|
fi
|
40
40
|
fi
|
41
41
|
|
42
|
-
if [[ "1.8.5" = "$rvm_ruby_version" ]] ; then
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
fi
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
42
|
+
#if [[ "1.8.5" = "$rvm_ruby_version" ]] ; then
|
43
|
+
# # How to install ruby 1.8.5... "sneaky sneaky, sir"
|
44
|
+
# src_dir="ruby-1.8.7-p$(__rvm_db "ruby_1.8.7_patch_level")"
|
45
|
+
# if [[ ! -d "$HOME/.rvm/src/$src_dir/ext/openssl/" ]] ; then $rvm_path/bin/rvm fetch 1.8.6-p248 > /dev/null ; fi
|
46
|
+
# cp ~/.rvm/src/$src_dir/ext/openssl/extconf.rb ~/.rvm/src/ruby-1.8.5-p231/ext/openssl/
|
47
|
+
# cp ~/.rvm/src/$src_dir/ext/openssl/openssl_missing.* ~/.rvm/src/ruby-1.8.5-p231/ext/openssl/
|
48
|
+
# cp ~/.rvm/src/$src_dir/ext/openssl/ossl_hmac.c ~/.rvm/src/ruby-1.8.5-p231/ext/openssl/
|
49
|
+
# src_dir="ruby-1.8.6-p$(__rvm_db "ruby_1.8.6_patch_level")"
|
50
|
+
# if [[ ! -d "$HOME/.rvm/src/$src_dir/ext/openssl/" ]] ; then $rvm_path/bin/rvm fetch 1.8.6-p383 > /dev/null ; fi
|
51
|
+
# cp ~/.rvm/src/$src_dir/ext/readline/* ~/.rvm/src/ruby-1.8.5-p231/ext/readline/
|
52
|
+
# unset src_dir
|
53
|
+
#fi
|
54
|
+
|
55
|
+
#
|
56
|
+
#if [[ -s ./Makefile ]] && [[ -z "$rvm_reconfigure_flag" ]] ; then
|
57
|
+
# (($rvm_debug_flag)) && $rvm_scripts_path/log "debug" "Skipping configure step, Makefile exists so configure must have already been run."
|
58
|
+
#el
|
59
|
+
if [[ ! -z "$rvm_ruby_configure" ]] ; then
|
58
60
|
__rvm_run "configure" "$rvm_ruby_configure"
|
59
61
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
60
62
|
$rvm_scripts_path/log "error" "There has been an error while configuring. Aborting the installation." ; __rvm_pushpop ; return $result
|
@@ -63,10 +65,9 @@ __rvm_install_source() {
|
|
63
65
|
__rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure_flags $configure_parameters" "Configuring $rvm_ruby_string, this may take a while depending on your cpu(s)..."
|
64
66
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
65
67
|
$rvm_scripts_path/log "error" "There has been an error while running configure. Aborting the installation." ; __rvm_pushpop ; return $result
|
66
|
-
fi
|
67
|
-
unset configure_parameters
|
68
|
+
fi ; unset configure_parameters
|
68
69
|
else
|
69
|
-
$rvm_scripts_path/log "error" "Skipping configure step, 'configure'
|
70
|
+
$rvm_scripts_path/log "error" "Skipping configure step, 'configure' does not exist, did autoconf not run successfully?"
|
70
71
|
fi
|
71
72
|
|
72
73
|
if [[ ! -z "$rvm_ruby_patch" ]] ; then
|
@@ -84,6 +85,8 @@ __rvm_install_source() {
|
|
84
85
|
$rvm_scripts_path/log "error" "There has been an error while running make. Aborting the installation." ; __rvm_pushpop ; return $result
|
85
86
|
fi
|
86
87
|
|
88
|
+
if [[ -d .ext/rdoc ]] ; then rm -rf .ext/rdoc ; fi
|
89
|
+
|
87
90
|
rvm_ruby_make_install=${rvm_ruby_make_install:-"make install"}
|
88
91
|
__rvm_run "install" "$rvm_ruby_make_install" "Installing $rvm_ruby_string"
|
89
92
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
@@ -771,7 +774,7 @@ __rvm_fetch_ruby() {
|
|
771
774
|
fi
|
772
775
|
else
|
773
776
|
rm -rf $rvm_ruby_src_path
|
774
|
-
__rvm_run "svn.checkout" "svn checkout -q ${rvm_rev/-r/-r } $rvm_url $rvm_ruby_src_path"
|
777
|
+
__rvm_run "svn.checkout" "svn checkout -q ${rvm_rev/-r/-r } $rvm_url $rvm_ruby_src_path" "Downloading source from ${rvm_url}."
|
775
778
|
fi
|
776
779
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
777
780
|
$rvm_scripts_path/log "error" "There has been an error while trying to fetch / update the source. Aborting the installation." ; __rvm_pushpop ; return $result
|
@@ -816,6 +819,9 @@ __rvm_remove_ruby() {
|
|
816
819
|
if [[ -e $rvm_bin_path/$rvm_ruby_string ]] ; then
|
817
820
|
rm -f $rvm_bin_path/$rvm_ruby_string
|
818
821
|
fi
|
822
|
+
if grep -q "$rvm_ruby_string" "$rvm_config_path/default" ; then
|
823
|
+
rm -f "$rvm_config_path/default"
|
824
|
+
fi
|
819
825
|
done ; unset dir
|
820
826
|
__rvm_remove_gemsets
|
821
827
|
else
|
@@ -861,7 +867,7 @@ __rvm_post_install() {
|
|
861
867
|
fi
|
862
868
|
__rvm_inject_ruby_shebang "$rvm_ruby_home/bin/$rvm_gem_name"
|
863
869
|
__rvm_inject_gem_env "$rvm_ruby_home/bin/$rvm_gem_name"
|
864
|
-
fi
|
870
|
+
fi
|
865
871
|
done ; unset home path dir
|
866
872
|
GEM_HOME="$home" ; GEM_PATH="$path" ; BUNDLE_PATH="$home"
|
867
873
|
export GEM_HOME GEM_PATH BUNDLE_PATH
|
@@ -970,9 +976,8 @@ __rvm_inject_ruby_shebang() {
|
|
970
976
|
__rvm_actual_file $1
|
971
977
|
|
972
978
|
if [[ -f "$actual_file" ]] ; then
|
973
|
-
|
974
|
-
|
975
|
-
rm -f $actual_file.orig ; chmod +x "$actual_file"
|
979
|
+
sed -e '1,1s=.*=#!'"/usr/bin/env ruby=" ${actual_file} > "${actual_file}.new"
|
980
|
+
mv "${actual_file}.new" "${actual_file}" ; chmod +x "$actual_file"
|
976
981
|
fi ; unset actual_file
|
977
982
|
}
|
978
983
|
|
data/scripts/rvm-install
CHANGED
@@ -180,8 +180,8 @@ for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-*
|
|
180
180
|
for file in gem rake ; do
|
181
181
|
spinner
|
182
182
|
if [[ -s "$new_path/bin/$file" ]] ; then
|
183
|
-
sed -
|
184
|
-
|
183
|
+
sed -e '1,1s=.*=#!'"${new_path}/bin/ruby=" "${new_path}/bin/${file}" > "${new_path}/bin/${file}.new"
|
184
|
+
mv -f "$new_path/bin/$file.new" "$new_path/bin/$file"
|
185
185
|
chmod +x "$new_path/bin/$file"
|
186
186
|
fi
|
187
187
|
done
|
data/scripts/update
CHANGED
@@ -180,8 +180,8 @@ for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-*
|
|
180
180
|
for file in gem rake ; do
|
181
181
|
spinner
|
182
182
|
if [[ -s "$new_path/bin/$file" ]] ; then
|
183
|
-
sed -
|
184
|
-
|
183
|
+
sed -e '1,1s=.*=#!'"${new_path}/bin/ruby=" "${new_path}/bin/${file}" > "${new_path}/bin/${file}.new"
|
184
|
+
mv -f "$new_path/bin/$file.new" "$new_path/bin/$file"
|
185
185
|
chmod +x "$new_path/bin/$file"
|
186
186
|
fi
|
187
187
|
done
|
data/scripts/utility
CHANGED
@@ -276,7 +276,7 @@ RubyWrapper
|
|
276
276
|
|
277
277
|
# Load default ruby, if default is not set load system ruby.
|
278
278
|
__rvm_load_defaults() {
|
279
|
-
if [[ ! -s "$rvm_config_path/system" ]] ; then
|
279
|
+
if [[ ! -s "$rvm_config_path/system" ]] && [[ "root" != "$(whoami)" ]] ; then
|
280
280
|
for variable in RUBY_VERSION GEM_HOME GEM_PATH BUNDLE_PATH MY_RUBY_HOME ; do
|
281
281
|
eval value=\$${variable}
|
282
282
|
if [[ -z "${value/ /}" ]] ; then
|
@@ -425,7 +425,7 @@ __rvm_list_known() {
|
|
425
425
|
echo -e "jruby-1.2.0\njruby-1.3.1\njruby(-1.4.0) # the default\njruby-head"
|
426
426
|
echo -e "rbx(-prc1) # default\nrbx-head"
|
427
427
|
echo -e "ree-1.8.6\nree(-1.8.7) # the default\nree-1.8.6-head\nree-1.8.7-head"
|
428
|
-
echo -e "maglev(-
|
428
|
+
echo -e "maglev(-23191)\nmaglev-head"
|
429
429
|
echo -e "mput(-head) # shyouhei head, the default mput"
|
430
430
|
echo -e "ironruby-0.9.3\nironruby-1.0-rc2\nironruby-head"
|
431
431
|
if [[ "Darwin" = "$(uname)" ]] ; then
|
@@ -643,6 +643,10 @@ __rvm_gemset_select() {
|
|
643
643
|
|
644
644
|
rvm_ruby_global_gems_path="$rvm_gems_path/${rvm_ruby_string}${rvm_gemset_separator}global"
|
645
645
|
|
646
|
+
#if [[ -z "$(echo $rvm_ruby_gem_home | grep "$rvm_path")" ]] ; then
|
647
|
+
# $rvm_scripts_path/log "warn" "Gemsets cannot be used with system ruby installs (yet)."
|
648
|
+
#fi
|
649
|
+
|
646
650
|
if [[ -z "$rvm_gemset_name" ]] ; then
|
647
651
|
# No longer defaulting to 'sticky' gem sets.
|
648
652
|
# Set 'rvm_sticky_flag=1' in ~/.rvmrc to enable.
|
@@ -715,6 +719,9 @@ __rvm_gemset_select() {
|
|
715
719
|
|
716
720
|
# Use a gemset specified by 'rvm_ruby_gem_home'
|
717
721
|
__rvm_gemset_use() {
|
722
|
+
#if [[ -z "$(echo $rvm_ruby_gem_home | grep "rvm")" ]] ; then
|
723
|
+
# $rvm_scripts_path/log "warn" "Gemsets cannot be used with system ruby installs (yet)."
|
724
|
+
#fi
|
718
725
|
if [[ ! -z "$rvm_ruby_gem_home" ]] ; then
|
719
726
|
if [[ ! -d "$rvm_ruby_gem_home" ]] ; then
|
720
727
|
if [[ "$rvm_gemset_create_on_use_flag" -eq 1 ]] || [[ "$rvm_create_flag" -eq 1 ]]; then
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 26
|
9
|
-
version: 0.1.26
|
4
|
+
version: 0.1.27
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- Wayne E. Seguin
|
@@ -14,7 +9,7 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date: 2010-04-
|
12
|
+
date: 2010-04-11 00:00:00 -04:00
|
18
13
|
default_executable: rvm-install
|
19
14
|
dependencies: []
|
20
15
|
|
@@ -50,6 +45,7 @@ files:
|
|
50
45
|
- scripts/cd
|
51
46
|
- scripts/cli
|
52
47
|
- scripts/color
|
48
|
+
- scripts/completion
|
53
49
|
- scripts/db
|
54
50
|
- scripts/fetch
|
55
51
|
- scripts/gemsets
|
@@ -99,20 +95,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
95
|
requirements:
|
100
96
|
- - ">="
|
101
97
|
- !ruby/object:Gem::Version
|
102
|
-
segments:
|
103
|
-
- 0
|
104
98
|
version: "0"
|
99
|
+
version:
|
105
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
101
|
requirements:
|
107
102
|
- - ">="
|
108
103
|
- !ruby/object:Gem::Version
|
109
|
-
segments:
|
110
|
-
- 0
|
111
104
|
version: "0"
|
105
|
+
version:
|
112
106
|
requirements: []
|
113
107
|
|
114
108
|
rubyforge_project: rvm
|
115
|
-
rubygems_version: 1.3.
|
109
|
+
rubygems_version: 1.3.5
|
116
110
|
signing_key:
|
117
111
|
specification_version: 3
|
118
112
|
summary: Ruby Version Manager (rvm)
|