rubocop-factory_bot 2.23.0 → 2.23.1

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: 5dd31a57d864549b6a4e86c5e5aaa5e3dd295d0926647fa4d8c6b8c816dd16b9
4
- data.tar.gz: dd15b4961127fdd387e2460a823d0f5bd71072b9bebcd2749ed5e4fcf7e1c4b5
3
+ metadata.gz: 5d8a45a48d47318e9e16e7b3bbde99ae9dcf94f6e90c068f0916ff2945511e85
4
+ data.tar.gz: 52ff0ffe8fb20bc0ed3ec4dca29aa13a29b106e39f7bacac370388f0c789bf1c
5
5
  SHA512:
6
- metadata.gz: 9f55937abd6245e83516aab63b939adb702a370170cc7828b3139e515e1a76221037cf2df8e79f82342694a5825f965a637cfb9cc8640e07d4f03d949c25d54f
7
- data.tar.gz: e6dbb62382a1d358dde88f26e1488a4a12736c00989ee631b26426e733e20f11dcc9752af06d2f0c145065759157fa1be1ab0eb3a9b2298cd1de75923a9801cd
6
+ metadata.gz: 53082b6baa7e6ebe69f3ebcc1404f2c8421bfcd3ee6905eba12789faca59c1c090b84abc4696a0773598ab06eb97e8aa2b70384864376b58e568d9eef5ce2549
7
+ data.tar.gz: 26f1817b168218b61f7657400f777ec5eb972cedab14501b2f6a5b1bd8691af9b4c3b04607969923eb58ffca49e4070622040950a7d00742624d4d5b03cf9ee1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 2.23.1 (2023-05-15)
6
+
7
+ - Fix `FactoryBot/AssociationStyle` cop for a blockless `factory`. ([@pirj])
8
+
5
9
  ## 2.23.0 (2023-05-15)
6
10
 
7
11
  - Add `FactoryBot/FactoryAssociationWithStrategy` cop. ([@morissetcl])
@@ -144,7 +144,7 @@ module RuboCop
144
144
  end
145
145
 
146
146
  def children_of_factory_block(node)
147
- block = node.parent
147
+ block = node.block_node
148
148
  return [] unless block
149
149
  return [] unless block.body
150
150
 
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module FactoryBot
5
5
  # Version information for the factory_bot RuboCop plugin.
6
6
  module Version
7
- STRING = '2.23.0'
7
+ STRING = '2.23.1'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-factory_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.0
4
+ version: 2.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Backus
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2023-05-15 00:00:00.000000000 Z
15
+ date: 2023-05-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rubocop
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.5
85
+ rubygems_version: 3.4.13
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Code style checking for factory_bot files