Skip to content

Commit 1546290

Browse files
committed
Merge branch 'hotfix/1.26.3' into stable
2 parents f688087 + cf5d9ca commit 1546290

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+185
-167
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.26.2
1+
1.26.3

bin/rvm-prompt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ add_raw_token()
2525

2626
rvm_gemset_separator="${rvm_gemset_separator:-"@"}"
2727
if
28-
[[ "${GEM_HOME:-}" =~ rvm && "$ruby_string" != "$rvm_path/bin/ruby" ]]
28+
[[ "${GEM_HOME:-}" == *rvm* && "$ruby_string" != "$rvm_path/bin/ruby" ]]
2929
then
3030
unset format
3131
while

bin/rvm-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ then
5050
rvm_shell_ruby_string="$1"
5151
shift
5252
elif
53-
[[ "$1" == "--path" ]] && [[ -d "$2" || "$2" =~ /* ]]
53+
[[ "$1" == "--path" ]] && [[ -d "$2" || "$2" == "/"* ]]
5454
then
5555
if
5656
[[ -d "$2" ]]

binscripts/rvm-installer

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ rvm_install_commands_setup()
8181
fail "Could not find GNU compatible version of 'tar' command, make sure it's available first before continuing installation."
8282
fi
8383
if
84-
[[ ! " ${rvm_tar_options:-} " =~ " --no-same-owner " ]] &&
84+
[[ " ${rvm_tar_options:-} " != *" --no-same-owner "* ]] &&
8585
$rvm_tar_command --help 2>&1 | GREP_OPTIONS="" \grep -- --no-same-owner >/dev/null
8686
then
8787
rvm_tar_options="${rvm_tar_options:-}${rvm_tar_options:+ }--no-same-owner"
@@ -180,10 +180,10 @@ __rvm_curl_output_control()
180180
then
181181
__flags+=( "--silent" "--show-error" )
182182
elif
183-
[[ " $*" =~ " -s" || " $*" =~ " --silent" ]]
183+
[[ " $*" == *" -s"* || " $*" == *" --silent"* ]]
184184
then
185185
# make sure --show-error is used with --silent
186-
[[ " $*" =~ " -S" || " $*" =~ " -sS" || " $*" =~ " --show-error" ]] ||
186+
[[ " $*" == *" -S"* || " $*" == *" -sS"* || " $*" == *" --show-error"* ]] ||
187187
{
188188
__flags+=( "--show-error" )
189189
}
@@ -481,7 +481,7 @@ rvm_install_default_settings()
481481
{
482482
# Tracing, if asked for.
483483
if
484-
[[ "$*" =~ --trace ]] || (( ${rvm_trace_flag:-0} > 0 ))
484+
[[ "$*" == *--trace* ]] || (( ${rvm_trace_flag:-0} > 0 ))
485485
then
486486
set -o xtrace
487487
rvm_trace_flag=1
@@ -772,7 +772,7 @@ follow this link for details how to fix:
772772
;;
773773
esac
774774

775-
if [[ "$rvm_path" != /* ]]
775+
if [[ "$rvm_path" != "/"* ]]
776776
then fail "The rvm install path must be fully qualified. Tried $rvm_path"
777777
fi
778778
}
@@ -860,7 +860,7 @@ rvm_install_ruby_and_gems()
860860
"
861861

862862
if
863-
[[ "${install_gems[*]}" =~ "rails" ]]
863+
[[ "${install_gems[*]}" == *"rails"* ]]
864864
then
865865
printf "%b" "
866866
* To start using rails you need to run \`rails new <project_dir>\`.

binscripts/rvm-installer.asc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
-----BEGIN PGP SIGNATURE-----
22
Version: GnuPG v2
33

4-
iQIcBAABAgAGBQJUXmL3AAoJEOIGwp+/BP8XZYAQAIFDRTMUww09VHS1rhbq9hHU
5-
TDunUCrxMXsnNOmT4LMW+aTx8X3uXQDvj4HNd5rqTJaO9VvTAnDqYFwegGPTwQKP
6-
4RR8SmyAROqw64A219kYtuaqxQgNeOvVBCtXsSGylsJlh5/RC7QXjjoPdECckSA8
7-
KnkJp0AQZYJrruHbjFqiQh6hmpmnWCox762VxwsiAXms/8XU+UGkA+WJPfslrPkS
8-
OXGn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qlczpXKxHn7aYTkUh8/oeGFyNr3RXVE4eNB/kLWnZivULj
13+
vpSB5L8mO8mHB5i0QPmNMoezsHXz9NrBfjSRK651BmqPhAN99nzsFghktjf5Qgs2
14+
cgJQrRULfDbH8RJT/g9hdmRe5oMEo5TwZKEtiI0A31L6kzaBW2O0GdfAaP8QbKIM
15+
y/PGGyFt2JdmNCQcq3XG
16+
=kGgR
1717
-----END PGP SIGNATURE-----

help/gemset/copy.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
## Usage
3+
4+
rvm gemset copy ruby-from[@gemset] ruby-to[@gemset]
5+
6+
7+
## Description
8+
9+
Copy the `ruby-from` `gemset`s gems (`default` if omitted) to the `ruby-to` `gemset`.

rvm-test-rvm1/exports_comment_test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "$rvm_path/scripts/rvm"
2+
3+
export TEST_VAR=2 # env[TEST_VAR]=/^2$/; env[rvm_old_TEST_VAR]=/^$/
4+
rvm export TEST_VAR=3 # env[TEST_VAR]=/^3$/; env[rvm_old_TEST_VAR]=/^2$/
5+
rvm unexport # env[TEST_VAR]=/^2$/; env[rvm_old_TEST_VAR]=/^$/
6+
7+
unset TEST_VAR # env[TEST_VAR]=/^$/
8+
rvm export TEST_VAR=3 # env[TEST_VAR]=/^3$/
9+
rvm unexport # env[TEST_VAR]=/^$/

scripts/base

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@
55
#duplicated from scripts/rvm - rare reload issue
66
__rvm_has_opt()
77
{
8-
# pre-gnu
9-
if [[ -n "${ZSH_VERSION}" ]] && setopt | GREP_OPTIONS="" \command \grep "^${1}$" >/dev/null 2>&1
10-
then return 0
11-
elif [[ -n "${BASH_VERSION}" ]] && [[ ":$SHELLOPTS:" =~ ":${1}:" ]]
12-
then return 0
13-
else return 1
8+
if # pre-gnu
9+
[[ -n "${ZSH_VERSION}" ]]
10+
then
11+
setopt | GREP_OPTIONS="" \command \grep "^${1}$" >/dev/null 2>&1 || return $?
12+
elif # mksh
13+
[[ -n "${KSH_VERSION}" ]]
14+
then
15+
set +o | GREP_OPTIONS="" \command \grep "-o ${1}$" >/dev/null 2>&1 || return $?
16+
elif # bash
17+
[[ -n "${BASH_VERSION}" ]]
18+
then
19+
[[ ":$SHELLOPTS:" == *":${1}:"* ]] || return $?
20+
else # what is this?!
21+
return 1
1422
fi
1523
}
1624

scripts/cd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ case "${rvm_project_rvmrc:-1}" in
3535
__rvm_do_with_env_after
3636
return 0
3737
}
38-
export -a chpwd_functions
3938
[[ " ${chpwd_functions[*]} " == *" __rvm_cd_functions_set "* ]] ||
4039
chpwd_functions=( "${chpwd_functions[@]}" __rvm_cd_functions_set )
4140

scripts/cli

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ __rvm_parse_args_find_known_flags()
3131
rvm_disable_binary_flag=1
3232
;;
3333
(--patches|--patch)
34-
export -a rvm_patch_names
3534
__rvm_custom_separated_array rvm_patch_names , "${2:-}"
3635
rvm_patch_original_pwd="$PWD"
3736
rvm_disable_binary_flag=1
@@ -77,7 +76,7 @@ __rvm_parse_args()
7776
rvm_parse_break=0
7877

7978
if
80-
[[ " $* " =~ " --trace " ]]
79+
[[ " $* " == *" --trace "* ]]
8180
then
8281
echo "$@"
8382
__rvm_version
@@ -236,9 +235,9 @@ __rvm_parse_args()
236235
[[ -n "${next_token:-}" ]] &&
237236
[[ -x "${next_token:-}" ||
238237
-d "${next_token:-}" ||
239-
"${next_token:-}" =~ ^http ||
240-
"${next_token:-}" =~ tar.bz2$ ||
241-
"${next_token:-}" =~ tar.gz$
238+
"${next_token:-}" == http* ||
239+
"${next_token:-}" == *tar.bz2 ||
240+
"${next_token:-}" == *tar.gz
242241
]]
243242
do
244243
rvm_ruby_args=("$next_token" "${rvm_ruby_args[@]}")
@@ -286,7 +285,9 @@ __rvm_parse_args()
286285
if
287286
[[ -n "$next_token" ]]
288287
then
289-
rvm_export_args="$next_token$@"
288+
typeset -a ___args
289+
___args=( "$next_token" "$@" )
290+
rvm_export_args="${___args[*]}"
290291
rvm_action="export"
291292
rvm_parse_break=1
292293
else
@@ -482,10 +483,10 @@ __rvm_parse_args()
482483
fi
483484
while
484485
[[ -n "${next_token:-}" ]] &&
485-
[[ "${next_token:-}" =~ ^http ||
486-
"${next_token:-}" =~ tar.bz2$ ||
487-
"${next_token:-}" =~ tar.gz$ ||
488-
"${next_token:-}" =~ ":"
486+
[[ "${next_token:-}" == http* ||
487+
"${next_token:-}" == *tar.bz2 ||
488+
"${next_token:-}" == *tar.gz ||
489+
"${next_token:-}" == *":"*
489490
]]
490491
do
491492
rvm_ruby_args=("${rvm_ruby_args[@]}" "$next_token")
@@ -508,7 +509,6 @@ __rvm_parse_args()
508509
;;
509510

510511
--patches|--patch)
511-
export -a rvm_patch_names
512512
__rvm_custom_separated_array rvm_patch_names , "$next_token"
513513
next_token="${1:-}"
514514
(( $# == 0 )) || shift
@@ -815,7 +815,6 @@ __rvm_parse_args()
815815
rvm()
816816
{
817817
typeset result current_result
818-
export -a rvm_ruby_args >/dev/null 2>/dev/null
819818
rvm_ruby_args=()
820819

821820
__rvm_teardown_if_broken
@@ -971,7 +970,7 @@ rvm()
971970
fi
972971
unset gem_prefix
973972
elif
974-
[[ "${rvm_ruby_args[*]}" =~ ^rename ]]
973+
[[ "${rvm_ruby_args[*]}" == rename* ]]
975974
then
976975
typeset _command _from _to
977976
read _command _from _to <<<"${rvm_ruby_args[*]}"

0 commit comments

Comments
 (0)