caliber 0.2.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5cc7302906faec5a5d2be971d68ecabd8622d7b229489b8962ca087a0067ede
4
- data.tar.gz: 99898cc9ff9055b7983fc9642a42477569fecf737f68e62b7361afaa860342b1
3
+ metadata.gz: 3d5e2a7400a2bda07d7c8c2f4c3a631775673bcd50f11ff957cd35005285af34
4
+ data.tar.gz: 1cb90917478a204280c592fe6d93999d672dddc2292299030fb4bd8abb77686c
5
5
  SHA512:
6
- metadata.gz: 17961258206b7848156a9f5237a9b2ff0469735bce43923ed7003063ab0df3d04c935001462bba0a67d10b7993ecd87d51d96a4a27addd1cc26c3ae12df1978f
7
- data.tar.gz: 7bbb48a5b2eefec204b22bf92cde90577eb7cace87f4a3260376d6e6af4ed73b25c44a26f7d423cb8b09561e60d112a5dfa7e164419c90dfde08be422f25429e
6
+ metadata.gz: f8125cf453d7213ba0c398a9c1f675d5c0ebed88429f07eec88110367ee6373c038dc9bcfd5f1f71603318e8bd1ca87c3ac3610cdc5a675b1b1775a23067927a
7
+ data.tar.gz: 86c1da65e8d3c4356057c181de640da08373039e81b0a1700e0a56a001ca889eaf7acaa42fe563543d138361cdf7d9589efc454fa0c2497fce9b439e2d641883
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.2.1"
5
+ spec.version = "0.5.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,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 "refinements", "~> 9.2"
26
- spec.add_dependency "rubocop", "~> 1.25"
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
@@ -45,7 +45,5 @@ RSpec/NamedSubject:
45
45
  IgnoreSharedExamples: false
46
46
  RSpec/Rails/AvoidSetupHook:
47
47
  Enabled: true
48
- RSpec/StubbedMock:
49
- Enabled: true
50
48
  RSpec/SubjectDeclaration:
51
49
  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,65 +109,37 @@ 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/RedundantSafeNavigation:
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
138
  Lint/UselessMethodDefinition:
179
139
  Enabled: true
180
140
  AllowComments: false
181
141
  Lint/UselessRuby2Keywords:
182
142
  Enabled: true
183
- Lint/UselessTimes:
184
- Enabled: true
185
- Lint/Void:
186
- CheckForMethodsWithNoSideEffects: true
187
143
  Metrics/BlockLength:
188
144
  IgnoredMethods:
189
145
  - ips
@@ -221,8 +177,6 @@ Naming/MethodParameterName:
221
177
  AllowNamesEndingInNumbers: false
222
178
  Security/IoMethods:
223
179
  Enabled: true
224
- Style/AccessorGrouping:
225
- Enabled: true
226
180
  Style/ArgumentsForwarding:
227
181
  Enabled: false
228
182
  Style/ArrayCoercion:
@@ -231,16 +185,8 @@ Style/AndOr:
231
185
  EnforcedStyle: conditionals
232
186
  Style/AutoResourceCleanup:
233
187
  Enabled: true
234
- Style/BisectedAttrAccessor:
235
- Enabled: true
236
- Style/CaseLikeIf:
237
- Enabled: true
238
- Style/ClassEqualityComparison:
239
- Enabled: true
240
188
  Style/ClassMethodsDefinitions:
241
189
  Enabled: true
242
- Style/CombinableLoops:
243
- Enabled: true
244
190
  Style/CollectionCompact:
245
191
  Enabled: true
246
192
  Style/CollectionMethods:
@@ -259,8 +205,6 @@ Style/EndlessMethod:
259
205
  Enabled: true
260
206
  Style/ExplicitBlockArgument:
261
207
  Enabled: false
262
- Style/ExponentialNotation:
263
- Enabled: true
264
208
  Style/FileRead:
265
209
  Enabled: true
266
210
  Style/FileWrite:
@@ -269,21 +213,13 @@ Style/FormatStringToken:
269
213
  EnforcedStyle: template
270
214
  Style/GlobalStdStream:
271
215
  Enabled: false
272
- Style/HashAsLastArrayItem:
273
- Enabled: true
274
216
  Style/HashConversion:
275
217
  Enabled: true
276
- Style/HashEachMethods:
277
- Enabled: true
278
218
  Style/HashExcept:
279
219
  Enabled: true
280
220
  Style/HashLikeCase:
281
221
  Enabled: true
282
222
  MinBranchesCount: 2
283
- Style/HashTransformKeys:
284
- Enabled: true
285
- Style/HashTransformValues:
286
- Enabled: true
287
223
  Style/IfWithBooleanLiteralBranches:
288
224
  Enabled: true
289
225
  Style/ImplicitRuntimeError:
@@ -292,8 +228,6 @@ Style/InPatternThen:
292
228
  Enabled: true
293
229
  Style/IpAddresses:
294
230
  Enabled: true
295
- Style/KeywordParametersOrder:
296
- Enabled: true
297
231
  Style/MapToHash:
298
232
  Enabled: true
299
233
  Style/MethodCalledOnDoEndBlock:
@@ -314,6 +248,8 @@ Style/MultilineMethodSignature:
314
248
  Enabled: true
315
249
  Style/NegatedIfElseCondition:
316
250
  Enabled: true
251
+ Style/NestedFileDirname:
252
+ Enabled: true
317
253
  Style/NilLambda:
318
254
  Enabled: true
319
255
  Style/NumberedParameters:
@@ -323,8 +259,6 @@ Style/NumberedParametersLimit:
323
259
  Enabled: true
324
260
  Style/NumericLiterals:
325
261
  Enabled: false
326
- Style/OptionalBooleanParameter:
327
- Enabled: true
328
262
  Style/OptionHash:
329
263
  Enabled: true
330
264
  Style/OpenStructUse:
@@ -340,19 +274,9 @@ Style/QuotedSymbols:
340
274
  Enabled: true
341
275
  Style/RedundantArgument:
342
276
  Enabled: true
343
- Style/RedundantAssignment:
344
- Enabled: true
345
- Style/RedundantSelfAssignment:
346
- Enabled: true
347
277
  Style/RedundantSelfAssignmentBranch:
348
278
  Enabled: true
349
- Style/RedundantFetchBlock:
350
- Enabled: true
351
- Style/RedundantFileExtensionInRequire:
352
- Enabled: true
353
- Style/RedundantRegexpCharacterClass:
354
- Enabled: true
355
- Style/RedundantRegexpEscape:
279
+ Style/RedundantInitialize:
356
280
  Enabled: true
357
281
  Style/ReturnNil:
358
282
  Enabled: true
@@ -364,12 +288,6 @@ Style/Send:
364
288
  Enabled: true
365
289
  Style/SignalException:
366
290
  EnforcedStyle: semantic
367
- Style/SingleArgumentDig:
368
- Enabled: true
369
- Style/SlicingWithRange:
370
- Enabled: true
371
- Style/SoleNestedConditional:
372
- Enabled: true
373
291
  Style/StaticClass:
374
292
  Enabled: true
375
293
  Style/StringChars:
@@ -384,5 +302,3 @@ Style/StringMethods:
384
302
  Enabled: true
385
303
  Style/SwapValues:
386
304
  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.2.1
4
+ version: 0.5.0
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/jCCAeagAwIBAgIBBDANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMTAzMTkxMjQ4MDZaFw0yMjAzMTkx
15
- MjQ4MDZaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAg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DQYJKoZIhvcNAQELBQADggEBAJbbNyWzFjqUNVPPCUCo
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-03-04 00:00:00.000000000 Z
31
+ date: 2022-04-09 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.25'
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.25'
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.8
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