Sha256: 97db8a0a2683d372a2746b95c5d56d76195012c7484a45648af84b64334e125f

Contents?: true

Size: 565 Bytes

Versions: 3

Compression:

Stored size: 565 Bytes

Contents

#!/bin/bash

# helper script to set GEM_HOME, PATH, and BUNDLER_COMMAND for Ruby - must be sourced, not executed

mkdir -p "${LD_RELEASE_TEMP_DIR}/gems"
export GEM_HOME="${LD_RELEASE_TEMP_DIR}/gems"
export PATH="${GEM_HOME}/bin:${PATH}"

# also, determine whether we'll need to run a specific version of Bundler

GEMSPEC_BUNDLER_VERSION=$(sed -n -e "s/.*['\"]bundler['\"], *['\"]\([^'\"]*\)['\"]/\1/p" ./*.gemspec | tr -d ' ')
if [ -n "${GEMSPEC_BUNDLER_VERSION}" ]; then
  BUNDLER_COMMAND="bundler _${GEMSPEC_BUNDLER_VERSION}_"
else
  BUNDLER_COMMAND="bundler"
fi

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ld-eventsource-2.1.0 .ldrelease/circleci/template/gems-setup.sh
launchdarkly-server-sdk-6.2.4 .ldrelease/circleci/template/gems-setup.sh
ld-eventsource-2.0.1 .ldrelease/circleci/template/gems-setup.sh