washout_builder 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,11 +7,9 @@ module WashoutBuilderHelper
7
7
 
8
8
  if !complex_class.nil? && !defined.blank?
9
9
 
10
- found = false
11
- defined.each do |hash|
12
- found = true if hash[:class] == complex_class
13
- end
14
- if found == true && p.struct? && !p.classified? && p.source_class_name.blank?
10
+ complex_obj_found = defined.detect {|hash| hash[:class] == complex_class}
11
+
12
+ if !complex_obj_found.nil? && p.struct? && !p.classified? && p.source_class_name.blank?
15
13
  raise RuntimeError, "Duplicate use of `#{p.basic_type}` type name. Consider using classified types."
16
14
  end
17
15
  end
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: washout_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: