washout_builder 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDQ2OGJiMzYxM2FkYWM5ZjZlNWViOWU1MjA3NWZiNGFlNDUyYjAyNQ==
4
+ ZjE2OTY2YzkwZDc4ZmY3OWQ2YTkyYzM5ODA0MmY3ZjRlMDI4YzYwMw==
5
5
  data.tar.gz: !binary |-
6
- ZDlhOTM3MGFmNTEwZjk1YTM3NTlkYzM5MDE1ODBmMjlhMTcyYTU0OA==
6
+ YzJjNDYzMGVhNjk3N2FjZmQ1NmM2ZDg2ODFmZGQ5OTMwYzVlM2M1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGVhM2QzYTVmNzMyMjM4ZGJkN2RjY2EyNmQ4YzViMTZhYTBiNDUxOWQ3MzE2
10
- ZGQ1Zjc1ZmIzNWU1NjFhOGRmZDIyOTIzNDQ2N2YxYzgwOTRmMjU1ZWFlOWEz
11
- MjlkMDBkY2UzMzUzNmU5OTE3ZDQwMzRlMmE2YTZkMmMwNGMwZTE=
9
+ ZDQ3YjEzZTIyNzIzOGVlM2RlODE0ZDAzMzExMzQ2NThmZmQ5YjA1NWI3ZGZl
10
+ NGMzNGNhMGIzY2I2OTU1MjFhNzdmZDljYTZjODFjYzI0YTAyODhmZjAwZDgy
11
+ ZTE1MTdjY2RiZGY4MzdhNzNmODEwZWJlYmNhY2NkZDBmNmU2NTc=
12
12
  data.tar.gz: !binary |-
13
- YjhkZDU3YTAyNmE2MDFkMWUzODk2NzJlMmJmZWI0NmZhZjI5YTU1YjRhNzc3
14
- OWZiMWVlNzAyMWEyNWI2MzY4NWNhYTdlNjdhNTRlNWM4YjkwYTI4NGE3YTNh
15
- ZDY4ZDQ1ZjkxNTIwM2JhNTJlMjI4NmZmNDRhZmRlNjhhMGE0ODA=
13
+ ZTkzZDBjODdlOGRmOWY0YWU5OGJjZWMyNWJkYmFkNmQ1MmM3MmY3ZmMzOWQ3
14
+ MzcwZjFiZDNiZjc5ODZiZTdlMDc0YTg3YzQxNzRhNzE3NjUzNzc3MjhkZjNh
15
+ NDQ5OTcyODBjYzZiODhlZjlmYTI1MzAyOWNlNDcwNTQ4YWQ5ZWQ=
@@ -38,24 +38,24 @@ module WashoutBuilder
38
38
  end
39
39
 
40
40
 
41
- def attr_details_array?(attr_details)
42
- attr_details[:primitive].to_s.downcase == "array"
43
- end
41
+ # def attr_details_array?(attr_details)
42
+ # attr_details[:primitive].to_s.downcase == "array"
43
+ # end
44
+ #
45
+ # def attr_details_basic_type?(attr_details, field)
46
+ # WashoutBuilder::Type::BASIC_TYPES.include?(attr_details[field.to_sym].to_s.downcase)
47
+ # end
44
48
 
45
- def attr_details_basic_type?(attr_details, field)
46
- WashoutBuilder::Type::BASIC_TYPES.include?(attr_details[field.to_sym].to_s.downcase)
47
- end
48
-
49
- def get_virtus_member_type_primitive(attr_details)
50
- complex_class = nil
51
- if attr_details_array?(attr_details) && !attr_details_basic_type?(attr_details, "member_type")
52
- complex_class = attr_details[:member_type]
53
- elsif !attr_details_array?(attr_details) && !attr_details_basic_type?(attr_details, "primitive")
54
- complex_class = attr_details[:primitive]
55
- end
56
- complex_class
57
- end
58
-
49
+ # def get_virtus_member_type_primitive(attr_details)
50
+ # complex_class = nil
51
+ # if attr_details_array?(attr_details) && !attr_details_basic_type?(attr_details, "member_type")
52
+ # complex_class = attr_details[:member_type]
53
+ # elsif !attr_details_array?(attr_details) && !attr_details_basic_type?(attr_details, "primitive")
54
+ # complex_class = attr_details[:primitive]
55
+ # end
56
+ # complex_class
57
+ # end
58
+ #
59
59
 
60
60
  def get_exception_attributes
61
61
  attrs = self.instance_methods.find_all do |method|
@@ -87,17 +87,17 @@ module WashoutBuilder
87
87
  end
88
88
 
89
89
 
90
- def self.extract_nested_complex_types(complex_class, complex_types)
91
- unless complex_class.nil?
92
- param_class = complex_class.is_a?(Class) ? complex_class : complex_class.constantize rescue nil
93
- if param_class.present? && WashoutBuilder::Type.valid_fault_class?(param_class)
94
- param_class.send :extend, WashoutBuilder::Document::ExceptionModel
95
- param_class.get_fault_class_ancestors( complex_types)
96
- elsif param_class.present? && !WashoutBuilder::Type.valid_fault_class?(param_class)
97
- raise RuntimeError, "Non-existent use of `#{param_class}` type name or this class does not inherit from SoapError. Consider using classified types that include SoapError for exception classes."
98
- end
99
- end
100
- end
90
+ # def self.extract_nested_complex_types(complex_class, complex_types)
91
+ # unless complex_class.nil?
92
+ # param_class = complex_class.is_a?(Class) ? complex_class : complex_class.constantize rescue nil
93
+ # if param_class.present? && WashoutBuilder::Type.valid_fault_class?(param_class)
94
+ # param_class.send :extend, WashoutBuilder::Document::ExceptionModel
95
+ # param_class.get_fault_class_ancestors( complex_types)
96
+ # elsif param_class.present? && !WashoutBuilder::Type.valid_fault_class?(param_class)
97
+ # raise RuntimeError, "Non-existent use of `#{param_class}` type name or this class does not inherit from SoapError. Consider using classified types that include SoapError for exception classes."
98
+ # end
99
+ # end
100
+ # end
101
101
 
102
102
  end
103
103
  end
@@ -105,23 +105,23 @@ module WashoutBuilder
105
105
 
106
106
  def fault_types
107
107
  fault_types = get_complex_fault_types([])
108
- complex_types = extract_nested_complex_types_from_exceptions(fault_types)
108
+ # complex_types = extract_nested_complex_types_from_exceptions(fault_types)
109
109
  complex_types.delete_if{ |hash| fault_types << hash if WashoutBuilder::Type.valid_fault_class?(hash[:fault]) } unless complex_types.blank?
110
110
  fault_types = sort_complex_types(fault_types, "fault")
111
111
  complex_types = sort_complex_types(complex_types, "fault")
112
112
  [fault_types, complex_types]
113
113
  end
114
114
 
115
- def extract_nested_complex_types_from_exceptions(fault_types)
116
- complex_types = []
117
- fault_types.each do |hash|
118
- hash[:structure].each do |attribute, attr_details|
119
- complex_class = hash[:fault].get_virtus_member_type_primitive(attr_details)
120
- WashoutBuilder::Document::ExceptionModel.extract_nested_complex_types(complex_class, complex_types)
121
- end
122
- end
123
- complex_types
124
- end
115
+ # def extract_nested_complex_types_from_exceptions(fault_types)
116
+ # complex_types = []
117
+ # fault_types.each do |hash|
118
+ # hash[:structure].each do |attribute, attr_details|
119
+ # complex_class = hash[:fault].get_virtus_member_type_primitive(attr_details)
120
+ # WashoutBuilder::Document::ExceptionModel.extract_nested_complex_types(complex_class, complex_types)
121
+ # end
122
+ # end
123
+ # complex_types
124
+ # end
125
125
 
126
126
 
127
127
 
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.1"
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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada