File: update_gems_in_all_appraisals

package info (click to toggle)
ruby-shoulda-context 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: ruby: 1,712; sh: 200; makefile: 4
file content (16 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -euo pipefail

SUPPORTED_VERSIONS=$(bin/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