File: update_gem_in_all_appraisals

package info (click to toggle)
ruby-shoulda-matchers 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 1,460 kB
  • ctags: 1,747
  • sloc: ruby: 14,127; sh: 31; makefile: 6
file content (15 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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