caliber 0.25.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +51 -22
- data/caliber.gemspec +7 -6
- data/config/all.yml +1 -0
- data/config/capybara.yml +12 -0
- data/config/rspec.yml +0 -10
- data/config/ruby.yml +5 -0
- data/lib/caliber.rb +0 -2
- data.tar.gz.sig +0 -0
- metadata +25 -10
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6669e21aed8916e97741e3ab0be0723e0679ebfc43bbb2a43acea8e32c9b633
|
4
|
+
data.tar.gz: 867c3ab7a205e84e183dfc459eed321c0f699a7709d959babdabdc5430120e79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6817a3fd9c2eb19aa1b598c946588d6e681ed6c941a086979eb5b0057976846614d84e6e45a3f0e36c5d3a2ea4d6a0b5ce5242a6ff367a8560d54b72eb8c5a2
|
7
|
+
data.tar.gz: 160adc4ed1fa40c9f1e79333e348f8c158954e2699f3aef7c158b71eacaa9b40fdfdae90b6cad2d13e9b2f19cafeca78e382f50c2c741a8ded4d31bdde757b3e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
:figure-caption!:
|
4
4
|
|
5
5
|
:rubocop_link: link:https://docs.rubocop.org/rubocop[RuboCop]
|
6
|
+
:rubocop_capybara_link: link:https://docs.rubocop.org/rubocop-capybara[RuboCop Capybara]
|
6
7
|
:rubocop_performance_link: link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
|
7
|
-
:
|
8
|
+
:rubocop_thread_safety_link: link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
|
8
9
|
:rubocop_rake_link: link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
|
9
10
|
:rubocop_rspec_link: link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
|
10
11
|
|
@@ -13,7 +14,7 @@
|
|
13
14
|
This gem provides global link:https://docs.rubocop.org/rubocop[RuboCop] configurations for ensuring
|
14
15
|
high quality _and_ consistent software development practices.
|
15
16
|
|
16
|
-
_Due to the ever changing nature of the RuboCop ecosystem -- and the fact that it's very easy to fall behind quickly -- this gem takes an aggressive approach to staying up to date with latest changes within the RuboCop community. This also means this gem will probably never reach 1.0.0
|
17
|
+
_Due to the ever changing nature of the RuboCop ecosystem -- and the fact that it's very easy to fall behind quickly -- this gem takes an aggressive approach to staying up to date with latest changes within the RuboCop community. This also means this gem will probably never reach Version 1.0.0 because new changes are being introduced in each minor release. That said, if you always want to be on top of recent changes -- *because you know how costly technical debt is* -- then this gem has you covered. 🎉_
|
17
18
|
|
18
19
|
toc::[]
|
19
20
|
|
@@ -21,8 +22,9 @@ toc::[]
|
|
21
22
|
|
22
23
|
* Provides a global configuration for the following code quality gems:
|
23
24
|
** {rubocop_link}
|
25
|
+
** {rubocop_capybara_link}
|
24
26
|
** {rubocop_performance_link}
|
25
|
-
** {
|
27
|
+
** {rubocop_thread_safety_link}
|
26
28
|
** {rubocop_rake_link}
|
27
29
|
** {rubocop_rspec_link}
|
28
30
|
|
@@ -72,6 +74,7 @@ You can customize the gem by specifiying what you need:
|
|
72
74
|
inherit_gem:
|
73
75
|
caliber:
|
74
76
|
- config/ruby.yml
|
77
|
+
- config/capybara.yml
|
75
78
|
- config/performance.yml
|
76
79
|
- config/thread.yml
|
77
80
|
- config/rake.yml
|
@@ -93,13 +96,17 @@ inherit_gem:
|
|
93
96
|
|
94
97
|
The above will require and load the configurations for following gems:
|
95
98
|
|
99
|
+
* {rubocop_link}
|
100
|
+
* {rubocop_capybara_link}
|
96
101
|
* {rubocop_performance_link}
|
97
|
-
* {
|
102
|
+
* {rubocop_thread_safety_link}
|
98
103
|
* {rubocop_rake_link}
|
99
104
|
* {rubocop_rspec_link}
|
100
105
|
|
101
106
|
When you don't use the default `all.yml` configuration, then behavior changes as follows:
|
102
107
|
|
108
|
+
*Ruby*
|
109
|
+
|
103
110
|
[source,yaml]
|
104
111
|
----
|
105
112
|
inherit_gem:
|
@@ -107,8 +114,20 @@ inherit_gem:
|
|
107
114
|
- config/ruby.yml
|
108
115
|
----
|
109
116
|
|
110
|
-
The above will only load the
|
111
|
-
|
117
|
+
The above will only load the {rubocop_link} Ruby configuration. No further requirements are necessary since Caliber already requires the RuboCop gem by default.
|
118
|
+
|
119
|
+
*Capybara*
|
120
|
+
|
121
|
+
[source,yaml]
|
122
|
+
----
|
123
|
+
inherit_gem:
|
124
|
+
caliber:
|
125
|
+
- config/capybara.yml
|
126
|
+
----
|
127
|
+
|
128
|
+
The above will only require the {rubocop_capybara_link} gem _and_ load the associated configuration.
|
129
|
+
|
130
|
+
*Performance*
|
112
131
|
|
113
132
|
[source,yaml]
|
114
133
|
----
|
@@ -117,7 +136,9 @@ inherit_gem:
|
|
117
136
|
- config/peformance.yml
|
118
137
|
----
|
119
138
|
|
120
|
-
The above will only require the
|
139
|
+
The above will only require the {rubocop_performance_link} gem _and_ load the associated configuration.
|
140
|
+
|
141
|
+
*Thread Safety*
|
121
142
|
|
122
143
|
[source,yaml]
|
123
144
|
----
|
@@ -126,7 +147,9 @@ inherit_gem:
|
|
126
147
|
- config/thread.yml
|
127
148
|
----
|
128
149
|
|
129
|
-
The above will only require the
|
150
|
+
The above will only require the {rubocop_thread_safety_link} gem _and_ load the associated configuration.
|
151
|
+
|
152
|
+
*Rake*
|
130
153
|
|
131
154
|
[source,yaml]
|
132
155
|
----
|
@@ -135,7 +158,9 @@ inherit_gem:
|
|
135
158
|
- config/rake.yml
|
136
159
|
----
|
137
160
|
|
138
|
-
The above will only require the
|
161
|
+
The above will only require the {rubocop_rake_link} gem _and_ load the associated configuration.
|
162
|
+
|
163
|
+
*RSpec*
|
139
164
|
|
140
165
|
[source,yaml]
|
141
166
|
----
|
@@ -144,7 +169,7 @@ inherit_gem:
|
|
144
169
|
- config/rspec.yml
|
145
170
|
----
|
146
171
|
|
147
|
-
The above will only require the
|
172
|
+
The above will only require the {rubocop_rspec_link} gem _and_ load the associated configuration.
|
148
173
|
|
149
174
|
=== Inheritance
|
150
175
|
|
@@ -164,6 +189,7 @@ If importing all configurations from `all.yml` is too much -- and much like you
|
|
164
189
|
----
|
165
190
|
inherit_from:
|
166
191
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/ruby.yml
|
192
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/capybara.yml
|
167
193
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/performance.yml
|
168
194
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/thread.yml
|
169
195
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rake.yml
|
@@ -175,8 +201,9 @@ You can also target a specific version of this gem by swapping out the `main` pa
|
|
175
201
|
Lastly, when using this YAML import approach, you'll not benefit from having all gems you need required and installed for you. So you'll need to manually require these gems in your `Gemfile`:
|
176
202
|
|
177
203
|
* {rubocop_link}
|
204
|
+
* {rubocop_capybara_link}
|
178
205
|
* {rubocop_performance_link}
|
179
|
-
* {
|
206
|
+
* {rubocop_thread_safety_link}
|
180
207
|
* {rubocop_rake_link}
|
181
208
|
* {rubocop_rspec_link}
|
182
209
|
|
@@ -186,11 +213,11 @@ In situations where you'd like to use Caliber alongside additional RuboCop gems,
|
|
186
213
|
|
187
214
|
[source,yaml]
|
188
215
|
----
|
189
|
-
require:
|
190
|
-
- rubocop-md
|
191
|
-
|
192
216
|
inherit_gem:
|
193
217
|
caliber: config/all.yml
|
218
|
+
|
219
|
+
require:
|
220
|
+
- rubocop-md
|
194
221
|
----
|
195
222
|
|
196
223
|
Adding additional RuboCop gems only requires adding them to your YAML configuration.
|
@@ -224,6 +251,7 @@ When both RuboCop and Caliber are in sync, the following will be output:
|
|
224
251
|
|
225
252
|
....
|
226
253
|
RUBY: ✓
|
254
|
+
CAPYBARA: ✓
|
227
255
|
PERFORMANCE: ✓
|
228
256
|
THREAD: ✓
|
229
257
|
RAKE: ✓
|
@@ -237,6 +265,7 @@ as an example:
|
|
237
265
|
RUBY:
|
238
266
|
* Lint/BinaryOperatorWithIdenticalOperands
|
239
267
|
* Lint/ConstantDefinitionInBlock
|
268
|
+
CAPYBARA: ✓
|
240
269
|
PERFORMANCE: ✓
|
241
270
|
THREAD: ✓
|
242
271
|
RAKE: ✓
|
@@ -255,19 +284,19 @@ To test, run:
|
|
255
284
|
bin/rake
|
256
285
|
----
|
257
286
|
|
258
|
-
== link:https://
|
287
|
+
== link:https://alchemists.io/policies/license[License]
|
259
288
|
|
260
|
-
== link:https://
|
289
|
+
== link:https://alchemists.io/policies/security[Security]
|
261
290
|
|
262
|
-
== link:https://
|
291
|
+
== link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
|
263
292
|
|
264
|
-
== link:https://
|
293
|
+
== link:https://alchemists.io/policies/contributions[Contributions]
|
265
294
|
|
266
|
-
== link:https://
|
295
|
+
== link:https://alchemists.io/projects/caliber/versions[Versions]
|
267
296
|
|
268
|
-
== link:https://
|
297
|
+
== link:https://alchemists.io/community[Community]
|
269
298
|
|
270
299
|
== Credits
|
271
300
|
|
272
|
-
* Built with link:https://
|
273
|
-
* Engineered by link:https://
|
301
|
+
* Built with link:https://alchemists.io/projects/gemsmith[Gemsmith].
|
302
|
+
* Engineered by link:https://alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
data/caliber.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "caliber"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.27.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
|
-
spec.homepage = "https://
|
8
|
+
spec.homepage = "https://alchemists.io/projects/caliber"
|
9
9
|
spec.summary = "Provides a high quality style guide and configuration for your projects."
|
10
10
|
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/caliber/issues",
|
14
|
-
"changelog_uri" => "https://
|
15
|
-
"documentation_uri" => "https://
|
14
|
+
"changelog_uri" => "https://alchemists.io/projects/caliber/versions",
|
15
|
+
"documentation_uri" => "https://alchemists.io/projects/caliber",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Caliber",
|
18
18
|
"rubygems_mfa_required" => "true",
|
@@ -23,8 +23,9 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.2"
|
26
|
-
spec.add_dependency "rubocop", "~> 1.
|
27
|
-
spec.add_dependency "rubocop-
|
26
|
+
spec.add_dependency "rubocop", "~> 1.47"
|
27
|
+
spec.add_dependency "rubocop-capybara", "~> 2.17"
|
28
|
+
spec.add_dependency "rubocop-performance", "~> 1.16"
|
28
29
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
29
30
|
spec.add_dependency "rubocop-rspec", "~> 2.18"
|
30
31
|
spec.add_dependency "rubocop-thread_safety", "~> 0.4"
|
data/config/all.yml
CHANGED
data/config/capybara.yml
ADDED
data/config/rspec.yml
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
|
-
Capybara/MatchStyle:
|
4
|
-
Enabled: true
|
5
|
-
Capybara/NegationMatcher:
|
6
|
-
Enabled: true
|
7
|
-
Capybara/SpecificActions:
|
8
|
-
Enabled: true
|
9
|
-
Capybara/SpecificFinders:
|
10
|
-
Enabled: true
|
11
|
-
Capybara/SpecificMatcher:
|
12
|
-
Enabled: true
|
13
3
|
RSpec/BeEq:
|
14
4
|
Enabled: true
|
15
5
|
RSpec/BeNil:
|
data/config/ruby.yml
CHANGED
@@ -166,6 +166,9 @@ Metrics/BlockLength:
|
|
166
166
|
- refine
|
167
167
|
- Dry::Schema.JSON
|
168
168
|
- Dry::Schema.Params
|
169
|
+
Metrics/CollectionLiteralLength:
|
170
|
+
Enabled: true
|
171
|
+
LengthThreshold: 25
|
169
172
|
Metrics/ParameterLists:
|
170
173
|
Max: 3
|
171
174
|
Naming/BlockForwarding:
|
@@ -327,6 +330,8 @@ Style/RedundantDoubleSplatHashBraces:
|
|
327
330
|
Enabled: true
|
328
331
|
Style/RedundantEach:
|
329
332
|
Enabled: true
|
333
|
+
Style/RedundantHeredocDelimiterQuotes:
|
334
|
+
Enabled: true
|
330
335
|
Style/RedundantSelfAssignmentBranch:
|
331
336
|
Enabled: true
|
332
337
|
Style/RedundantStringEscape:
|
data/lib/caliber.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caliber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-01
|
31
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rubocop
|
@@ -36,28 +36,42 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.47'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.47'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rubocop-capybara
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '2.17'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.17'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: rubocop-performance
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
50
64
|
requirements:
|
51
65
|
- - "~>"
|
52
66
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
67
|
+
version: '1.16'
|
54
68
|
type: :runtime
|
55
69
|
prerelease: false
|
56
70
|
version_requirements: !ruby/object:Gem::Requirement
|
57
71
|
requirements:
|
58
72
|
- - "~>"
|
59
73
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
74
|
+
version: '1.16'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: rubocop-rake
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,19 +127,20 @@ files:
|
|
113
127
|
- README.adoc
|
114
128
|
- caliber.gemspec
|
115
129
|
- config/all.yml
|
130
|
+
- config/capybara.yml
|
116
131
|
- config/performance.yml
|
117
132
|
- config/rake.yml
|
118
133
|
- config/rspec.yml
|
119
134
|
- config/ruby.yml
|
120
135
|
- config/thread.yml
|
121
136
|
- lib/caliber.rb
|
122
|
-
homepage: https://
|
137
|
+
homepage: https://alchemists.io/projects/caliber
|
123
138
|
licenses:
|
124
139
|
- Hippocratic-2.1
|
125
140
|
metadata:
|
126
141
|
bug_tracker_uri: https://github.com/bkuhlmann/caliber/issues
|
127
|
-
changelog_uri: https://
|
128
|
-
documentation_uri: https://
|
142
|
+
changelog_uri: https://alchemists.io/projects/caliber/versions
|
143
|
+
documentation_uri: https://alchemists.io/projects/caliber
|
129
144
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
130
145
|
label: Caliber
|
131
146
|
rubygems_mfa_required: 'true'
|
@@ -145,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
160
|
- !ruby/object:Gem::Version
|
146
161
|
version: '0'
|
147
162
|
requirements: []
|
148
|
-
rubygems_version: 3.4.
|
163
|
+
rubygems_version: 3.4.7
|
149
164
|
signing_key:
|
150
165
|
specification_version: 4
|
151
166
|
summary: Provides a high quality style guide and configuration for your projects.
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
H�i�I�@�%���$��L�xzӻt�X�,ɍuh|2��;�pQ�Z�{��0j�A����!���v�ʉ����ɀ�`�OП�t���=�/�V�>9�b�W�ī'��LD>�<It{?/,5�K��W���uZ��~��ٍ��Se�A�g�I^NKԸa���@�|��M=T@w�i'syt��M���{��-�9t�zRl�OVc���ys�k鳵+`
|