rvm 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/config/db +1 -1
- data/config/known +1 -4
- data/config/md5 +1 -0
- data/contrib/install-system-wide +20 -7
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +2 -2
- data/scripts/cli +4 -3
- data/scripts/manage +5 -5
- data/scripts/rvm +2 -2
- metadata +4 -4
data/config/db
CHANGED
@@ -42,7 +42,7 @@ ree_1.8.6_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition.git
|
|
42
42
|
ree_1.8.7_url=http://rvm.beginrescueend.com/src/
|
43
43
|
ree_1.8.7_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition187.git
|
44
44
|
ree_1.8.7_patch_level=2010.02
|
45
|
-
jruby_version=1.5.
|
45
|
+
jruby_version=1.5.6
|
46
46
|
jruby_repo_url=git://github.com/jruby/jruby.git
|
47
47
|
jruby_url=http://jruby.org.s3.amazonaws.com/downloads
|
48
48
|
macruby_version=0.7.1
|
data/config/known
CHANGED
data/config/md5
CHANGED
@@ -20,6 +20,7 @@ jruby-bin-1.5.1.tar.gz=0196dcfb17354f12253eaddc1166a0ee
|
|
20
20
|
jruby-bin-1.5.2.tar.gz=d239deb9a108a6abbfbd6cb79cf8255b
|
21
21
|
jruby-bin-1.5.3.tar.gz=ccb0b2dbc300d8dd4ad1bd4da48b8320
|
22
22
|
jruby-bin-1.5.5.tar.gz=8e00f7d40cbf221f733d6f7a15784e9a
|
23
|
+
jruby-bin-1.5.6.tar.gz=94033a36517645b7a7ec781a3507c654
|
23
24
|
libiconv-1.13.1.tar.gz=7ab33ebd26687c744a37264a330bbe9a
|
24
25
|
ncurses.tar.gz=cce05daf61a64501ef6cd8da1f727ec6
|
25
26
|
openssl-0.9.8k.tar.gz=e555c6d58d276aec7fdc53363e338ab3
|
data/contrib/install-system-wide
CHANGED
@@ -42,11 +42,12 @@ __rvm_create_user_group() {
|
|
42
42
|
echo "Creating the group '$1'"
|
43
43
|
|
44
44
|
case "$os_type" in
|
45
|
+
"OpenBSD") groupadd "$rvm_group_name";;
|
45
46
|
"FreeBSD") pw groupadd -q "$rvm_group_name";;
|
46
47
|
"Linux") groupadd -f "$rvm_group_name";;
|
47
|
-
"Darwin")
|
48
|
+
"Darwin")
|
48
49
|
gid="501" #only gids > 500 show up in user preferences
|
49
|
-
|
50
|
+
|
50
51
|
#Find an open gid
|
51
52
|
while true; do
|
52
53
|
name=$(dscl . search /groups PrimaryGroupID $gid | cut -f1 -s)
|
@@ -55,7 +56,7 @@ __rvm_create_user_group() {
|
|
55
56
|
fi
|
56
57
|
gid=$[$gid +1]
|
57
58
|
done
|
58
|
-
|
59
|
+
|
59
60
|
#Create the group
|
60
61
|
dscl . -create "/Groups/$rvm_group_name"
|
61
62
|
dscl . -create "/Groups/$rvm_group_name" gid "$gid"
|
@@ -70,8 +71,9 @@ __rvm_add_user_to_group() {
|
|
70
71
|
[[ -z "$1" || -z "$2" ]] && return 1
|
71
72
|
|
72
73
|
echo "Adding '$1' to the group '$2'"
|
73
|
-
|
74
|
+
|
74
75
|
case "$os_type" in
|
76
|
+
"OpenBSD") usermod -G "$2" "$1";;
|
75
77
|
"FreeBSD") pw usermod "$1" -G "$2";;
|
76
78
|
"Linux") usermod -a -G "$2" "$1";;
|
77
79
|
"Darwin") dscl . -append "/Groups/$2" GroupMembership "$1";;
|
@@ -92,9 +94,20 @@ elif [[ -z "$(command -v git)" ]] ; then
|
|
92
94
|
echo "Please ensure git is installed and available in PATH to continue." >&2
|
93
95
|
exit 1
|
94
96
|
|
95
|
-
|
96
|
-
|
97
|
-
|
97
|
+
else
|
98
|
+
case "$os_type" in
|
99
|
+
|
100
|
+
OpenBSD|Linux|FreeBSD|Darwin)
|
101
|
+
: # All clear, proceed!
|
102
|
+
;;
|
103
|
+
|
104
|
+
*)
|
105
|
+
echo "The rvm system wide installer currently only supports the OS types:" >&2
|
106
|
+
echo "Linux, FreeBSD, OpenBSD, and Darwin" >&2
|
107
|
+
echo "'$os_type' is currently unknown." >&2
|
108
|
+
exit 1
|
109
|
+
;;
|
110
|
+
esac
|
98
111
|
fi
|
99
112
|
|
100
113
|
while [[ $# -gt 0 ]] ; do
|
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 = "1.1.
|
8
|
+
s.version = "1.1.3"
|
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-12-
|
12
|
+
s.date = %q{2010-12-05}
|
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}
|
data/scripts/cli
CHANGED
@@ -645,9 +645,8 @@ rvm()
|
|
645
645
|
|
646
646
|
__rvm_parse_args "$@"
|
647
647
|
|
648
|
-
|
649
|
-
|
650
|
-
if [[ $result -gt 0 ]] ; then
|
648
|
+
if [[ $? -gt 0 ]] ; then
|
649
|
+
result=$?
|
651
650
|
return $result
|
652
651
|
fi
|
653
652
|
|
@@ -796,3 +795,5 @@ rvm()
|
|
796
795
|
return ${result:-0}
|
797
796
|
}
|
798
797
|
|
798
|
+
__rvm_project_rvmrc
|
799
|
+
|
data/scripts/manage
CHANGED
@@ -1313,11 +1313,11 @@ __rvm_fetch_ruby()
|
|
1313
1313
|
rm -rf "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
|
1314
1314
|
fi
|
1315
1315
|
|
1316
|
-
mkdir -p "
|
1316
|
+
mkdir -p "${rvm_tmp_path:-/tmp}/rvm_src_$$"
|
1317
1317
|
|
1318
1318
|
case "$rvm_archive_extension" in
|
1319
1319
|
tar.gz|tgz)
|
1320
|
-
__rvm_run "extract" "gunzip < \"${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf - -C
|
1320
|
+
__rvm_run "extract" "gunzip < \"${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file.$rvm_archive_extension\" | tar xf - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
|
1321
1321
|
result=$?
|
1322
1322
|
|
1323
1323
|
if [[ "$result" -gt 0 ]] ; then
|
@@ -1328,7 +1328,7 @@ __rvm_fetch_ruby()
|
|
1328
1328
|
fi
|
1329
1329
|
;;
|
1330
1330
|
zip)
|
1331
|
-
__rvm_run "extract" "unzip -q -o ${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file -d
|
1331
|
+
__rvm_run "extract" "unzip -q -o ${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file -d ${rvm_tmp_path:-/tmp}/rvm_src_$$"
|
1332
1332
|
result=$?
|
1333
1333
|
|
1334
1334
|
if [[ "$result" -gt 0 ]] ; then
|
@@ -1339,7 +1339,7 @@ __rvm_fetch_ruby()
|
|
1339
1339
|
fi
|
1340
1340
|
;;
|
1341
1341
|
tar.bz2)
|
1342
|
-
__rvm_run "extract" "bunzip2 < '${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file.$rvm_archive_extension' | tar xf - -C
|
1342
|
+
__rvm_run "extract" "bunzip2 < '${rvm_archives_path:-"$rvm_path/archives"}/$rvm_ruby_package_file.$rvm_archive_extension' | tar xf - -C ${rvm_tmp_path:-/tmp}/rvm_src_$$" "$rvm_ruby_string - #extracting $rvm_ruby_package_file to ${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
|
1343
1343
|
result=$?
|
1344
1344
|
|
1345
1345
|
if [[ "$result" -gt 0 ]] ; then
|
@@ -1360,7 +1360,7 @@ __rvm_fetch_ruby()
|
|
1360
1360
|
if [[ -d "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string" ]] ; then
|
1361
1361
|
rm -rf "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
|
1362
1362
|
fi
|
1363
|
-
mv "
|
1363
|
+
mv "${rvm_tmp_path:-/tmp}/rvm_src_$$/$(builtin cd ${rvm_tmp_path:-/tmp}/rvm_src_$$ ; ls)" "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string" ; rm -rf "${rvm_tmp_path:-/tmp}/rvm_src_$$"
|
1364
1364
|
|
1365
1365
|
if [[ -n "${rvm_ruby_name:-""}" && -d "${rvm_src_path:-"$rvm_path/src"}/$(echo $rvm_ruby_string | sed -e 's/-n.*//')" ]] ; then
|
1366
1366
|
mv "${rvm_src_path:-"$rvm_path/src"}/$(echo "$rvm_ruby_string" | sed -e 's/-n.*//')" "${rvm_src_path:-"$rvm_path/src"}/$rvm_ruby_string"
|
data/scripts/rvm
CHANGED
@@ -82,7 +82,7 @@ if ! declare -f rvm > /dev/null || [[ ${rvm_reload_flag:-0} -eq 1 ]] ; then
|
|
82
82
|
|
83
83
|
if [[ -d "$rvm_path" ]] ; then
|
84
84
|
|
85
|
-
for script in array utility initialize version selector cli
|
85
|
+
for script in array utility initialize version selector cd cli override_gem ; do
|
86
86
|
|
87
87
|
if [[ -f "$rvm_path/scripts/$script" ]] ; then
|
88
88
|
|
@@ -124,5 +124,5 @@ if ! declare -f rvm > /dev/null || [[ ${rvm_reload_flag:-0} -eq 1 ]] ; then
|
|
124
124
|
fi
|
125
125
|
|
126
126
|
if [[ ${rvm_interactive_flag:-0} -gt 0 ]]; then
|
127
|
-
|
127
|
+
__rvm_project_rvmrc
|
128
128
|
fi
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wayne E. Seguin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-05 00:00:00 -05:00
|
19
19
|
default_executable: rvm-install
|
20
20
|
dependencies: []
|
21
21
|
|