setup_script_generator 0.4.1 → 0.5.0

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: 414b35d4fd8fcc955edbd48c07adf9cb6a58b1268ab535a4b19793efc95ddb6c
4
- data.tar.gz: 6fb7d8ca9db2ccdeb09a977e8aaf29ff61621c60541ea50913511bd6cfcad3de
3
+ metadata.gz: 8e4802f8dbb397d7c66f030b2228f5aa3b91fc1b7cf1a7a9ef494a776bb95fb0
4
+ data.tar.gz: 0ce91133243bf727d1d44a0fd9a946c164880f96f694904201254112a0e3a90c
5
5
  SHA512:
6
- metadata.gz: '0962104490d7df6439779e62e9dd7e417d087d34ec4cd52857075bcfe6fd0ab0b337178e4354ae8c9fdad93fcdabcf7df999c676de6fe713728f499393034f21'
7
- data.tar.gz: 9fde5cadf9262ff46f34e2a479d8a9e02106a0f857fb18c84f5046072da15bdd9c7d726a815be46e563a4cc29a8ef1473d9201b9efd035e4fecf939e8e0caa6e
6
+ metadata.gz: 2527b8c517f829b9840d74d62878f200338492579607b59e0409de5ced554f93580db629be9e2f0399b268ba72dfc1628b5f145eec96de3c3534cfe0adec53bd
7
+ data.tar.gz: c8ad9aaaaecc49b60839c348d85fe724a86c8197675d4b48b1b4fd8ff577f4cf50d0c3bddbe8fe23308fcc2b207523c63c927f5f1ef1e60b053c658af11b613f
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.7.1
1
+ ruby 3.0.2
data/README.md CHANGED
@@ -91,6 +91,6 @@ bin/setup
91
91
 
92
92
  ## Author/License
93
93
 
94
- Setup Script Generator is copyright © 2019-2020 Elliot Winkler
94
+ Setup Script Generator is copyright © 2019-2021 Elliot Winkler
95
95
  (<elliot.winkler@gmail.com>)
96
96
  and is released under the [MIT license](LICENSE.txt).
@@ -10,7 +10,7 @@ provision-node() {
10
10
  fi
11
11
 
12
12
  if [[ -z $REQUIRED_NODE_VERSION ]]; then
13
- error "Could not determine required Node version for this project."
13
+ error 'Could not determine required Node version for this project.'
14
14
  print-wrapped "\
15
15
  Your project needs to include either a valid .tool-versions file with a 'nodejs'
16
16
  line or a valid .node-version or .nvimrc file."
@@ -51,17 +51,24 @@ When you're done, close and re-open this terminal tab and re-run this script."
51
51
  }
52
52
 
53
53
  ensure-project-node-dependencies-installed() {
54
- banner 'Installing Node dependencies'
55
-
56
54
  if [[ -f package-lock.json ]]; then
55
+ banner 'Installing Node dependencies'
57
56
  npm install
58
57
  elif [[ -f yarn.lock ]]; then
58
+ if ! type yarn &>/dev/null; then
59
+ banner 'Installing Yarn 1'
60
+ npm install -g yarn
61
+ fi
62
+ banner 'Installing Node dependencies'
59
63
  yarn install
60
64
  else
61
65
  error "Sorry, I'm not sure how to install your dependencies."
62
66
  print-wrapped "\
63
- Are you missing a package.json? Have you run 'npm install' or 'yarn install'
64
- yet?"
67
+ It doesn't look like you have a package-lock.json or yarn.lock in your project
68
+ yet. I'm not sure which package manager you plan on using, so you'll need to run
69
+ either \`npm install\` or \`yarn install\` once first. Additionally, if you want
70
+ to use Yarn 2, then now is the time to switch to that. Then you can re-run this
71
+ script."
65
72
  exit 1
66
73
  fi
67
74
  }
@@ -0,0 +1,6 @@
1
+ provision-overmind() {
2
+ if ! has-executable overmind; then
3
+ banner "Installing Overmind"
4
+ install tmux overmind
5
+ fi
6
+ }
@@ -0,0 +1,7 @@
1
+ provision-rails() {
2
+ banner "Preparing database; removing old logs and tempfiles"
3
+ bin/rails db:prepare log:clear tmp:clear
4
+
5
+ banner "Restarting application server"
6
+ bin/rails restart
7
+ }
@@ -1,3 +1,3 @@
1
1
  module SetupScriptGenerator
2
- VERSION = "0.4.1".freeze
2
+ VERSION = "0.5.0".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.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Winkler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-18 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -34,7 +34,9 @@ files:
34
34
  - lib/setup_script_generator/templates/provisions/elm.sh
35
35
  - lib/setup_script_generator/templates/provisions/heroku.sh
36
36
  - lib/setup_script_generator/templates/provisions/node.sh
37
+ - lib/setup_script_generator/templates/provisions/overmind.sh
37
38
  - lib/setup_script_generator/templates/provisions/postgresql.sh
39
+ - lib/setup_script_generator/templates/provisions/rails.sh
38
40
  - lib/setup_script_generator/templates/provisions/ruby.sh
39
41
  - lib/setup_script_generator/templates/provisions/sqlite3.sh
40
42
  - lib/setup_script_generator/templates/skeleton.sh.erb
@@ -63,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
65
  - !ruby/object:Gem::Version
64
66
  version: '0'
65
67
  requirements: []
66
- rubygems_version: 3.1.2
68
+ rubygems_version: 3.2.22
67
69
  signing_key:
68
70
  specification_version: 4
69
71
  summary: Generate setup scripts for your projects.