1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/script/update_gem_in_all_appraisals
Elliot Winkler 2c26cc3ebb Small tweaks to scripts that update gems
The `update_gem_in_all_appraisals` script can do two things:

* Update the given gem located in the Gemfile
* Update the given gem located in Appraisals

Currently, if the first step fails, then the second step does not run.
With this commit, both will run regardless of their status.
2015-12-30 21:58:40 -05:00

15 lines
345 B
Bash
Executable file

#!/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