File: update_gems_in_all_appraisals

package info (click to toggle)
ruby-shoulda-matchers 7.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: ruby: 34,046; sh: 280; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -euo pipefail

SUPPORTED_VERSIONS=$(script/supported_ruby_versions)

update-gems-for-version() {
  local version="$1"
  (export RBENV_VERSION=$version; bundle update "${@:2}"; bundle exec appraisal update "${@:2}")
}

for version in $SUPPORTED_VERSIONS; do
  echo
  echo "*** Updating gems for $version ***"
  update-gems-for-version "$version" "$@"
done