Add script to update a gem in all appraisals

This commit is contained in:
Elliot Winkler 2015-01-09 10:14:33 -07:00
parent 7f1306841e
commit 45f39603aa
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
SUPPORTED_VERSIONS=$(<script/SUPPORTED_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