caliber 0.26.0 → 0.28.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 +6 -10
- data/config/ruby.yml +7 -0
- data.tar.gz.sig +0 -0
- metadata +25 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '049bafee397eae3e21347b5b4e7d0c17c4424dd6a9f9a79088852e3c62d31a8c'
|
4
|
+
data.tar.gz: 0f9453b46c4d7989436bece6abfa001fcb2a8ccbd97fb2fc3008efd6a01c9c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cef9d238f67c109ac074d5fc495a7509b5f5e61ccbcb794b4aad2c1517d9a5e9110dbfa9ffd17dd23a820903f69a0eaf2910a099be2c330e8dc4ff3a55a35e12
|
7
|
+
data.tar.gz: 0fe42bff08cb72a2b75ff56b57c6ed2c2fffb879fbe43568be9c69dff45bfba673049f7c408e1d202d1ca0c24e20440900c1ea2c313775abf1eafa0555f63342
|
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.28.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,10 +23,11 @@ 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.
|
26
|
+
spec.add_dependency "rubocop", "~> 1.48"
|
27
|
+
spec.add_dependency "rubocop-capybara", "~> 2.17"
|
27
28
|
spec.add_dependency "rubocop-performance", "~> 1.16"
|
28
29
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
29
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
30
|
+
spec.add_dependency "rubocop-rspec", "~> 2.19"
|
30
31
|
spec.add_dependency "rubocop-thread_safety", "~> 0.4"
|
31
32
|
|
32
33
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
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:
|
@@ -73,6 +63,8 @@ RSpec/NoExpectationExample:
|
|
73
63
|
Enabled: true
|
74
64
|
RSpec/PendingWithoutReason:
|
75
65
|
Enabled: true
|
66
|
+
RSpec/RedundantAround:
|
67
|
+
Enabled: true
|
76
68
|
RSpec/Rails/AvoidSetupHook:
|
77
69
|
Enabled: true
|
78
70
|
RSpec/Rails/HaveHttpStatus:
|
@@ -81,6 +73,10 @@ RSpec/Rails/InferredSpecType:
|
|
81
73
|
Enabled: true
|
82
74
|
RSpec/Rails/MinitestAssertions:
|
83
75
|
Enabled: true
|
76
|
+
RSpec/Rails/TravelAround:
|
77
|
+
Enabled: true
|
78
|
+
RSpec/SkipBlockInsideExample:
|
79
|
+
Enabled: true
|
84
80
|
RSpec/SortMetadata:
|
85
81
|
Enabled: true
|
86
82
|
RSpec/SubjectDeclaration:
|
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:
|
@@ -218,6 +221,8 @@ Style/ComparableClamp:
|
|
218
221
|
Enabled: true
|
219
222
|
Style/ConcatArrayLiterals:
|
220
223
|
Enabled: true
|
224
|
+
Style/DirEmpty:
|
225
|
+
Enabled: true
|
221
226
|
Style/Documentation:
|
222
227
|
Enabled: false
|
223
228
|
Style/DocumentDynamicEvalDefinition:
|
@@ -238,6 +243,8 @@ Style/ExplicitBlockArgument:
|
|
238
243
|
Enabled: false
|
239
244
|
Style/FetchEnvVar:
|
240
245
|
Enabled: true
|
246
|
+
Style/FileEmpty:
|
247
|
+
Enabled: true
|
241
248
|
Style/FileRead:
|
242
249
|
Enabled: true
|
243
250
|
Style/FileWrite:
|
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.28.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-
|
31
|
+
date: 2023-03-06 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rubocop
|
@@ -36,14 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.48'
|
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.48'
|
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
|
@@ -78,14 +92,14 @@ dependencies:
|
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
95
|
+
version: '2.19'
|
82
96
|
type: :runtime
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
100
|
- - "~>"
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
102
|
+
version: '2.19'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: rubocop-thread_safety
|
91
105
|
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
Binary file
|