factory_trace 0.3.1 → 0.3.2

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: c62263e1e956eb66fccd4b8a6f7102162fdb0722560daa7fedcf1fa59c5c8232
4
- data.tar.gz: 01604e9bf4fac1218b5c234504117c9f9c7cdd6badf37057785749badead8c5c
3
+ metadata.gz: d1a24e77768b29dad3fe548612611e571e6d482ef20452710030c2630b458b3c
4
+ data.tar.gz: 9d1dc6c12a05a3a0ea3828525a5d7e6b77e7f7be993eb06fe19e3ac3b8f9640d
5
5
  SHA512:
6
- metadata.gz: 5968bbb709141f2f71f8f317d21a1d365727b83624f2366203386e04cdfd314cdc23a11780abdaf88f4010be9f7bed91033b92d18f2b111bd0e7421b14473602
7
- data.tar.gz: 971b34ef78ca75bbc7c5874e25f055b5965fdafba9a35d2ac9c8f91bd6dc1daad4ba60dddf5081e54df50f64764f08097ffdeb2a678780e7855cf722fac7e237
6
+ metadata.gz: 81d359402ed19825baba0e7e7433272a83ecd7cd17b6b8d9968eeb600129b2afba676bd8257e10b6ad4c22f8cf1397f89116493eea9841ede8c802d6622986b6
7
+ data.tar.gz: 4f8c7509c59504a83f54de7a036368b5d233f4a9a1a1075cf344fff158edd441ca816445605c1b1e5b22fefd507e377d3f05c42c01eef37dbac6acf47d1475c0
@@ -97,11 +97,11 @@ module FactoryTrace
97
97
  # @param [Symbol] status
98
98
  def self.mark_declarations(declaration_names, factory, collection, status:)
99
99
  declaration_names.each do |declaration_name|
100
- if (declaration_factory = collection.find_factory_by_names([declaration_name]))
101
- mark_factory(declaration_factory, collection, status: status)
102
- elsif (declaration_factory, declaration_trait = defined_trait_by_name(collection, factory, declaration_name))
103
- mark_trait(declaration_trait, declaration_factory, collection, status: status)
104
- end
100
+ declaration_factory = collection.find_factory_by_names([declaration_name])
101
+ next mark_factory(declaration_factory, collection, status: status) if declaration_factory
102
+
103
+ declaration_factory, declaration_trait = defined_trait_by_name(collection, factory, declaration_name)
104
+ mark_trait(declaration_trait, declaration_factory, collection, status: status) if declaration_trait
105
105
  end
106
106
  end
107
107
  end
@@ -1,3 +1,3 @@
1
1
  module FactoryTrace
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - djezzzl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-08 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot