aroundhome_cops 4.3.1 → 5.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7ba30cf276e1a77143dd95cde6bba1b39d8cacd0c82f8059a69fefcfdb63028
4
- data.tar.gz: 7c51c1698336a75896bcfb4036ef55acc2eebf53dbe089bfbae7a5ed0a92738f
3
+ metadata.gz: bfa5be96619d3d6451b2527a11ba2d8b24c3c27d49ee6401122ff5c3e8375a83
4
+ data.tar.gz: 7cd6dc77595818f58716e0133b7e3745c863afcc23cc239fcd62818d278c7ebb
5
5
  SHA512:
6
- metadata.gz: 8221b18eb575e89bb6f2f0f9f9462e7034d0bd17edfc33c39ab1898ae1245629e924071def2a819cd56caa1dfb5f6cd36f64b232f2c3ba06b0c30596dc784aa2
7
- data.tar.gz: a27388d70a17f3e93c42b36c3cb324c4fbea9c5699ac633b471b3c8064b1696d5506263811f59fab205da00a1b96ae227c14f6d6bbebc8796806f7603d3094d1
6
+ metadata.gz: 6e813351d7e6fb2e5685f937c3531142d86624b7c8d192ba9b66f30e6e649c09d0fec2b622f879a6f800ce59aaf912fc52002c4964bc690e8fc4be2937ed2589
7
+ data.tar.gz: 61acfe40d2081714749144715eb177d40bd57ac37300ab88b36d908d5e773c2506d8deca3d0a1f464e42d5e07de373152b68c230bafdac2f02b345347ac5b8c8
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.8
1
+ 2.6.9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Version 5.0.1
2
+ * [do not expect syntax](https://www.rubydoc.info/gems/rubocop-rspec/1.10.0/RuboCop/Cop/RSpec/MessageSpies) of [message spies](https://relishapp.com/rspec/rspec-mocks/docs/basics/spies) by default
3
+
4
+ ## Version 5.0.0
5
+ * Opt into all Rubocop offenses up until 1.35 & rspec 2.12
6
+ * Update minimum rubocop to 1.35
7
+ * Dropped support for ruby < 2.6
8
+
1
9
  ## Version 4.3.1
2
10
  * Disable updating to rubocop 1.31 as it will break our config.
3
11
 
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  .reject { |f| f.match(%r{^spec/}) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 2.5.0'
21
+ spec.required_ruby_version = '>= 2.6.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.22', '< 1.31'
23
+ spec.add_dependency 'rubocop', '~> 1.35'
24
24
  spec.add_dependency 'rubocop-rake', '~> 0.6'
25
25
  spec.add_dependency 'rubocop-rspec', '~> 2.5'
26
26
  end
data/default.yml CHANGED
@@ -53,7 +53,7 @@ Layout/LineLength:
53
53
  # long, since they are less comparable to methods and more comparable to
54
54
  # modules/classes.
55
55
  Metrics/BlockLength:
56
- IgnoredMethods:
56
+ AllowedMethods:
57
57
  - context
58
58
  - describe
59
59
  - namespace
@@ -174,6 +174,15 @@ RSpec/NestedGroups:
174
174
  RSpec/PredicateMatcher:
175
175
  Enabled: false
176
176
 
177
+ # Our codebase was consistent across the company before we started to introduce rubocop-rspec
178
+ # lots of our repositories are not using message spies currently
179
+ RSpec/MessageSpies:
180
+ EnforcedStyle: receive
181
+
182
+ # While in general 2FA is a good idea, adding 2FA to CI/CD is a difficulty.
183
+ Gemspec/RequireMFA: # new in 1.23
184
+ Enabled: false
185
+
177
186
  # ----------------- Rubocop-forced enablements --------------
178
187
 
179
188
  # Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
@@ -182,8 +191,6 @@ RSpec/PredicateMatcher:
182
191
  # them below.
183
192
  # Disabled cops will appear above with a comment explaining disablement.
184
193
 
185
- Gemspec/DateAssignment: # (new in 1.10)
186
- Enabled: true
187
194
  Layout/SpaceBeforeBrackets: # (new in 1.7)
188
195
  Enabled: true
189
196
  Lint/AmbiguousAssignment: # (new in 1.7)
@@ -272,6 +279,50 @@ Style/MultilineInPatternThen: # (new in 1.16)
272
279
  Enabled: true
273
280
  Style/QuotedSymbols: # (new in 1.16)
274
281
  Enabled: true
282
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
283
+ Enabled: true
284
+ Layout/LineContinuationLeadingSpace: # new in 1.31
285
+ Enabled: true
286
+ Layout/LineContinuationSpacing: # new in 1.31
287
+ Enabled: true
288
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
289
+ Enabled: true
290
+ Lint/NonAtomicFileOperation: # new in 1.31
291
+ Enabled: true
292
+ Lint/RefinementImportMethods: # new in 1.27
293
+ Enabled: true
294
+ Lint/RequireRangeParentheses: # new in 1.32
295
+ Enabled: true
296
+ Lint/UselessRuby2Keywords: # new in 1.23
297
+ Enabled: true
298
+ Naming/BlockForwarding: # new in 1.24
299
+ Enabled: true
300
+ Security/CompoundHash: # new in 1.28
301
+ Enabled: true
302
+ Style/EmptyHeredoc: # new in 1.32
303
+ Enabled: true
304
+ Style/EnvHome: # new in 1.29
305
+ Enabled: true
306
+ Style/FetchEnvVar: # new in 1.28
307
+ Enabled: true
308
+ Style/FileRead: # new in 1.24
309
+ Enabled: true
310
+ Style/FileWrite: # new in 1.24
311
+ Enabled: true
312
+ Style/MagicCommentFormat: # new in 1.35
313
+ Enabled: true
314
+ Style/MapCompactWithConditionalBlock: # new in 1.30
315
+ Enabled: true
316
+ Style/MapToHash: # new in 1.24
317
+ Enabled: true
318
+ Style/NestedFileDirname: # new in 1.26
319
+ Enabled: true
320
+ Style/ObjectThen: # new in 1.28
321
+ Enabled: true
322
+ Style/OpenStructUse: # new in 1.23
323
+ Enabled: true
324
+ Style/RedundantInitialize: # new in 1.27
325
+ Enabled: true
275
326
 
276
327
  # ----------------- Rubocop-Rspec forced enablements --------------
277
328
  RSpec/ExcessiveDocstringSpacing: # (new in 2.5)
@@ -282,3 +333,18 @@ RSpec/Rails/AvoidSetupHook: # (new in 2.4)
282
333
  Enabled: true
283
334
  RSpec/SubjectDeclaration: # (new in 2.5)
284
335
  Enabled: true
336
+ RSpec/BeEq: # new in 2.9.0
337
+ Enabled: true
338
+ RSpec/BeNil: # new in 2.9.0
339
+ Enabled: true
340
+ RSpec/ChangeByZero: # new in 2.11.0
341
+ Enabled: true
342
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
343
+ Enabled: true
344
+ RSpec/Capybara/SpecificMatcher: # new in 2.12
345
+ Enabled: true
346
+ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
347
+ Enabled: true
348
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
349
+ Enabled: true
350
+
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '4.3.1'
4
+ VERSION = '5.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aroundhome_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.22'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '1.31'
19
+ version: '1.35'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.22'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '1.31'
26
+ version: '1.35'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rubocop-rake
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
80
  requirements:
87
81
  - - ">="
88
82
  - !ruby/object:Gem::Version
89
- version: 2.5.0
83
+ version: 2.6.0
90
84
  required_rubygems_version: !ruby/object:Gem::Requirement
91
85
  requirements:
92
86
  - - ">="