setup_script_generator 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 601c0cdc2725d9bb4557d9ae22d51b8ecd3fd4fb3aa282ebfe7d42bea5d871db
|
4
|
+
data.tar.gz: 3442120d303cdb1427df26b3d8cc48e993121695074f2ea650f0689fad3d248d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5539f8aa1b762dd23db56f0892bc9dae2c0fc70bb1361c4b85d06d1f88b7df971b8c72883ffc3730a27d9b4c0f5242369223ac2334e74175181d05e3bc1cccc
|
7
|
+
data.tar.gz: d3b68a13f76ee2e214d7492aea1f807f9634146079c46f855aa5b0ee123c25a101b82392352877aaca3e0847c135c68687f2cfbd05e704dedc219e17136d753e
|
@@ -1,6 +1,18 @@
|
|
1
|
+
read-required-node-version-for-asdf() {
|
2
|
+
(cat .tool-versions | grep '^nodejs ' | sed -Ee 's/^nodejs (.+)$/\1/') || \
|
3
|
+
echo ''
|
4
|
+
}
|
5
|
+
|
1
6
|
provision-node() {
|
2
7
|
if [[ -f .tool-versions ]]; then
|
3
|
-
REQUIRED_NODE_VERSION=$(
|
8
|
+
REQUIRED_NODE_VERSION=$(read-required-node-version-for-asdf)
|
9
|
+
|
10
|
+
if [[ -z $REQUIRED_NODE_VERSION ]]; then
|
11
|
+
error "Could not read required Node version."
|
12
|
+
print-wrapped "\
|
13
|
+
Please check that .tool-versions is correct before re-running this script."
|
14
|
+
exit 1
|
15
|
+
fi
|
4
16
|
elif [[ -f .node-version ]]; then
|
5
17
|
REQUIRED_NODE_VERSION=$(cat .node-version)
|
6
18
|
elif [[ -f .nvmrc ]]; then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: setup_script_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Winkler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|