caliber 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6707f3701e6146861df19f93acbf3f63a00e628665fbab76dbc8f39b331d5509
4
- data.tar.gz: e75701f436629e472395f0d7ce0a68996b3593fa6737b460293e625347ea480b
3
+ metadata.gz: 3d5e2a7400a2bda07d7c8c2f4c3a631775673bcd50f11ff957cd35005285af34
4
+ data.tar.gz: 1cb90917478a204280c592fe6d93999d672dddc2292299030fb4bd8abb77686c
5
5
  SHA512:
6
- metadata.gz: 98bf9f23286b2d20b156d79adcb20572173e3d76539117207088a3df6e2f03cfc40bd88652d7e9fd73651eeca913e244ab5050a68219bc18e79d82d4761e48e6
7
- data.tar.gz: 10fd94ff95c1c0240d7b315c7032b16f288f491ede47e35c4578e4ee6192a112d97cc86674bdc9ebc3f01d7be2adc3fb1c1a100e4df2206a8cd8e6725879d9ee
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.4.0"
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.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
@@ -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,63 +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
143
  Metrics/BlockLength:
186
144
  IgnoredMethods:
187
145
  - ips
@@ -219,8 +177,6 @@ Naming/MethodParameterName:
219
177
  AllowNamesEndingInNumbers: false
220
178
  Security/IoMethods:
221
179
  Enabled: true
222
- Style/AccessorGrouping:
223
- Enabled: true
224
180
  Style/ArgumentsForwarding:
225
181
  Enabled: false
226
182
  Style/ArrayCoercion:
@@ -229,16 +185,8 @@ Style/AndOr:
229
185
  EnforcedStyle: conditionals
230
186
  Style/AutoResourceCleanup:
231
187
  Enabled: true
232
- Style/BisectedAttrAccessor:
233
- Enabled: true
234
- Style/CaseLikeIf:
235
- Enabled: true
236
- Style/ClassEqualityComparison:
237
- Enabled: true
238
188
  Style/ClassMethodsDefinitions:
239
189
  Enabled: true
240
- Style/CombinableLoops:
241
- Enabled: true
242
190
  Style/CollectionCompact:
243
191
  Enabled: true
244
192
  Style/CollectionMethods:
@@ -257,8 +205,6 @@ Style/EndlessMethod:
257
205
  Enabled: true
258
206
  Style/ExplicitBlockArgument:
259
207
  Enabled: false
260
- Style/ExponentialNotation:
261
- Enabled: true
262
208
  Style/FileRead:
263
209
  Enabled: true
264
210
  Style/FileWrite:
@@ -267,21 +213,13 @@ Style/FormatStringToken:
267
213
  EnforcedStyle: template
268
214
  Style/GlobalStdStream:
269
215
  Enabled: false
270
- Style/HashAsLastArrayItem:
271
- Enabled: true
272
216
  Style/HashConversion:
273
217
  Enabled: true
274
- Style/HashEachMethods:
275
- Enabled: true
276
218
  Style/HashExcept:
277
219
  Enabled: true
278
220
  Style/HashLikeCase:
279
221
  Enabled: true
280
222
  MinBranchesCount: 2
281
- Style/HashTransformKeys:
282
- Enabled: true
283
- Style/HashTransformValues:
284
- Enabled: true
285
223
  Style/IfWithBooleanLiteralBranches:
286
224
  Enabled: true
287
225
  Style/ImplicitRuntimeError:
@@ -290,8 +228,6 @@ Style/InPatternThen:
290
228
  Enabled: true
291
229
  Style/IpAddresses:
292
230
  Enabled: true
293
- Style/KeywordParametersOrder:
294
- Enabled: true
295
231
  Style/MapToHash:
296
232
  Enabled: true
297
233
  Style/MethodCalledOnDoEndBlock:
@@ -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.4.0
4
+ version: 0.5.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-08 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.26'
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.26'
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.10
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