diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-26 11:17:49 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-26 17:11:17 +0100 |
commit | 794bae3767446c8e0108bb74cc76ce505f23abd3 (patch) | |
tree | 2be59f63430f1521d5b0a1ebdb6b2636bda7ae51 | |
parent | bump dependencies (diff) | |
download | blog-794bae3767446c8e0108bb74cc76ce505f23abd3.tar.gz blog-794bae3767446c8e0108bb74cc76ce505f23abd3.zip |
add deps.sh to install working versions2018
Diffstat (limited to '')
-rw-r--r-- | .ruby-version | 1 | ||||
-rw-r--r-- | _config.yml | 1 | ||||
-rwxr-xr-x | deps.sh | 13 |
3 files changed, 15 insertions, 0 deletions
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 5dbb624..5191a00 100644 --- a/_config.yml +++ b/_config.yml @@ -10,6 +10,7 @@ exclude: - serve.bat - serve.sh - README.md + - deps.sh paginate: 10 @@ -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 |