aroundhome_cops 4.2.0 → 4.3.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: ad7cf8c4f2e3bc38092798cb7b402c496e97b17860ee3b54a93c7772b31064c2
4
- data.tar.gz: dfe328629f993ec3a742e71e93a6b9c633f7c115766c59b0dfa5b4c8774afc6d
3
+ metadata.gz: 892609c946c6d5b7c856b11c900354e126020bfdc86294456d97ee797b14da1f
4
+ data.tar.gz: '03096a520b19ce75cb83520668bc24f8c96e738525de3546b319a638ccd3c0e1'
5
5
  SHA512:
6
- metadata.gz: 30f56dec47ec145cfd8456d663cff8fba04950510d526bd8d0f04b15e3943ddc89b15bd88215e17033349de4c55223e6fb31b6a48b8e41326d2a9c0e62432b81
7
- data.tar.gz: c2f76650583c22985cb277d35204f08ff32a89c54fdfa670c10b16bb72f8e47c5a85710891428948f51fa318bd18b544569cc3028e1420cd17f1851edc451bb8
6
+ metadata.gz: 2715942fc7d5261183c74623d8536072162dc605e9e9f8e0b02847ee4f66519f14be2a86a0c5f5d44877e5d45203e4d61be54f5f37b9fd52cc87b36684b569aa
7
+ data.tar.gz: 94bb36c19e518f9ecbf029e473e821b1583f6c916cc15335dfd883680dac97f57a3cea53e7d8e972ddd7cba5a76c5fd9114c6df32a7259bdaba9db99907b3790
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Version 4.3.0
2
+ * Disable `RSpec/PredicateMatcher` due to false positives
3
+
1
4
  ## Version 4.2.0
2
5
  * Add rubocop-rake as a dependency, to enforce better specs
3
6
 
data/default.yml CHANGED
@@ -160,6 +160,20 @@ RSpec/NamedSubject:
160
160
  RSpec/NestedGroups:
161
161
  Max: 7
162
162
 
163
+ # While well intentioned at teaching about the existence of be_something matchers
164
+ # in RSpec, this one produces false positives on methods such as
165
+ #
166
+ # expect(hash.key?('foo')).to be_truthy
167
+ #
168
+ # Where it suggests to change towards:
169
+ #
170
+ # expect(hash).to be_key('foo')
171
+ #
172
+ # While this works, it is less readable. The hash IS NOT the key, but it HAS the key.
173
+ # Similar mistakes happen for other methods (e.g. File.exist?).
174
+ RSpec/PredicateMatcher:
175
+ Enabled: false
176
+
163
177
  # ----------------- Rubocop-forced enablements --------------
164
178
 
165
179
  # Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '4.2.0'
4
+ VERSION = '4.3.0'
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.2.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-14 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop