gemrage 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +5 -0
- data/VERSION +1 -1
- data/gemrage.gemspec +148 -3
- data/lib/rubygems/commands/scan_command.rb +77 -4
- data/vendor/ruby/1.8/bin/rvm-install +19 -0
- data/vendor/ruby/1.8/cache/macaddr-1.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rvm-1.0.14.gem +0 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/README +33 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/gemspec.rb +27 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/install.rb +210 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/lib/macaddr.rb +69 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/LICENCE +18 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/README +127 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/bin/rvm-install +5 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm +76 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-auto-ruby +24 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-prompt +204 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-shell +35 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-update-head +35 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-update-latest +27 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvmsudo +24 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/db +71 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/known +55 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/md5 +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot +25 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/install-system-wide +191 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/r +44 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/examples/rvmrc +47 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/gemsets/default.gems +1 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/gemsets/global.gems +1 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/alias +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/benchmark +17 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/cleanup +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/debug +8 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/disk-usage +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/docs +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/exec +33 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/fetch +5 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gem +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gemdir +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gemset +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/implode +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/info +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/install +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/list +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/migrate +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/monitor +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/notes +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/package +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rake +14 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/remove +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/repair +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/reset +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/ruby +84 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rubygems +11 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rvmrc +34 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/snapshot +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/specs +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/srcdir +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/tests +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/tools +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/uninstall +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/update +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/upgrade +18 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/use +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/wrapper +41 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/VERSION.yml +4 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/capistrano.rb +45 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/alias.rb +69 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/cleanup.rb +54 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/configuration.rb +60 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/env.rb +52 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/gemset.rb +222 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/info.rb +13 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/list.rb +124 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/rubies.rb +50 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/sets.rb +123 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/tools.rb +68 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/utility.rb +173 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/wrapper.rb +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment.rb +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/errors.rb +31 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/install_command_dumper.rb +51 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/abstract_wrapper.rb +145 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh +26 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/result.rb +42 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/shell_wrapper.sh +10 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/single_shot_wrapper.rb +56 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/utility.rb +37 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell.rb +25 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/version.rb +19 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm.rb +156 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/man/man1/rvm.1 +385 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/man/man1/rvm.1.gz +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/rvm.gemspec +184 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/alias +225 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/aliases +4 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/array +32 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/base +49 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cd +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cleanup +58 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cli +781 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/color +49 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/completion +151 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/db +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/disk-usage +60 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/docs +115 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/env +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/environment-convertor +74 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/fetch +229 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/gemsets +950 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/hash +37 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/help +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/hook +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/info +214 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/initialize +29 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/irbrc +9 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/irbrc.rb +63 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/list +315 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/log +38 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/maglev +193 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/manage +2094 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/match +6 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5 +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/migrate +175 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/monitor +105 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/notes +121 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/override_gem +14 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/package +301 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/patches +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/patchsets +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/repair +199 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rubygems +157 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rvm +120 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rvm-install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/selector +818 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/set +301 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/snapshot +262 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/tools +58 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/update +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/upgrade +144 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/utility +1557 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/version +17 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/wrapper +210 -0
- data/vendor/ruby/1.8/specifications/macaddr-1.0.0.gemspec +27 -0
- data/vendor/ruby/1.8/specifications/rvm-1.0.14.gemspec +42 -0
- metadata +149 -4
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
#
|
4
|
+
# The idea is that we emulate a hash using two methods
|
5
|
+
#
|
6
|
+
# The first method is providing functions by sourcing this file
|
7
|
+
#
|
8
|
+
# The second method is where this script is called directly,
|
9
|
+
# we then provide functionality of a file based hash
|
10
|
+
#
|
11
|
+
|
12
|
+
if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
|
13
|
+
|
14
|
+
if [[ -n "${ZSH_VERSION:-""}" ]] ; then __array_start=1 ; else __array_start=0 ; fi
|
15
|
+
|
16
|
+
hash()
|
17
|
+
{
|
18
|
+
hash_name=$1 ; hash_key=$2 ; hash_value=$3
|
19
|
+
|
20
|
+
eval "_hash_${hash_name}_keys=\${_hash_${hash_name}_keys:-()} ; _hash_${hash_name}_values=\${_hash_${hash_name}_values:-()}"
|
21
|
+
|
22
|
+
if [[ -z "$hash_value" ]] ; then
|
23
|
+
eval "length=\${#_hash_${hash_name}_keys[@]}"
|
24
|
+
for (( index=$__array_start ; index < $length; index++ )) ; do
|
25
|
+
eval "key=\"\${_hash_${hash_name}_keys[$index]}\""
|
26
|
+
if [[ "$hash_key" = "$key" ]] ; then
|
27
|
+
eval "echo -n \${_hash_${hash_name}_values[$index]}"
|
28
|
+
break
|
29
|
+
fi
|
30
|
+
done
|
31
|
+
else
|
32
|
+
eval "index=\$((\${#_hash_${hash_name}_keys[*]} + $__array_start))"
|
33
|
+
eval "_hash_${hash_name}_keys[$index]=\"$hash_key\""
|
34
|
+
eval "_hash_${hash_name}_values[$index]=\"$hash_value\""
|
35
|
+
fi
|
36
|
+
}
|
37
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
rvm_base_except="selector"
|
4
|
+
|
5
|
+
source "$rvm_path/scripts/base"
|
6
|
+
|
7
|
+
rvm_help_path="${rvm_help_path:-"$rvm_path/help"}"
|
8
|
+
|
9
|
+
args=($*)
|
10
|
+
|
11
|
+
command="${args[$__array_start]}"
|
12
|
+
args[$__array_start]=""
|
13
|
+
args=(${args[@]})
|
14
|
+
|
15
|
+
action="${args[$array_start]}"
|
16
|
+
args[$__array_start]=""
|
17
|
+
args=(${args[@]})
|
18
|
+
pager="${PAGER:-less}"
|
19
|
+
|
20
|
+
if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then
|
21
|
+
|
22
|
+
if [[ -n "$action" && -s "${rvm_help_path}/${command}/${action}" ]] ; then
|
23
|
+
|
24
|
+
$pager "${rvm_help_path}/${command}/${action}"
|
25
|
+
|
26
|
+
else
|
27
|
+
|
28
|
+
$pager "${rvm_help_path}/${command}"
|
29
|
+
|
30
|
+
fi
|
31
|
+
|
32
|
+
else
|
33
|
+
|
34
|
+
$pager "${rvm_path:-$HOME/.rvm}/README"
|
35
|
+
|
36
|
+
"$rvm_path/scripts/log" "info" \
|
37
|
+
"Commands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; find . -maxdepth 1 -mindepth 1 -type f -print | \tr "\n" ' ' | sed -e 's#./##g')"
|
38
|
+
fi
|
39
|
+
|
40
|
+
"$rvm_path/scripts/log" "info" \
|
41
|
+
"For additional information please visit RVM's documentation website:\n\n http://rvm.beginrescueend.com/"
|
42
|
+
|
43
|
+
"$rvm_path/scripts/log" "info" \
|
44
|
+
"If you still cannot find what an answer to your question, find me 'wayneeseguin' in #rvm on irc.freenode.net:\n\n http://webchat.freenode.net/?channels=rvm\n"
|
45
|
+
|
46
|
+
exit $?
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
declare rvm_verbose_flag=${rvm_verbose_flag:-0}
|
4
|
+
|
5
|
+
declare rvm_hook=${rvm_hook:-""}
|
6
|
+
|
7
|
+
if [[ -n "$rvm_hook" ]] ; then
|
8
|
+
|
9
|
+
if [[ -s "$rvm_path/hooks/$rvm_hook" ]] ; then
|
10
|
+
|
11
|
+
if [[ ${rvm_verbose_flag:-0} -gt 0 || ${rvm_debug_flag:-0} -gt 0 ]] ; then
|
12
|
+
|
13
|
+
"$rvm_path/scripts/log" "info" "running hook $rvm_hook"
|
14
|
+
|
15
|
+
fi
|
16
|
+
|
17
|
+
source "$rvm_path/hooks/$rvm_hook"
|
18
|
+
|
19
|
+
fi
|
20
|
+
|
21
|
+
fi
|
22
|
+
|
23
|
+
unset rvm_hook
|
@@ -0,0 +1,214 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
|
4
|
+
|
5
|
+
source "$rvm_path/scripts/base"
|
6
|
+
|
7
|
+
source "$rvm_path/scripts/version"
|
8
|
+
|
9
|
+
version_for()
|
10
|
+
{
|
11
|
+
local binary=${1:-""}
|
12
|
+
|
13
|
+
if command -v "$binary" >/dev/null ; then
|
14
|
+
$binary --version | head -n1
|
15
|
+
else
|
16
|
+
echo "not installed"
|
17
|
+
fi
|
18
|
+
|
19
|
+
return 0
|
20
|
+
}
|
21
|
+
|
22
|
+
info_system()
|
23
|
+
{
|
24
|
+
rvm_info="
|
25
|
+
system:
|
26
|
+
uname: \"$(uname -a)\"
|
27
|
+
bash: \"$(command -v bash) => $(version_for bash)\"
|
28
|
+
zsh: \"$(command -v zsh) => $(version_for zsh)\"
|
29
|
+
"
|
30
|
+
}
|
31
|
+
|
32
|
+
info_rvm()
|
33
|
+
{
|
34
|
+
rvm_info="
|
35
|
+
rvm:
|
36
|
+
version: \"$(__rvm_version | \tr "\n" ' ' | __rvm_strip)\"
|
37
|
+
"
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
info_ruby()
|
42
|
+
{
|
43
|
+
[[ "$(__rvm_environment_identifier)" == "system" ]] && return
|
44
|
+
ruby=$(command -v ruby)
|
45
|
+
if [[ $? -eq 0 ]] && [[ -x "$ruby" ]] ; then full_version="$($ruby -v)" ; fi
|
46
|
+
rvm_info="
|
47
|
+
ruby:
|
48
|
+
interpreter: \"$(printf "${full_version}" | awk '{print $1}')\"
|
49
|
+
version: \"$(printf "${full_version}" | awk '{print $2}')\"
|
50
|
+
date: \"$(printf "${full_version}" | sed 's/^.*(\([0-9]\{4\}\(-[0-9][0-9]\)\{2\}\).*$/\1/')\"
|
51
|
+
platform: \"$(printf "${full_version}" | sed 's/^.*\[//' | sed 's/\].*$//')\"
|
52
|
+
patchlevel: \"$(printf "${full_version}" | sed 's/^.*(//' | sed 's/).*$//')\"
|
53
|
+
full_version: \"${full_version}\"
|
54
|
+
"
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
info_homes()
|
59
|
+
{
|
60
|
+
rvm_info="
|
61
|
+
homes:
|
62
|
+
gem: \"${GEM_HOME:-"not set"}\"
|
63
|
+
ruby: \"${MY_RUBY_HOME:-"not set"}\"
|
64
|
+
"
|
65
|
+
}
|
66
|
+
|
67
|
+
info_binaries()
|
68
|
+
{
|
69
|
+
rvm_info="
|
70
|
+
binaries:
|
71
|
+
ruby: \"$(command -v ruby)\"
|
72
|
+
irb: \"$(command -v irb)\"
|
73
|
+
gem: \"$(command -v gem)\"
|
74
|
+
rake: \"$(command -v rake)\"
|
75
|
+
"
|
76
|
+
}
|
77
|
+
|
78
|
+
info_environment()
|
79
|
+
{
|
80
|
+
rvm_info="
|
81
|
+
environment:
|
82
|
+
PATH: \"${PATH:-""}\"
|
83
|
+
GEM_HOME: \"${GEM_HOME:-""}\"
|
84
|
+
GEM_PATH: \"${GEM_PATH:-""}\"
|
85
|
+
BUNDLE_PATH: \"${BUNDLE_PATH:-""}\"
|
86
|
+
MY_RUBY_HOME: \"${MY_RUBY_HOME:-""}\"
|
87
|
+
IRBRC: \"${IRBRC:-""}\"
|
88
|
+
RUBYOPT: \"${RUBYOPT:-""}\"
|
89
|
+
gemset: \"$(printf "${GEM_HOME:-""}" | awk -F${rvm_gemset_separator:-"@"} '{print $2}')\"\n
|
90
|
+
"
|
91
|
+
|
92
|
+
if [[ -n "${MAGLEV_HOME:-""}" ]] ; then
|
93
|
+
rvm_info="$rvm_info\n MAGLEV_HOME: \"$MAGLEV_HOME\""
|
94
|
+
fi
|
95
|
+
|
96
|
+
rvm_info="$rvm_info\n"
|
97
|
+
}
|
98
|
+
|
99
|
+
info_debug()
|
100
|
+
{
|
101
|
+
rvm_info="
|
102
|
+
|
103
|
+
$(__rvm_version)
|
104
|
+
$("$rvm_path/scripts/info" "$rvm_ruby_string" "" )
|
105
|
+
PATH:\n$(printf "$PATH" | awk -F":" '{print $1":"$2":"$3":"$4":"$5}' )
|
106
|
+
uname -a: $(uname -a)
|
107
|
+
permissions: $(\ls -la "$rvm_path" "$rvm_path/rubies")
|
108
|
+
"
|
109
|
+
|
110
|
+
if [[ "Darwin" = "$(uname)" ]] ; then
|
111
|
+
rvm_info="$rvm_info
|
112
|
+
uname -r: $(uname -r)
|
113
|
+
uname -m: $(uname -m)
|
114
|
+
sw_vers: $(sw_vers | \tr "\n" ',')
|
115
|
+
ARCHFLAGS: ${ARCHFLAGS:-""}
|
116
|
+
LDFLAGS: ${LDFLAGS:-""}
|
117
|
+
CFLAGS: ${CFLAGS:-""}
|
118
|
+
/Developer/SDKs/*:$(/usr/bin/basename -a /Developer/SDKs/* | \tr "\n" ',')
|
119
|
+
"
|
120
|
+
fi
|
121
|
+
|
122
|
+
for file_name in "$HOME/.bashrc" "$HOME/.bash_profile" "$HOME/.zshenv" ; do
|
123
|
+
|
124
|
+
if [[ -s "$file_name" ]] ; then
|
125
|
+
|
126
|
+
rvm_info="$rvm_info\n$file_name:\n$(\grep 'rvm' "$file_name" 2>/dev/null || true)"
|
127
|
+
|
128
|
+
fi
|
129
|
+
|
130
|
+
done
|
131
|
+
|
132
|
+
if [[ "$rvm_selfcontained" = "0" ]] ; then
|
133
|
+
|
134
|
+
debug_files=("$rvm_path/config/alias" "$rvm_path/config/system" "$rvm_path/config/db" "/etc/rvmrc" "/etc/gemrc")
|
135
|
+
|
136
|
+
else
|
137
|
+
|
138
|
+
debug_files=("$rvm_path/config/alias" "$rvm_path/config/system" "$rvm_path/config/db" "$HOME/.rvmrc" "$HOME/.gemrc")
|
139
|
+
|
140
|
+
fi
|
141
|
+
|
142
|
+
for file_name in "${debug_files[@]}" ; do
|
143
|
+
|
144
|
+
if [[ -f "$file_name" && -s "$file_name" ]] ; then
|
145
|
+
|
146
|
+
rvm_info="$rvm_info\n$file_name \(filtered\):\n$(awk '!/assword|_key/' "$file_name" )\n"
|
147
|
+
|
148
|
+
fi
|
149
|
+
|
150
|
+
done
|
151
|
+
|
152
|
+
rvm_info="$rvm_info\ngem sources:\n$(gem sources | awk '/gems/')\n\n"
|
153
|
+
}
|
154
|
+
|
155
|
+
info_sections()
|
156
|
+
{
|
157
|
+
|
158
|
+
for section in $(printf "${sections//,/ }") ; do
|
159
|
+
|
160
|
+
rvm_info="" ; "info_${section}" ; printf "$rvm_info"
|
161
|
+
|
162
|
+
done
|
163
|
+
|
164
|
+
}
|
165
|
+
|
166
|
+
rvm_ruby_gem_home="${rvm_ruby_gem_home:-${GEM_HOME:-""}}"
|
167
|
+
|
168
|
+
if [[ ! -d "$rvm_ruby_gem_home" ]] && command -v gem > /dev/null 2>&1; then
|
169
|
+
rvm_ruby_gem_home="$(gem env home)"
|
170
|
+
fi
|
171
|
+
|
172
|
+
rvm_info=""
|
173
|
+
|
174
|
+
args=($*)
|
175
|
+
|
176
|
+
ruby_strings="${args[$__array_start]// /}"
|
177
|
+
args[$__array_start]=""
|
178
|
+
args=(${args[@]})
|
179
|
+
|
180
|
+
sections="${args// /}"
|
181
|
+
all_sections="system rvm ruby homes binaries environment"
|
182
|
+
|
183
|
+
if "$rvm_path/scripts/match" "$all_sections debug" "${ruby_strings/,*/}" ; then
|
184
|
+
|
185
|
+
sections="$ruby_strings"
|
186
|
+
ruby_strings=""
|
187
|
+
|
188
|
+
fi
|
189
|
+
|
190
|
+
if [[ -z "${sections// /}" ]] ; then
|
191
|
+
sections="$all_sections"
|
192
|
+
fi
|
193
|
+
|
194
|
+
if [[ -z "$ruby_strings" ]] ; then
|
195
|
+
|
196
|
+
printf "\n$(__rvm_environment_identifier):\n"
|
197
|
+
|
198
|
+
info_sections
|
199
|
+
|
200
|
+
else
|
201
|
+
|
202
|
+
for ruby_string in $(printf ${ruby_strings//,/ }) ; do
|
203
|
+
|
204
|
+
__rvm_become "$ruby_string"
|
205
|
+
|
206
|
+
printf "\n$(__rvm_environment_identifier):\n"
|
207
|
+
|
208
|
+
info_sections
|
209
|
+
|
210
|
+
done
|
211
|
+
|
212
|
+
fi
|
213
|
+
|
214
|
+
exit 0
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# Ensure that the extended globs feature is turned on.
|
4
|
+
if [[ -n "${ZSH_VERSION:-""}" ]] ; then
|
5
|
+
setopt extendedglob
|
6
|
+
else
|
7
|
+
if [[ -n "${BASH_VERSION:-""}" ]] ; then
|
8
|
+
shopt -s extglob # Extended globs
|
9
|
+
else
|
10
|
+
printf "%s\n" "What the heck kind of shell are you running here???"
|
11
|
+
fi
|
12
|
+
fi
|
13
|
+
|
14
|
+
if [[ ${rvm_selfcontained:-1} -eq 0 ]] ; then
|
15
|
+
rvm_bin_path="${rvm_bin_path:-"${rvm_prefix}bin"}"
|
16
|
+
rvm_man_path="${rvm_man_path:-"${rvm_prefix}share/man"}"
|
17
|
+
rvm_rc_files="${rvm_rc_files:-"/etc/profile /etc/zshenv"}"
|
18
|
+
else
|
19
|
+
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
20
|
+
rvm_man_path="${rvm_man_path:-"$rvm_path/man"}"
|
21
|
+
rvm_rc_files="${rvm_rc_files:-"$HOME/.bash_profile $HOME/.bashrc $HOME/.zshenv"}"
|
22
|
+
fi
|
23
|
+
|
24
|
+
[[ -n "${rvm_archflags:-""}" ]] && rvm_make_flags_flag=1
|
25
|
+
|
26
|
+
rvm_gems_cache_path="${rvm_gems_cache_path:-"${rvm_gems_path:-"$rvm_path/gems"}/cache"}"
|
27
|
+
|
28
|
+
export rvm_path rvm_bin_path rvm_gems_cache_path rvm_gemset_separator rvm_selfcontained
|
29
|
+
|