Sha256: d68ca414bc340adb6911e003553a59c52c60078d29005b8f2e31e48d285520be

Contents?: true

Size: 782 Bytes

Versions: 19

Compression:

Stored size: 782 Bytes

Contents

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

declare pwd=$PWD
declare cache="$pwd/vendor/cache"

cleanup() {
  ./script/teardown
}

bundle_package() {
  bundle package --all
  echo ""
}

# We may need something like this in future if we use github checkouts of gems
# (see `install_hanami_frameworks()` in hanami/hanami's setup script)
#
# install_from_git_checkouts() { }

install_base_gem() {
  bundle exec rake build
  local pkg=`ls $pwd/pkg/*.gem | sort -r | head -1`

  gem install $pkg > /dev/null
  mv $pkg $cache

  echo "Installed $pkg (from $(git rev-parse HEAD))"
  echo ""
}

generate_index() {
  pushd $cache > /dev/null
    gem generate_index
  popd > /dev/null
  echo ""
}

main() {
  cleanup &&
    bundle_package &&
    install_base_gem &&
    generate_index
}

main

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
dry-web-web_pipe-0.2.0 script/setup
dry-web-roda-0.13.1 script/setup
dry-web-roda-0.13.0 script/setup
dry-web-web_pipe-0.1.0 script/setup
dry-web-roda-0.12.0 script/setup
dry-web-roda-0.11.0 script/setup
dry-web-roda-0.10.0 script/setup
dry-web-roda-0.9.1 script/setup
dry-web-roda-0.9.0 script/setup
dry-web-roda-0.8.0 script/setup
dry-web-roda-0.7.5 script/setup
dry-web-roda-0.7.4 script/setup
dry-web-roda-0.7.3 script/setup
dry-web-roda-0.7.2 script/setup
dry-web-roda-0.7.1 script/setup
dry-web-roda-0.7.0 script/setup
dry-web-roda-0.6.3 script/setup
dry-web-roda-0.6.2 script/setup
dry-web-roda-0.6.1 script/setup