aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-12-26 11:17:49 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2022-12-26 17:10:37 +0100
commitf6af1b74166d9fd28e39644c248980e1712782b6 (patch)
treef66da2157560ee78d1e3c1a97a5b97b8d252a9e8
parentboost: fix user configuration files (diff)
downloadblog-f6af1b74166d9fd28e39644c248980e1712782b6.tar.gz
blog-f6af1b74166d9fd28e39644c248980e1712782b6.zip
add deps.sh to install working versions2017
-rw-r--r--.ruby-version1
-rw-r--r--_config.yml1
-rwxr-xr-xdeps.sh13
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 51cbf2f..e06f44a 100644
--- a/_config.yml
+++ b/_config.yml
@@ -10,6 +10,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