caliber 0.3.0 → 0.5.1
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 +2 -3
- data/config/rspec.yml +0 -2
- data/config/ruby.yml +2 -91
- data.tar.gz.sig +1 -4
- metadata +15 -29
- 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: e59cd6031ba0aa12b19e08a5d942d43deaf17e8e35a901d82ad1e6a356b116b0
|
4
|
+
data.tar.gz: c20e9088f724045fd2b42e72e29c7191b9983db80aa56c3f406ba8996d3da5ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db617166ecc2bbfa07c2931ef790da032302c83c0f7841dac62a8a28279b3dcee736441ce8f13667a305382a72d3d399b83a86c5c940525b2509440758486a1f
|
7
|
+
data.tar.gz: 1f767d0691bf66f73e996564cc7414b7c4d2a4c4ebefa1f1e3da513f6a689a8c790b77930c3cae542c58b6cf487ae7990c3b83bcbc0a25c44a5c0ab1bfece0b9
|
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.5.1"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/caliber"
|
@@ -22,8 +22,7 @@ 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
28
|
spec.add_dependency "rubocop-rspec", "~> 2.9"
|
data/config/rspec.yml
CHANGED
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,65 +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
|
-
Lint/Void:
|
186
|
-
CheckForMethodsWithNoSideEffects: true
|
187
140
|
Metrics/BlockLength:
|
188
141
|
IgnoredMethods:
|
189
142
|
- ips
|
@@ -221,8 +174,6 @@ Naming/MethodParameterName:
|
|
221
174
|
AllowNamesEndingInNumbers: false
|
222
175
|
Security/IoMethods:
|
223
176
|
Enabled: true
|
224
|
-
Style/AccessorGrouping:
|
225
|
-
Enabled: true
|
226
177
|
Style/ArgumentsForwarding:
|
227
178
|
Enabled: false
|
228
179
|
Style/ArrayCoercion:
|
@@ -231,16 +182,8 @@ Style/AndOr:
|
|
231
182
|
EnforcedStyle: conditionals
|
232
183
|
Style/AutoResourceCleanup:
|
233
184
|
Enabled: true
|
234
|
-
Style/BisectedAttrAccessor:
|
235
|
-
Enabled: true
|
236
|
-
Style/CaseLikeIf:
|
237
|
-
Enabled: true
|
238
|
-
Style/ClassEqualityComparison:
|
239
|
-
Enabled: true
|
240
185
|
Style/ClassMethodsDefinitions:
|
241
186
|
Enabled: true
|
242
|
-
Style/CombinableLoops:
|
243
|
-
Enabled: true
|
244
187
|
Style/CollectionCompact:
|
245
188
|
Enabled: true
|
246
189
|
Style/CollectionMethods:
|
@@ -259,8 +202,6 @@ Style/EndlessMethod:
|
|
259
202
|
Enabled: true
|
260
203
|
Style/ExplicitBlockArgument:
|
261
204
|
Enabled: false
|
262
|
-
Style/ExponentialNotation:
|
263
|
-
Enabled: true
|
264
205
|
Style/FileRead:
|
265
206
|
Enabled: true
|
266
207
|
Style/FileWrite:
|
@@ -269,21 +210,13 @@ Style/FormatStringToken:
|
|
269
210
|
EnforcedStyle: template
|
270
211
|
Style/GlobalStdStream:
|
271
212
|
Enabled: false
|
272
|
-
Style/HashAsLastArrayItem:
|
273
|
-
Enabled: true
|
274
213
|
Style/HashConversion:
|
275
214
|
Enabled: true
|
276
|
-
Style/HashEachMethods:
|
277
|
-
Enabled: true
|
278
215
|
Style/HashExcept:
|
279
216
|
Enabled: true
|
280
217
|
Style/HashLikeCase:
|
281
218
|
Enabled: true
|
282
219
|
MinBranchesCount: 2
|
283
|
-
Style/HashTransformKeys:
|
284
|
-
Enabled: true
|
285
|
-
Style/HashTransformValues:
|
286
|
-
Enabled: true
|
287
220
|
Style/IfWithBooleanLiteralBranches:
|
288
221
|
Enabled: true
|
289
222
|
Style/ImplicitRuntimeError:
|
@@ -292,8 +225,6 @@ Style/InPatternThen:
|
|
292
225
|
Enabled: true
|
293
226
|
Style/IpAddresses:
|
294
227
|
Enabled: true
|
295
|
-
Style/KeywordParametersOrder:
|
296
|
-
Enabled: true
|
297
228
|
Style/MapToHash:
|
298
229
|
Enabled: true
|
299
230
|
Style/MethodCalledOnDoEndBlock:
|
@@ -325,8 +256,6 @@ Style/NumberedParametersLimit:
|
|
325
256
|
Enabled: true
|
326
257
|
Style/NumericLiterals:
|
327
258
|
Enabled: false
|
328
|
-
Style/OptionalBooleanParameter:
|
329
|
-
Enabled: true
|
330
259
|
Style/OptionHash:
|
331
260
|
Enabled: true
|
332
261
|
Style/OpenStructUse:
|
@@ -342,19 +271,9 @@ Style/QuotedSymbols:
|
|
342
271
|
Enabled: true
|
343
272
|
Style/RedundantArgument:
|
344
273
|
Enabled: true
|
345
|
-
Style/RedundantAssignment:
|
346
|
-
Enabled: true
|
347
|
-
Style/RedundantSelfAssignment:
|
348
|
-
Enabled: true
|
349
274
|
Style/RedundantSelfAssignmentBranch:
|
350
275
|
Enabled: true
|
351
|
-
Style/
|
352
|
-
Enabled: true
|
353
|
-
Style/RedundantFileExtensionInRequire:
|
354
|
-
Enabled: true
|
355
|
-
Style/RedundantRegexpCharacterClass:
|
356
|
-
Enabled: true
|
357
|
-
Style/RedundantRegexpEscape:
|
276
|
+
Style/RedundantInitialize:
|
358
277
|
Enabled: true
|
359
278
|
Style/ReturnNil:
|
360
279
|
Enabled: true
|
@@ -366,12 +285,6 @@ Style/Send:
|
|
366
285
|
Enabled: true
|
367
286
|
Style/SignalException:
|
368
287
|
EnforcedStyle: semantic
|
369
|
-
Style/SingleArgumentDig:
|
370
|
-
Enabled: true
|
371
|
-
Style/SlicingWithRange:
|
372
|
-
Enabled: true
|
373
|
-
Style/SoleNestedConditional:
|
374
|
-
Enabled: true
|
375
288
|
Style/StaticClass:
|
376
289
|
Enabled: true
|
377
290
|
Style/StringChars:
|
@@ -386,5 +299,3 @@ Style/StringMethods:
|
|
386
299
|
Enabled: true
|
387
300
|
Style/SwapValues:
|
388
301
|
Enabled: true
|
389
|
-
Style/SymbolArray:
|
390
|
-
Enabled: true
|
data.tar.gz.sig
CHANGED
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.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIC/
|
14
|
-
|
15
|
-
|
13
|
+
MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
|
14
|
+
a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMjAzMTkxNzI0MzJaFw0yMzAzMTkx
|
15
|
+
NzI0MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
|
16
16
|
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
|
17
17
|
xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
|
18
18
|
brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
|
@@ -20,44 +20,30 @@ cert_chain:
|
|
20
20
|
D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
|
21
21
|
3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
|
22
22
|
AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
|
23
|
-
2CdikiiE3fJhP/
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAJbbNyWzFjqUNVPPCUCo
|
24
|
+
IMrhDa9xf1xkORXNYYbmXgoxRy/KyNbUr+jgEEoWJAm9GXlcqxxWAUI6pK/i4/Qi
|
25
|
+
X6rPFEFmeObDOHNvuqy8Hd6AYsu+kP94U/KJhe9wnWGMmGoNKJNU3EkW3jM/osSl
|
26
|
+
+JRxiH5t4WtnDiVyoYl5nYC02rYdjJkG6VMxDymXTqn7u6HhYgZkGujq1UPar8x2
|
27
|
+
hNIWJblDKKSu7hA2d6+kUthuYo13o1sg1Da/AEDg0hoZSUvhqDEF5Hy232qb3pDt
|
28
|
+
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
|
+
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
31
|
+
date: 2022-04-11 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
|
@@ -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
|