caliber 0.4.0 → 0.6.0
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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +31 -0
- data/caliber.gemspec +3 -4
- data/config/rspec.yml +3 -2
- data/config/ruby.yml +2 -89
- data.tar.gz.sig +0 -0
- metadata +7 -21
- 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: 504dde6cca7bfabf6f042433ddf6f017edbb418d3c5905cab53da18815ad8754
|
4
|
+
data.tar.gz: f55d4ce9d0b9b1abf590bbc5d995c30aa62da2b345e3d485c8dc12c79ce33eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3651d14999c2f6e970c901be0d10ae1abeb59909b2ae83eabee9b94e123562bdc996d25485148f534d555b66d1a50d7a3621311b5385591fb6c7b9a7b1d2d3be
|
7
|
+
data.tar.gz: bc2a99656fb0713ef96a6fa7fad987beb9f3184e711063ec99cd4a0655644df4339bea2af6a25faf358def873ee7030c7123854e5e3e54d586533e19acdb49d4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -148,6 +148,37 @@ You can also use the IRB console for direct access to all objects:
|
|
148
148
|
bin/console
|
149
149
|
----
|
150
150
|
|
151
|
+
=== Check
|
152
|
+
|
153
|
+
Use the `bin/check` script -- when upgrading to newer RuboCop gem dependencies -- to check if
|
154
|
+
duplicate configurations exist. This ensures Caliber configurations don't duplicate effort provided
|
155
|
+
by RuboCop. The script _only identifies duplicate Caliber configurations which are enabled and have
|
156
|
+
no other settings_.
|
157
|
+
|
158
|
+
When both RuboCop and Caliber are in sync, the following will be output:
|
159
|
+
|
160
|
+
....
|
161
|
+
RUBY: ✓
|
162
|
+
PERFORMANCE: ✓
|
163
|
+
RAKE: ✓
|
164
|
+
RSPEC: ✓
|
165
|
+
....
|
166
|
+
|
167
|
+
When RuboCop has finally enabled cops that Caliber already has enabled, the following will display
|
168
|
+
as an example:
|
169
|
+
|
170
|
+
....
|
171
|
+
RUBY:
|
172
|
+
* Lint/BinaryOperatorWithIdenticalOperands
|
173
|
+
* Lint/ConstantDefinitionInBlock
|
174
|
+
PERFORMANCE: ✓
|
175
|
+
RAKE: ✓
|
176
|
+
RSPEC:
|
177
|
+
* RSpec/StubbedMock
|
178
|
+
....
|
179
|
+
|
180
|
+
The above can then be used as a checklist to remove from Caliber.
|
181
|
+
|
151
182
|
== Tests
|
152
183
|
|
153
184
|
To test, run:
|
data/caliber.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "caliber"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.6.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/caliber"
|
@@ -22,11 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.cert_chain = [Gem.default_cert_path]
|
23
23
|
|
24
24
|
spec.required_ruby_version = "~> 3.1"
|
25
|
-
spec.add_dependency "
|
26
|
-
spec.add_dependency "rubocop", "~> 1.26"
|
25
|
+
spec.add_dependency "rubocop", "~> 1.27"
|
27
26
|
spec.add_dependency "rubocop-performance", "~> 1.13"
|
28
27
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
29
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
28
|
+
spec.add_dependency "rubocop-rspec", "~> 2.10"
|
30
29
|
|
31
30
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
32
31
|
spec.files = Dir["*.gemspec", "config/**/*", "lib/**/*"]
|
data/config/rspec.yml
CHANGED
@@ -4,6 +4,7 @@ RSpec/BeEq:
|
|
4
4
|
Enabled: true
|
5
5
|
RSpec/BeNil:
|
6
6
|
Enabled: true
|
7
|
+
EnforcedStyle: be
|
7
8
|
RSpec/ContextWording:
|
8
9
|
Prefixes:
|
9
10
|
- when
|
@@ -45,7 +46,7 @@ RSpec/NamedSubject:
|
|
45
46
|
IgnoreSharedExamples: false
|
46
47
|
RSpec/Rails/AvoidSetupHook:
|
47
48
|
Enabled: true
|
48
|
-
RSpec/StubbedMock:
|
49
|
-
Enabled: true
|
50
49
|
RSpec/SubjectDeclaration:
|
51
50
|
Enabled: true
|
51
|
+
RSpec/VerifiedDoubleReference:
|
52
|
+
Enabled: true
|
data/config/ruby.yml
CHANGED
@@ -75,8 +75,6 @@ Layout/RedundantLineBreak:
|
|
75
75
|
InspectBlocks: true
|
76
76
|
Layout/SingleLineBlockChain:
|
77
77
|
Enabled: true
|
78
|
-
Layout/SpaceAroundMethodCallOperator:
|
79
|
-
Enabled: true
|
80
78
|
Layout/SpaceBeforeBrackets:
|
81
79
|
Enabled: true
|
82
80
|
Layout/SpaceInsideHashLiteralBraces:
|
@@ -89,24 +87,12 @@ Lint/AmbiguousOperatorPrecedence:
|
|
89
87
|
Enabled: true
|
90
88
|
Lint/AmbiguousRange:
|
91
89
|
Enabled: true
|
92
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
93
|
-
Enabled: true
|
94
|
-
Lint/ConstantDefinitionInBlock:
|
95
|
-
Enabled: true
|
96
90
|
Lint/DeprecatedConstants:
|
97
91
|
Enabled: true
|
98
|
-
Lint/DeprecatedOpenSSLConstant:
|
99
|
-
Enabled: true
|
100
92
|
Lint/DuplicateBranch:
|
101
93
|
Enabled: true
|
102
|
-
Lint/DuplicateElsifCondition:
|
103
|
-
Enabled: true
|
104
94
|
Lint/DuplicateRegexpCharacterClassElement:
|
105
95
|
Enabled: true
|
106
|
-
Lint/DuplicateRescueException:
|
107
|
-
Enabled: true
|
108
|
-
Lint/DuplicateRequire:
|
109
|
-
Enabled: true
|
110
96
|
Lint/ElseLayout:
|
111
97
|
Enabled: false
|
112
98
|
Lint/EmptyBlock:
|
@@ -115,8 +101,6 @@ Lint/EmptyBlock:
|
|
115
101
|
AllowEmptyLambdas: false
|
116
102
|
Lint/EmptyClass:
|
117
103
|
Enabled: true
|
118
|
-
Lint/EmptyConditionalBody:
|
119
|
-
Enabled: true
|
120
104
|
Lint/EmptyFile:
|
121
105
|
Enabled: true
|
122
106
|
AllowComments: false
|
@@ -125,63 +109,34 @@ Lint/EmptyInPattern:
|
|
125
109
|
AllowComments: false
|
126
110
|
Lint/EmptyWhen:
|
127
111
|
AllowComments: false
|
128
|
-
Lint/FloatComparison:
|
129
|
-
Enabled: true
|
130
|
-
Lint/HashCompareByIdentity:
|
131
|
-
Enabled: true
|
132
|
-
Lint/IdentityComparison:
|
133
|
-
Enabled: true
|
134
112
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
135
113
|
Enabled: true
|
136
114
|
Lint/LambdaWithoutLiteralBlock:
|
137
115
|
Enabled: true
|
138
|
-
Lint/MissingSuper:
|
139
|
-
Enabled: true
|
140
|
-
Lint/MixedRegexpCaptureTypes:
|
141
|
-
Enabled: true
|
142
116
|
Lint/NoReturnInBeginEndBlocks:
|
143
117
|
Enabled: true
|
144
118
|
Lint/NumberedParameterAssignment:
|
145
119
|
Enabled: true
|
146
120
|
Lint/OrAssignmentToConstant:
|
147
121
|
Enabled: true
|
148
|
-
Lint/RaiseException:
|
149
|
-
Enabled: true
|
150
122
|
Lint/RedundantDirGlobSort:
|
151
123
|
Enabled: true
|
152
|
-
Lint/
|
124
|
+
Lint/RefinementImportMethods:
|
153
125
|
Enabled: true
|
154
126
|
Lint/RequireRelativeSelfPath:
|
155
127
|
Enabled: true
|
156
|
-
Lint/SelfAssignment:
|
157
|
-
Enabled: true
|
158
|
-
Lint/StructNewOverride:
|
159
|
-
Enabled: true
|
160
128
|
Lint/SymbolConversion:
|
161
129
|
Enabled: true
|
162
130
|
Lint/ToEnumArguments:
|
163
131
|
Enabled: true
|
164
|
-
Lint/TopLevelReturnWithArgument:
|
165
|
-
Enabled: true
|
166
|
-
Lint/TrailingCommaInAttributeDeclaration:
|
167
|
-
Enabled: true
|
168
132
|
Lint/TripleQuotes:
|
169
133
|
Enabled: true
|
170
|
-
Lint/OutOfRangeRegexpRef:
|
171
|
-
Enabled: true
|
172
134
|
Lint/UnexpectedBlockArity:
|
173
135
|
Enabled: true
|
174
136
|
Lint/UnmodifiedReduceAccumulator:
|
175
137
|
Enabled: true
|
176
|
-
Lint/UnreachableLoop:
|
177
|
-
Enabled: true
|
178
|
-
Lint/UselessMethodDefinition:
|
179
|
-
Enabled: true
|
180
|
-
AllowComments: false
|
181
138
|
Lint/UselessRuby2Keywords:
|
182
139
|
Enabled: true
|
183
|
-
Lint/UselessTimes:
|
184
|
-
Enabled: true
|
185
140
|
Metrics/BlockLength:
|
186
141
|
IgnoredMethods:
|
187
142
|
- ips
|
@@ -219,8 +174,6 @@ Naming/MethodParameterName:
|
|
219
174
|
AllowNamesEndingInNumbers: false
|
220
175
|
Security/IoMethods:
|
221
176
|
Enabled: true
|
222
|
-
Style/AccessorGrouping:
|
223
|
-
Enabled: true
|
224
177
|
Style/ArgumentsForwarding:
|
225
178
|
Enabled: false
|
226
179
|
Style/ArrayCoercion:
|
@@ -229,16 +182,8 @@ Style/AndOr:
|
|
229
182
|
EnforcedStyle: conditionals
|
230
183
|
Style/AutoResourceCleanup:
|
231
184
|
Enabled: true
|
232
|
-
Style/BisectedAttrAccessor:
|
233
|
-
Enabled: true
|
234
|
-
Style/CaseLikeIf:
|
235
|
-
Enabled: true
|
236
|
-
Style/ClassEqualityComparison:
|
237
|
-
Enabled: true
|
238
185
|
Style/ClassMethodsDefinitions:
|
239
186
|
Enabled: true
|
240
|
-
Style/CombinableLoops:
|
241
|
-
Enabled: true
|
242
187
|
Style/CollectionCompact:
|
243
188
|
Enabled: true
|
244
189
|
Style/CollectionMethods:
|
@@ -257,8 +202,6 @@ Style/EndlessMethod:
|
|
257
202
|
Enabled: true
|
258
203
|
Style/ExplicitBlockArgument:
|
259
204
|
Enabled: false
|
260
|
-
Style/ExponentialNotation:
|
261
|
-
Enabled: true
|
262
205
|
Style/FileRead:
|
263
206
|
Enabled: true
|
264
207
|
Style/FileWrite:
|
@@ -267,21 +210,13 @@ Style/FormatStringToken:
|
|
267
210
|
EnforcedStyle: template
|
268
211
|
Style/GlobalStdStream:
|
269
212
|
Enabled: false
|
270
|
-
Style/HashAsLastArrayItem:
|
271
|
-
Enabled: true
|
272
213
|
Style/HashConversion:
|
273
214
|
Enabled: true
|
274
|
-
Style/HashEachMethods:
|
275
|
-
Enabled: true
|
276
215
|
Style/HashExcept:
|
277
216
|
Enabled: true
|
278
217
|
Style/HashLikeCase:
|
279
218
|
Enabled: true
|
280
219
|
MinBranchesCount: 2
|
281
|
-
Style/HashTransformKeys:
|
282
|
-
Enabled: true
|
283
|
-
Style/HashTransformValues:
|
284
|
-
Enabled: true
|
285
220
|
Style/IfWithBooleanLiteralBranches:
|
286
221
|
Enabled: true
|
287
222
|
Style/ImplicitRuntimeError:
|
@@ -290,8 +225,6 @@ Style/InPatternThen:
|
|
290
225
|
Enabled: true
|
291
226
|
Style/IpAddresses:
|
292
227
|
Enabled: true
|
293
|
-
Style/KeywordParametersOrder:
|
294
|
-
Enabled: true
|
295
228
|
Style/MapToHash:
|
296
229
|
Enabled: true
|
297
230
|
Style/MethodCalledOnDoEndBlock:
|
@@ -323,8 +256,6 @@ Style/NumberedParametersLimit:
|
|
323
256
|
Enabled: true
|
324
257
|
Style/NumericLiterals:
|
325
258
|
Enabled: false
|
326
|
-
Style/OptionalBooleanParameter:
|
327
|
-
Enabled: true
|
328
259
|
Style/OptionHash:
|
329
260
|
Enabled: true
|
330
261
|
Style/OpenStructUse:
|
@@ -340,19 +271,9 @@ Style/QuotedSymbols:
|
|
340
271
|
Enabled: true
|
341
272
|
Style/RedundantArgument:
|
342
273
|
Enabled: true
|
343
|
-
Style/RedundantAssignment:
|
344
|
-
Enabled: true
|
345
|
-
Style/RedundantSelfAssignment:
|
346
|
-
Enabled: true
|
347
274
|
Style/RedundantSelfAssignmentBranch:
|
348
275
|
Enabled: true
|
349
|
-
Style/
|
350
|
-
Enabled: true
|
351
|
-
Style/RedundantFileExtensionInRequire:
|
352
|
-
Enabled: true
|
353
|
-
Style/RedundantRegexpCharacterClass:
|
354
|
-
Enabled: true
|
355
|
-
Style/RedundantRegexpEscape:
|
276
|
+
Style/RedundantInitialize:
|
356
277
|
Enabled: true
|
357
278
|
Style/ReturnNil:
|
358
279
|
Enabled: true
|
@@ -364,12 +285,6 @@ Style/Send:
|
|
364
285
|
Enabled: true
|
365
286
|
Style/SignalException:
|
366
287
|
EnforcedStyle: semantic
|
367
|
-
Style/SingleArgumentDig:
|
368
|
-
Enabled: true
|
369
|
-
Style/SlicingWithRange:
|
370
|
-
Enabled: true
|
371
|
-
Style/SoleNestedConditional:
|
372
|
-
Enabled: true
|
373
288
|
Style/StaticClass:
|
374
289
|
Enabled: true
|
375
290
|
Style/StringChars:
|
@@ -384,5 +299,3 @@ Style/StringMethods:
|
|
384
299
|
Enabled: true
|
385
300
|
Style/SwapValues:
|
386
301
|
Enabled: true
|
387
|
-
Style/SymbolArray:
|
388
|
-
Enabled: true
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,36 +28,22 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-04-
|
31
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: refinements
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '9.2'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '9.2'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: rubocop
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
39
|
+
version: '1.27'
|
54
40
|
type: :runtime
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
44
|
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
46
|
+
version: '1.27'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: rubocop-performance
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +78,14 @@ dependencies:
|
|
92
78
|
requirements:
|
93
79
|
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version: '2.
|
81
|
+
version: '2.10'
|
96
82
|
type: :runtime
|
97
83
|
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
86
|
- - "~>"
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '2.
|
88
|
+
version: '2.10'
|
103
89
|
description:
|
104
90
|
email:
|
105
91
|
- brooke@alchemists.io
|
@@ -143,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
129
|
- !ruby/object:Gem::Version
|
144
130
|
version: '0'
|
145
131
|
requirements: []
|
146
|
-
rubygems_version: 3.3.
|
132
|
+
rubygems_version: 3.3.11
|
147
133
|
signing_key:
|
148
134
|
specification_version: 4
|
149
135
|
summary: Provides a high quality style guide and configuration for your projects.
|
metadata.gz.sig
CHANGED
Binary file
|