File: update_gem_in_all_appraisals

package info (click to toggle)
ruby-shoulda 4.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: ruby: 784; sh: 45; makefile: 4
file content (17 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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