Sha256: 36bb446396aef24c8fb17c2cae62cbd10f449562558d80eda7c5e629d29d160b

Contents?: true

Size: 713 Bytes

Versions: 248

Compression:

Stored size: 713 Bytes

Contents

#!/bin/bash

set -eu

actual_ruby_version=$(ruby --version)
if [[ "$actual_ruby_version" == *"jruby"* ]]; then
  # Replace "-" from specified RUBY_VERSION string. Semaphore/rbenv version uses
  # a dash, where `jruby --version` uses a space.
  sanitized_ruby_version="${RUBY_VERSION//-/ }"
else
  # Strip "-" from specified RUBY_VERSION string. Semaphore/rbenv version uses
  # a dash, where `ruby --version` does not.
  sanitized_ruby_version="${RUBY_VERSION//-}"
fi
if [[ "$actual_ruby_version" == *"$sanitized_ruby_version"* ]]; then
  echo "Ruby version is $RUBY_VERSION"
  exit 0
else
  echo "Ruby version is:        $actual_ruby_version"
  echo "Ruby version should be: $sanitized_ruby_version"
  exit 1
fi

Version data entries

248 entries across 248 versions & 1 rubygems

Version Path
appsignal-2.11.4-java support/check_versions
appsignal-2.11.4 support/check_versions
appsignal-2.11.3-java support/check_versions
appsignal-2.11.3 support/check_versions
appsignal-2.11.2-java support/check_versions
appsignal-2.11.2 support/check_versions
appsignal-2.11.1-java support/check_versions
appsignal-2.11.1 support/check_versions
appsignal-2.11.1.beta.2 support/check_versions
appsignal-2.11.1.beta.2-java support/check_versions
appsignal-2.11.0-java support/check_versions
appsignal-2.11.0 support/check_versions
appsignal-2.10.12 support/check_versions
appsignal-2.10.12-java support/check_versions
appsignal-2.11.0.beta.5 support/check_versions
appsignal-2.11.0.beta.5-java support/check_versions
appsignal-2.10.11 support/check_versions
appsignal-2.10.11-java support/check_versions
appsignal-2.11.0.beta.4 support/check_versions
appsignal-2.11.0.beta.4-java support/check_versions