#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' # set -vx # This works for MRI; it may or may not work for other Rubies. RUBY_VERSION=`ruby --version | cut -d ' ' -f 2 | sed 's/p.*//'` ## ## Initialise Gemset and setup if `rbenv` is available ## rm -f Gemfile.lock .rbenv-gemsets if [[ `rbenv --version 2>/dev/null` ]]; then rbenv gemset delete $RUBY_VERSION ./tmp/gemset 2>/dev/null || true find ./tmp/gemset -delete 2>/dev/null || true rbenv rehash rbenv gemset create $RUBY_VERSION ./tmp/gemset echo ./tmp/gemset > .rbenv-gemsets rbenv rehash fi ## ## Install Gems ## gem install concurrent-ruby:1.0.5 semantic_logger:4.3.0 \ ox:2.10.0 \ minitest-matchers:1.4.1 \ ansi:1.5.0 ruby-progressbar:1.10.0 builder:3.2.3 minitest-reporters:1.3.5 \ minitest-tagz:1.6.0 \ sexp_processor:4.11.0 ruby_parser:3.11.0 erubis:2.7.0 path_expander:1.0.3 flay:2.12.0 \ flog:4.6.2 \ thread_safe:0.3.6 descendants_tracker:0.0.4 equalizer:0.0.11 coercible:1.0.0 ice_nine:0.11.2 axiom-types:0.1.1 virtus:1.0.5 codeclimate-engine-rb:0.4.1 kwalify:0.7.2 ast:2.4.0 parser:2.5.1.2 rainbow:3.0.0 reek:4.0.1 \ jaro_winkler:1.5.1 parallel:1.12.1 powerpack:0.1.2 unicode-display_width:1.4.0 rubocop:0.59.2 \ json:2.1.0 simplecov-html:0.10.2 docile:1.3.1 simplecov:0.16.1 \ byebug:10.0.2 coderay:1.1.2 method_source:0.9.0 pry:0.11.3 pry-byebug:3.6.0 \ yard:0.9.16 pry-doc:0.13.4 \ colorize:0.8.1 \ awesome_print:1.8.0 \ codeclimate-test-reporter:1.0.0 yard config --gem-install-yri # gem install nokogiri -- --use-system-libraries --with-xml2-config=/usr/bin/xml2-config --with-xslt-config=/usr/bin/xslt-config # bundle config build.nokogiri --use-system-libraries bundle install --binstubs --local