Sha256: fe346d40470e598d52c5372c27937c38baf584b76e2283f7cc40a97611641268
Contents?: true
Size: 824 Bytes
Versions: 50
Compression:
Stored size: 824 Bytes
Contents
#!/bin/bash set -eu gem_args="--no-verbose --no-document" # Workaround for https://github.com/jruby/jruby/issues/7059 if [[ "${RUBY_VERSION}" == *"jruby"* ]]; then echo "Skipping rubygems and bundler update for JRuby" exit 0 fi case "${_RUBYGEMS_VERSION-"latest"}" in "latest") echo "Updating rubygems" retry --times 5 --sleep 5 gem update $gem_args --system ;; *) echo "Updating rubygems to $_RUBYGEMS_VERSION}" retry --times 5 --sleep 5 gem update $gem_args --system $_RUBYGEMS_VERSION ;; esac case "${_BUNDLER_VERSION-"latest"}" in "latest") echo "Updating bundler" retry --times 5 --sleep 5 gem update bundler $gem_args ;; *) echo "Updating bundler to $_BUNDLER_VERSION" retry --times 5 --sleep 5 gem install bundler $gem_args --version $_BUNDLER_VERSION ;; esac
Version data entries
50 entries across 50 versions & 1 rubygems