mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
de25e8f7d8
[ci skip]
17 lines
368 B
Bash
Executable file
17 lines
368 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
|
|
gem="$1"
|
|
|
|
update-gem-for-version() {
|
|
local version="$1"
|
|
(export RBENV_VERSION=$version; bundle update "$gem"; bundle exec appraisal update "$gem")
|
|
}
|
|
|
|
for version in $SUPPORTED_VERSIONS; do
|
|
echo
|
|
echo "*** Updating $gem for $version ***"
|
|
update-gem-for-version $version
|
|
done
|