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 +4 -4
- data/bin/test +1 -1
- data/lib/install/.circleci/config.yml +24 -6
- data/lib/install/bin/lint-pr +1 -1
- data/lib/install/bin/tools-setup +4 -1
- data/lib/install/bin/tools-upgrade +5 -2
- data/lib/jt_tools/version.rb +1 -1
- data/template.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 001017d403c0730cb5c5af31dfb9dd95bed9de360e7205673c0dfddc43002d04
|
|
4
|
+
data.tar.gz: 43385b87bfd8cedd5fefaf544a07fd1c07276b580994c3b5be4f534fb6a552bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a37e5ea96f886a3a34c9604b1f6f60a54bea85079f0d531fda8dc67055967ba94fd5c096434a371581cb0156c557bf506d323a38ea6ef001ddb088942ba2614e
|
|
7
|
+
data.tar.gz: c8d44d064d64cf528c0129ecc89a5f965e640e2511ba82f9fd77328e039814c207fae80534919bb253ff58b8dbb8ecc38305ee37bfc38cce6d998a562dfc0e47
|
data/bin/test
CHANGED
|
@@ -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
|
-
|
|
148
|
-
|
|
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:
|
|
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
|
data/lib/install/bin/lint-pr
CHANGED
data/lib/install/bin/tools-setup
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
set -
|
|
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
|
data/lib/jt_tools/version.rb
CHANGED
data/template.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2020-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|