Sha256: c39aec041d778c06cf3627224598c2fe8cc54a068379fce3a0662c295b621a60
Contents?: true
Size: 506 Bytes
Versions: 294
Compression:
Stored size: 506 Bytes
Contents
#!/usr/bin/env bash set -eux if [ -f ./.ruby-version ]; then echo ".ruby-version file found" fi if [ ! -f ./.ruby-version ]; then echo ".ruby-version file not found" exit 1 fi IFS='-' read -ra EXPLODED_RUBY <<< "$RUBY" if [ "${#EXPLODED_RUBY[@]}" == "1" ]; then echo 'No engine/version separator "-" found in .ruby-version file.' exit 1 fi if [ "${#EXPLODED_RUBY[@]}" != "1" ] && [ "${#EXPLODED_RUBY[@]}" != "2" ]; then echo "Unknown format of .ruby-version file" exit 1 fi echo $RUBY
Version data entries
294 entries across 294 versions & 3 rubygems