aroundhome_cops 2.0.0 → 2.1.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: 8b9bd51596d52489367945aaa124fd6553037b18c02532108d7257ce32cdc730
4
- data.tar.gz: be240ec3e67e0f2d0b6c5df03ec67ec4fbb6430dd0a169e436bf78eab4284b54
3
+ metadata.gz: 677a8fd1caf9f01b7edbf601523d6b7682b6c80a5f3733e53181aa91d4fe80c8
4
+ data.tar.gz: e165928316c12030231e86c0f57276cb7a36b2a4787e95f28657fc4a35806e57
5
5
  SHA512:
6
- metadata.gz: 55bf0c984dec9a4618ca6666a3f55eb0bad1fa6e9853c65bcec2f5bf51cd99f883cf558e5f2a37dcd35c3fbdc9e19f03b39170ed63014f5219124cdbedcdae4c
7
- data.tar.gz: fbe4d180f3285f76b38dd1371004d265d22c9efbd212b8073541d3efa6e128a5dfcf126687931f0fc6d55b5a5b7ccd1973cdd5f3fb367ebe677c39e2a2f0b47b
6
+ metadata.gz: 9c3db4236a4c8006abb661fc8dfdb6e86aa8ee571d77ae499e362ea3752e68147ccb5677d36efc4c3264305d2479451d55289fc93ae48d882dee6fc018d21d00
7
+ data.tar.gz: b4f999e50282e2131759451409a86001c7efde00fed869c7f3f69c1c1664081cea7d31c176d6563937ea83b41dc8315f084c7a1178768a3cc57b79307ca6ba83
@@ -1,3 +1,7 @@
1
+ ## Version 2.1.0
2
+
3
+ * Allow ambiguous blocks in specs
4
+
1
5
  ## Version 2.0.0
2
6
 
3
7
  * Rename to `aroundhome_cops` (our company name changed a while ago)
@@ -20,6 +20,15 @@ AllCops:
20
20
  - 'db/migrate/2016*.rb'
21
21
  - 'db/migrate/2017*.rb'
22
22
 
23
+ # While we like to write blocks like the following
24
+ # expect { add_special_project }.not_to change { SpecialProject.count }
25
+ # Rubocop doesn't like that and prefers either of the following options for clarity
26
+ # expect { add_special_project }.not_to change(SpecialProject, :count)
27
+ # expect { add_special_project }.not_to(change { SpecialProject.count })
28
+ Lint/AmbiguousBlockAssociation:
29
+ Exclude:
30
+ - 'spec/**/*'
31
+
23
32
  # Models can have a bunch of attributes which lead to long methods and high
24
33
  # complexity values. However, these methods are still very readable because they
25
34
  # usually have a lot of repetition.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.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: 2.0.0
4
+ version: 2.1.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: 2020-07-16 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop