2014-10-22 04:35:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-01-24 06:02:35 +00:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
|
2014-10-22 04:35:12 +00:00
|
|
|
|
|
|
|
update-gems-for-version() {
|
|
|
|
local version="$1"
|
2015-12-23 06:52:26 +00:00
|
|
|
(export RBENV_VERSION=$version; bundle update "${@:2}"; bundle exec appraisal update "${@:2}")
|
2014-10-22 04:35:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for version in $SUPPORTED_VERSIONS; do
|
|
|
|
echo
|
|
|
|
echo "*** Updating gems for $version ***"
|
|
|
|
update-gems-for-version "$version" "$@"
|
|
|
|
done
|