From 4b3e8fd8b8728d1571c6822997e0d09ef2fcedc6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 26 Dec 2022 11:17:49 +0100 Subject: add deps.sh to install working versions --- .ruby-version | 1 + _config.yml | 1 + deps.sh | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .ruby-version create mode 100755 deps.sh diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..bc4abe8 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.3.8 diff --git a/_config.yml b/_config.yml index a4515a2..351fc88 100644 --- a/_config.yml +++ b/_config.yml @@ -9,6 +9,7 @@ exclude: - serve.bat - serve.sh - README.md + - deps.sh paginate: 10 diff --git a/deps.sh b/deps.sh new file mode 100755 index 0000000..0f06db4 --- /dev/null +++ b/deps.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe + +rbenv install --skip-existing "$( cat .ruby-version )" +rbenv rehash + +gem install bundler -v "$( tail -n 1 Gemfile.lock )" +rbenv rehash + +bundle install +rbenv rehash -- cgit v1.2.3