jt_tools 0.0.9 → 0.0.14
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/.gitattributes +7 -0
- data/.gitignore +1 -0
- data/Gemfile +1 -0
- data/bin/standardrb +29 -0
- data/bin/test +15 -9
- data/lib/install/.circleci/config.yml +3 -6
- data/lib/install/.fasterer.yml +3 -0
- data/lib/install/.gitattributes +10 -0
- data/lib/install/.github/config.yml +21 -0
- data/lib/install/.rubocop.yml +13 -52
- data/lib/install/Brewfile +0 -3
- data/lib/install/Gemfile.tools +2 -1
- data/lib/install/bin/git-hooks/pre-push +1 -1
- data/lib/install/bin/tools-upgrade +1 -1
- data/lib/jt_tools/version.rb +1 -1
- data/shipit.rubygems.yml +1 -0
- data/template.rb +6 -3
- metadata +8 -3
- data/lib/install/.dependabot/config.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c6965d9827641e6e64d39b8a3053f7a077cba87ff79e37af5c34afa4087cc65
|
4
|
+
data.tar.gz: 31b9c7e18d1953a81122ec5889e393f92671578e751c130d8e12502df06f53b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afd745928b1adfc3eb374255ae8c03c3a38db06c671cc96294ffc283140077bf67bf636ba38306ac7684070aaff1e61797ee2b11290a95f9afbf52b717c9e575
|
7
|
+
data.tar.gz: fdee28522f8bd6e1c4dce57c4ceea250183db2742f303b500a9189adb3537842c27e8e474f5c5367ed215b8ba0732253053f812bedd57a566257fc6a2a48d393
|
data/.gitattributes
ADDED
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/bin/standardrb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'standardrb' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("standard", "standardrb")
|
data/bin/test
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
set -eo pipefail
|
4
4
|
|
5
|
-
echo "
|
5
|
+
echo ""
|
6
|
+
echo "== Yamllint: =="
|
6
7
|
yamllint --config-file lib/install/.yamllint.yml --strict .*/*.yml
|
7
8
|
yamllint --config-file lib/install/.yamllint.yml --strict *.yml
|
8
9
|
yamllint --config-file lib/install/.yamllint.yml --strict lib/**/.*.yml
|
@@ -18,23 +19,27 @@ gem uninstall oj || true
|
|
18
19
|
|
19
20
|
if [[ "$TEST_APP_TEMPLATE" == "true" ]]
|
20
21
|
then
|
21
|
-
rails new test_tmpl --quiet --database postgresql
|
22
|
+
rails new test_tmpl --quiet --database postgresql --skip-webpack-install
|
22
23
|
cd test_tmpl
|
23
|
-
|
24
|
+
bin/setup
|
25
|
+
bin/rails app:template LOCATION="../../template.rb"
|
24
26
|
else
|
25
|
-
rails new test_tmpl --template ../template.rb --quiet --database postgresql
|
27
|
+
rails new test_tmpl --template ../template.rb --quiet --database postgresql --skip-webpack-install
|
26
28
|
cd test_tmpl
|
27
|
-
|
29
|
+
bin/setup
|
28
30
|
fi
|
29
31
|
|
30
|
-
echo "
|
32
|
+
echo ""
|
33
|
+
echo "== Verify CircleCI config =="
|
31
34
|
circleci config validate
|
32
35
|
|
33
|
-
echo "
|
36
|
+
echo ""
|
37
|
+
echo "== Verify installation scripts =="
|
34
38
|
bin/tools-setup
|
35
39
|
bin/tools-upgrade
|
36
40
|
|
37
|
-
echo "
|
41
|
+
echo ""
|
42
|
+
echo "== Verify linters setup =="
|
38
43
|
|
39
44
|
git add .
|
40
45
|
git commit -m 'Initial Commit'
|
@@ -55,7 +60,8 @@ BUNDLE_GEMFILE=Gemfile.tools bin/bundle exec rails_best_practices --without-colo
|
|
55
60
|
|
56
61
|
CIRCLECI=false bin/lint-pr -f text
|
57
62
|
|
58
|
-
echo "
|
63
|
+
echo ""
|
64
|
+
echo "== Run git hooks verifications =="
|
59
65
|
bin/git-hooks/post-merge
|
60
66
|
CIRCLECI=false bin/git-hooks/pre-push
|
61
67
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
version: 2.1
|
8
8
|
|
9
9
|
orbs:
|
10
|
-
ruby: circleci/ruby@1.
|
11
|
-
node: circleci/node@
|
10
|
+
ruby: circleci/ruby@1.1.1
|
11
|
+
node: circleci/node@4.0.0
|
12
12
|
|
13
13
|
workflows:
|
14
14
|
version: 2
|
@@ -80,12 +80,9 @@ jobs:
|
|
80
80
|
- ./vendor/bundle
|
81
81
|
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
82
82
|
|
83
|
-
- node/install:
|
84
|
-
node-version: latest
|
85
83
|
- node/install-packages:
|
86
84
|
app-dir: .
|
87
85
|
pkg-manager: yarn
|
88
|
-
cache-key: yarn.lock
|
89
86
|
cache-version: v1
|
90
87
|
|
91
88
|
- restore_cache:
|
@@ -93,7 +90,7 @@ jobs:
|
|
93
90
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ .Environment.CIRCLE_SHA1 }}
|
94
91
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-
|
95
92
|
- asset-cache-v1-{{ arch }}-{{ .Branch }}-
|
96
|
-
- asset-cache-v1-
|
93
|
+
- asset-cache-v1-{{ arch }}-master-
|
97
94
|
|
98
95
|
- run:
|
99
96
|
name: Precompile Assets
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
version: 2
|
3
|
+
updates:
|
4
|
+
- package-ecosystem: bundler
|
5
|
+
directory: "/"
|
6
|
+
schedule:
|
7
|
+
interval: weekly
|
8
|
+
time: "10:00"
|
9
|
+
open-pull-requests-limit: 3
|
10
|
+
versioning-strategy: lockfile-only
|
11
|
+
allow:
|
12
|
+
- dependency-type: all
|
13
|
+
- package-ecosystem: npm
|
14
|
+
directory: "/"
|
15
|
+
schedule:
|
16
|
+
interval: weekly
|
17
|
+
time: "10:00"
|
18
|
+
open-pull-requests-limit: 3
|
19
|
+
versioning-strategy: lockfile-only
|
20
|
+
allow:
|
21
|
+
- dependency-type: all
|
data/lib/install/.rubocop.yml
CHANGED
@@ -1,63 +1,39 @@
|
|
1
1
|
---
|
2
2
|
require:
|
3
|
-
-
|
3
|
+
- standard
|
4
4
|
- rubocop-rails
|
5
5
|
|
6
|
+
inherit_gem:
|
7
|
+
standard: config/base.yml
|
8
|
+
|
6
9
|
AllCops:
|
7
10
|
TargetRubyVersion: 2.7
|
11
|
+
|
8
12
|
Exclude:
|
9
13
|
- 'db/migrate/**/*'
|
10
14
|
- 'db/schema.rb'
|
15
|
+
- 'vendor/**/*'
|
11
16
|
|
12
|
-
|
17
|
+
Bundler/InsecureProtocolSource:
|
13
18
|
Enabled: true
|
14
|
-
|
19
|
+
Include:
|
20
|
+
- '**/*.gemfile'
|
21
|
+
- '**/Gemfile'
|
22
|
+
- '**/Gemfile.tools'
|
23
|
+
- '**/gems.rb'
|
15
24
|
|
16
25
|
Layout/EmptyLinesAroundAttributeAccessor:
|
17
26
|
Enabled: true
|
18
27
|
|
19
|
-
Layout/EmptyLinesAroundBlockBody:
|
20
|
-
Exclude:
|
21
|
-
- 'db/schema.rb'
|
22
|
-
|
23
|
-
Layout/FirstHashElementIndentation:
|
24
|
-
EnforcedStyle: consistent
|
25
|
-
|
26
|
-
Layout/HashAlignment:
|
27
|
-
EnforcedHashRocketStyle: table
|
28
|
-
EnforcedColonStyle: table
|
29
|
-
EnforcedLastArgumentHashStyle: always_inspect
|
30
|
-
|
31
28
|
Layout/LineLength:
|
32
29
|
Max: 113
|
33
30
|
|
34
31
|
Layout/MultilineMethodArgumentLineBreaks:
|
35
32
|
Enabled: true
|
36
33
|
|
37
|
-
Layout/MultilineMethodCallBraceLayout:
|
38
|
-
EnforcedStyle: symmetrical
|
39
|
-
|
40
|
-
Layout/MultilineMethodCallIndentation:
|
41
|
-
EnforcedStyle: indented
|
42
|
-
|
43
|
-
Layout/MultilineOperationIndentation:
|
44
|
-
EnforcedStyle: indented
|
45
|
-
|
46
|
-
Layout/ParameterAlignment:
|
47
|
-
EnforcedStyle: with_fixed_indentation
|
48
|
-
|
49
|
-
Layout/SpaceAroundMethodCallOperator:
|
50
|
-
Enabled: true
|
51
|
-
|
52
34
|
Layout/SpaceInLambdaLiteral:
|
53
35
|
EnforcedStyle: require_space
|
54
36
|
|
55
|
-
Lint/DeprecatedOpenSSLConstant:
|
56
|
-
Enabled: true
|
57
|
-
|
58
|
-
Lint/RaiseException:
|
59
|
-
Enabled: true
|
60
|
-
|
61
37
|
Lint/StructNewOverride:
|
62
38
|
Enabled: true
|
63
39
|
|
@@ -109,31 +85,16 @@ Style/HashTransformKeys:
|
|
109
85
|
Style/HashTransformValues:
|
110
86
|
Enabled: true
|
111
87
|
|
112
|
-
Style/SafeNavigation:
|
113
|
-
Enabled: false
|
114
|
-
|
115
88
|
Style/SlicingWithRange:
|
116
89
|
Enabled: true
|
117
90
|
|
118
|
-
Style/StabbyLambdaParentheses:
|
119
|
-
EnforcedStyle: require_no_parentheses
|
120
|
-
|
121
|
-
Style/StringLiterals:
|
122
|
-
Enabled: true
|
123
|
-
EnforcedStyle: double_quotes
|
124
|
-
Exclude:
|
125
|
-
- 'db/schema.rb'
|
126
|
-
|
127
|
-
Style/TrailingCommaInHashLiteral:
|
128
|
-
EnforcedStyleForMultiline: consistent_comma
|
129
|
-
|
130
91
|
# Rails
|
131
92
|
|
132
93
|
Rails:
|
133
94
|
Enabled: true
|
134
95
|
|
135
96
|
Rails/SkipsModelValidations:
|
136
|
-
|
97
|
+
Enabled: false
|
137
98
|
|
138
99
|
Rails/UnknownEnv:
|
139
100
|
Environments:
|
data/lib/install/Brewfile
CHANGED
data/lib/install/Gemfile.tools
CHANGED
@@ -18,10 +18,11 @@ group :tools do
|
|
18
18
|
gem 'pronto-rails_best_practices', require: false
|
19
19
|
gem 'pronto-reek', require: false
|
20
20
|
gem 'pronto-rubocop', require: false
|
21
|
+
# gem 'pronto-standardrb', require: false
|
21
22
|
gem 'pronto-yamllint', require: false
|
22
23
|
|
23
24
|
# gem 'rubocop-minitest', require: false
|
24
|
-
gem 'rubocop-performance', require: false
|
25
25
|
gem 'rubocop-rails', require: false
|
26
26
|
# gem 'rubocop-rspec', require: false
|
27
|
+
gem 'standard', '>= 0.4.7', require: false
|
27
28
|
end
|
data/lib/jt_tools/version.rb
CHANGED
data/shipit.rubygems.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# use defaults
|
data/template.rb
CHANGED
@@ -102,7 +102,9 @@ def add_template_repository_to_source_path
|
|
102
102
|
"parallelize(workers: :number_of_processors) unless ENV['COVERAGE']"
|
103
103
|
end
|
104
104
|
|
105
|
-
|
105
|
+
say "=> Copying git configuration"
|
106
|
+
directory "lib/install/.github", ".github"
|
107
|
+
copy_file "lib/install/.gitattributes", ".gitattributes"
|
106
108
|
|
107
109
|
say "=> Copying heroku configuration"
|
108
110
|
copy_file "lib/install/app.json", "app.json"
|
@@ -122,6 +124,7 @@ def add_template_repository_to_source_path
|
|
122
124
|
say "=> Generate binstubs for linters"
|
123
125
|
run "BUNDLE_GEMFILE=Gemfile.tools bundle binstub --force pronto"
|
124
126
|
run "BUNDLE_GEMFILE=Gemfile.tools bundle binstub --force rubocop"
|
127
|
+
run "BUNDLE_GEMFILE=Gemfile.tools bundle binstub --force standard"
|
125
128
|
end
|
126
129
|
|
127
130
|
say "=> Set git hooks"
|
@@ -181,12 +184,12 @@ def add_template_repository_to_source_path
|
|
181
184
|
run "bundle"
|
182
185
|
end
|
183
186
|
|
184
|
-
uncomment_lines
|
187
|
+
uncomment_lines "bin/setup", /system\(.*?\\byarn\b/
|
185
188
|
|
186
189
|
insert_into_file(
|
187
190
|
"bin/setup",
|
188
191
|
"system!('bin/tools-setup')\n",
|
189
|
-
after: "system
|
192
|
+
after: "system!('bin/yarn')\n"
|
190
193
|
)
|
191
194
|
|
192
195
|
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.14
|
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-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -32,6 +32,7 @@ extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- ".circleci/config.yml"
|
35
|
+
- ".gitattributes"
|
35
36
|
- ".github/FUNDING.yml"
|
36
37
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
37
38
|
- ".github/ISSUE_TEMPLATE/custom.md"
|
@@ -44,14 +45,17 @@ files:
|
|
44
45
|
- README.md
|
45
46
|
- Rakefile
|
46
47
|
- _config.yml
|
48
|
+
- bin/standardrb
|
47
49
|
- bin/test
|
48
50
|
- jt_tools.gemspec
|
49
51
|
- lib/install/.better-html.yml
|
50
52
|
- lib/install/.circleci/config.yml
|
51
|
-
- lib/install/.dependabot/config.yml
|
52
53
|
- lib/install/.editorconfig
|
53
54
|
- lib/install/.erb-lint.yml
|
54
55
|
- lib/install/.eslintrc.js
|
56
|
+
- lib/install/.fasterer.yml
|
57
|
+
- lib/install/.gitattributes
|
58
|
+
- lib/install/.github/config.yml
|
55
59
|
- lib/install/.pronto.yml
|
56
60
|
- lib/install/.pronto_eslint_npm.yml
|
57
61
|
- lib/install/.reek.yml
|
@@ -77,6 +81,7 @@ files:
|
|
77
81
|
- lib/jt_tools/version.rb
|
78
82
|
- lib/tasks/install.rake
|
79
83
|
- rejuvenation.rb
|
84
|
+
- shipit.rubygems.yml
|
80
85
|
- template.rb
|
81
86
|
homepage: https://jtway.co
|
82
87
|
licenses:
|
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
version: 1
|
3
|
-
update_configs:
|
4
|
-
# Keep package.json (& lockfiles) up to date as soon as
|
5
|
-
# new versions are published to the npm registry
|
6
|
-
- package_manager: javascript
|
7
|
-
directory: /
|
8
|
-
update_schedule: weekly
|
9
|
-
allowed_updates:
|
10
|
-
- match:
|
11
|
-
dependency_type: development
|
12
|
-
update_type: all
|
13
|
-
- match:
|
14
|
-
dependency_type: production
|
15
|
-
update_type: security
|
16
|
-
version_requirement_updates: 'off'
|
17
|
-
- package_manager: ruby:bundler
|
18
|
-
directory: /
|
19
|
-
update_schedule: weekly
|
20
|
-
allowed_updates:
|
21
|
-
- match:
|
22
|
-
dependency_type: all
|
23
|
-
update_type: all
|
24
|
-
automerged_updates:
|
25
|
-
- match:
|
26
|
-
dependency_name: puma
|
27
|
-
update_type: semver:minor
|
28
|
-
- match:
|
29
|
-
dependency_name: rspec*
|
30
|
-
- match:
|
31
|
-
dependency_name: capybara*
|
32
|
-
version_requirement_updates: 'off'
|