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: f0ac6d154f9e8b45ac914372c53379e9c95397e931fe17a940b00e6a5b855196
4
- data.tar.gz: f09643e67bfe4caab8286c17b55681f80cf89e826af60278da268937965b883a
3
+ metadata.gz: 601c0cdc2725d9bb4557d9ae22d51b8ecd3fd4fb3aa282ebfe7d42bea5d871db
4
+ data.tar.gz: 3442120d303cdb1427df26b3d8cc48e993121695074f2ea650f0689fad3d248d
5
5
  SHA512:
6
- metadata.gz: 30c6402cf80d7412d8089e24d0770644c4148698b590d9c7cab98c70bd8390adb8c474eb38f24efa82e56b16088232f91ce7ceaf9338ead30e72c6a0934e9aa1
7
- data.tar.gz: 3b33de5999e65b71ffe9e0ca6c8f82df4f03d035afc4a78b9744c4ec10a943ace2ae042f784bd3fb735f87022ed32e5009a8b2a4d8c587f6ad2be7bc6e21bf0e
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=$(cat .tool-versions | grep '^nodejs ' | sed -Ee 's/^nodejs (.+)$/\1/')
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
@@ -1,3 +1,3 @@
1
1
  module SetupScriptGenerator
2
- VERSION = "0.2.7".freeze
2
+ VERSION = "0.2.8".freeze
3
3
  end
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.7
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-08-23 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: