jt_tools 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 572357ddd76795a8be4e63b9971170b929b88a13984bc19699cccb032360e6f0
4
- data.tar.gz: 623a3189df117eaddd2b9e34a71133e258335db0c75fc21e229291c9a02c8110
3
+ metadata.gz: 001017d403c0730cb5c5af31dfb9dd95bed9de360e7205673c0dfddc43002d04
4
+ data.tar.gz: 43385b87bfd8cedd5fefaf544a07fd1c07276b580994c3b5be4f534fb6a552bb
5
5
  SHA512:
6
- metadata.gz: 7c2dc7910b9bcf6c5b4581579ea39b2f8cf8f18f5eb908fa91eec5879836867931dd052aebe9804b565ca27c04955c237d9deb640cfe045637824d61fb7bb945
7
- data.tar.gz: 31a9bf64622e847b3b29fba3294974a49775f4789441a2581ef8b60aba3f3708dc86f1646d9919fb57bf87815c624cf71fe4ce393845c82ec794e628e0e1984e
6
+ metadata.gz: a37e5ea96f886a3a34c9604b1f6f60a54bea85079f0d531fda8dc67055967ba94fd5c096434a371581cb0156c557bf506d323a38ea6ef001ddb088942ba2614e
7
+ data.tar.gz: c8d44d064d64cf528c0129ecc89a5f965e640e2511ba82f9fd77328e039814c207fae80534919bb253ff58b8dbb8ecc38305ee37bfc38cce6d998a562dfc0e47
data/bin/test CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- set -xeo pipefail
3
+ set -eo pipefail
4
4
 
5
5
  echo "=> Yamllint:"
6
6
  yamllint --config-file lib/install/.yamllint.yml --strict .*/*.yml
@@ -61,9 +61,25 @@ jobs:
61
61
 
62
62
  steps:
63
63
  - checkout
64
+
65
+ - restore_cache:
66
+ name: Restore Bundler Cache between Branches
67
+ keys:
68
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
69
+ - v1-dependencies-
70
+
64
71
  - ruby/install-deps:
65
72
  bundler-version: '`cat Gemfile.lock | tail -1 | tr -d " "`'
66
73
  key: v1-dependencies
74
+ with-cache: false
75
+ path: './vendor/bundle'
76
+
77
+ - save_cache:
78
+ name: Save Bundler Cache between Branches
79
+ paths:
80
+ - ./vendor/bundle
81
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
82
+
67
83
  - node/install:
68
84
  node-version: latest
69
85
  - node/install-packages:
@@ -143,9 +159,9 @@ jobs:
143
159
 
144
160
  - run:
145
161
  name: Install cmake for building pronto dependencies
146
- command: sudo apt-get update -qq &&
147
- sudo apt-get install -yq --no-install-recommends
148
- cmake yamllint python3-setuptools python3-pkg-resources pkg-config
162
+ command: sudo apt-get update -qq
163
+ && sudo apt-get install -yq --no-install-recommends
164
+ cmake yamllint python3-setuptools python3-pkg-resources pkg-config
149
165
 
150
166
  - run:
151
167
  name: Install Bundle Dependencies
@@ -182,9 +198,11 @@ jobs:
182
198
  source $BASH_ENV
183
199
  gem install bundler:$BUNDLER_VERSION
184
200
 
185
- - run: sudo apt-get update && sudo apt-get install cmake yamllint python3-setuptools python3-pkg-resources pkg-config
201
+ - run:
202
+ name: Install System Dependencies
203
+ command: sudo apt-get update
204
+ && sudo apt-get install cmake yamllint python3-setuptools python3-pkg-resources pkg-config
186
205
 
187
206
  - run:
188
207
  name: Run Gemfile tools update in separate branch
189
- command: |
190
- ./bin/circleci-auto_upgrade_tools
208
+ command: ./bin/circleci-auto_upgrade_tools
@@ -4,7 +4,7 @@ set -eo pipefail
4
4
 
5
5
  reporters_opt=""
6
6
 
7
- if [[ "$CIRCLECI" == "true" ]]
7
+ if [[ -n "$PRONTO_GITHUB_ACCESS_TOKEN" && "$CIRCLECI" == "true" ]]
8
8
  then
9
9
  git fetch origin master
10
10
  reporters_opt="-f github_status github_pr_review"
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- set -e
3
+ set -eo pipefail
4
+
5
+ ([[ (-x "$(command -v brew)") ]] && brew bundle check || brew bundle --no-lock) \
6
+ || (echo "*** Please install manually system dependencies: ***" && cat Brewfile)
4
7
 
5
8
  export BUNDLE_GEMFILE=Gemfile.tools
6
9
 
@@ -1,9 +1,12 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- set -e
3
+ set -eo pipefail
4
+
5
+ ([[ (-x "$(command -v brew)") ]] && brew bundle check || brew bundle --no-lock) \
6
+ || (echo "*** Please upgrade manually system dependencies: ***" && cat Brewfile)
4
7
 
5
8
  export BUNDLE_GEMFILE=Gemfile.tools
6
9
 
7
10
  bundle update --jobs=4 --retry=3
8
11
 
9
- yarn check || yarn install
12
+ bin/yarn check || bin/yarn install
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JtTools
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
@@ -130,7 +130,7 @@ say "=> Install all new dependencies"
130
130
 
131
131
  run <<~BREW_INSTALL
132
132
  hash brew 2> /dev/null \
133
- && (brew bundle check || brew bundle install) \
133
+ && (brew bundle check || brew bundle install --no-lock) \
134
134
  || echo "Please install Homebrew: https://brew.sh/"
135
135
  BREW_INSTALL
136
136
 
@@ -181,6 +181,14 @@ Bundler.with_original_env do
181
181
  run "bundle"
182
182
  end
183
183
 
184
+ uncomment_lines 'bin/setup', /system\(.*?\\byarn\b/
185
+
186
+ insert_into_file(
187
+ "bin/setup",
188
+ "system!('bin/tools-setup')\n",
189
+ after: "system('bundle check') || system!('bundle install')\n"
190
+ )
191
+
184
192
  say "**************************************************************************"
185
193
  say "**************************************************************************"
186
194
  say ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jt_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Keen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-07 00:00:00.000000000 Z
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties