momocop 0.2.0 → 0.2.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: f20cc9ff605a765cbb69d7540eab272368da8ec2db1508bf15f68c055256f306
4
- data.tar.gz: ae33c4d6d07c9db8707f49694b3609f55297280f3910b2fb98613d52a44b2c7b
3
+ metadata.gz: 4e7fd31267d056683d9768650be0b4fb7743a1ee5226f555fb14fb60ab50d9ef
4
+ data.tar.gz: 52f53aa262f9b05b66dfd10af1a092fb193d2acf6cea5655b2e7238d28e857dc
5
5
  SHA512:
6
- metadata.gz: f1f054e0cff3c118d11191948622c99e5ccdffde3c09bacc7ea0e9fdffdc6dd2fb61158bc4d30ac7627ac87473a8188de34082780fee715fd7609abe7cadac71
7
- data.tar.gz: 8838377046d17cf9f238747d0a0c6de7d2d78fbb0f01c672c391c3252dd47cacd962518b23e3f72ff15aeb3acd17d20e71bf2e3eb98557a8c7fccee982e7a279
6
+ metadata.gz: 3a123726e06946a6061dd2c1fd5d56a031ed73e0b7d46c52cefc701dad2e0748364b19657fc51ec91328491074f1b81b28a05916dbc07383d1df422fdaf42248
7
+ data.tar.gz: 261683681f9f2f027fc60a093b916d57e1f2dcd16676b3818de9cf39ec6e87e01d9d2248895f24ff19ba62c726ed64867a790a30b207b11716e4dfd2b60adb4d
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Momocop
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -32,6 +32,8 @@ module RuboCop
32
32
  MSG = 'Only one `FactoryBot.define` block is allowed per file.'
33
33
 
34
34
  def on_new_investigation
35
+ return unless processed_source.ast
36
+
35
37
  factory_bot_define_blocks =
36
38
  processed_source
37
39
  .ast
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - supermomonga
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-07 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport