washout_builder 0.10.1 → 0.10.2
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
|
-
|
4
|
+
ZTA4NWYxOTgyZjQ2MGYwNDY2MzY2ZTYyOGFjNjllNzliOTExZjdlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjU3MjQ4MjkzN2E0NTVhZjJlYmVkYTczNDVkYTZmMTIxZmZlYzg5OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWY4MTUzMzlhODA4NGJlNTU2YTIzNTg5NWIyZTZkNWFlZTI5MmZlYWZiNWM4
|
10
|
+
ZDBlMDQ0NzNkM2Y0ZGRjOTBkNDUwMThmZTVlMTRlNTFiZmIwYzIwNTRlMDVj
|
11
|
+
YjZhZWFkYWM3NWY3MWMyM2ZhNjAyNThhMTBmYmU3NWU3YzM0Yjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2FjODc5YTA1OGFkNTllZDkwZjlhYWY4NDg2OTFhMzIxYTNmOTNjNGY1NzMz
|
14
|
+
MmZmMWQ0MzEzZDExNzM0YTQyNjJjNjRjMGI1OTA3NjZlMGM1ZDNjZjM4ODk1
|
15
|
+
NjI4ZWNmNmU4MzM3ZDg3YzMzMDZmOTE1ZTJjMGZhMGZlNzVlZjA=
|
@@ -198,7 +198,7 @@ module WashoutBuilderHelper
|
|
198
198
|
faults = formats[:raises]
|
199
199
|
faults = [formats[:raises]] if !faults.is_a?(Array)
|
200
200
|
|
201
|
-
faults = faults.select { |x| x.is_a?(Class) && x.ancestors.include?(WashOut::SOAPError) }
|
201
|
+
faults = faults.select { |x| x.is_a?(Class) && (x.ancestors.include?(WashOut::SOAPError) || x.ancestors.include?(SOAPError) ) }
|
202
202
|
unless faults.blank?
|
203
203
|
xml.p "Exceptions:"
|
204
204
|
xml.ul {
|
@@ -71,16 +71,16 @@ module WashoutBuilder
|
|
71
71
|
|
72
72
|
def fault_types
|
73
73
|
defined = soap_actions.select{|operation, formats| !formats[:raises].blank? }
|
74
|
-
defined = defined.collect {|operation, formats| formats[:raises].is_a?(Array) ? formats[:raises] : [formats[:raises]] }.flatten.select { |x| x.is_a?(Class) && x.ancestors.include?(WashOut::SOAPError) } unless defined.blank?
|
74
|
+
defined = defined.collect {|operation, formats| formats[:raises].is_a?(Array) ? formats[:raises] : [formats[:raises]] }.flatten.select { |x| x.is_a?(Class) && (x.ancestors.include?(WashOut::SOAPError) || x.ancestors.include?(SOAPError) ) } unless defined.blank?
|
75
75
|
fault_types = []
|
76
76
|
if defined.blank?
|
77
|
-
defined = [
|
77
|
+
defined = [SOAPError]
|
78
78
|
else
|
79
|
-
defined <<
|
79
|
+
defined << SOAPError
|
80
80
|
end
|
81
81
|
defined.each{ |exception_class| exception_class.get_fault_class_ancestors( fault_types, true)} unless defined.blank?
|
82
82
|
complex_types = extract_nested_complex_types_from_exceptions(fault_types)
|
83
|
-
complex_types.delete_if{ |hash| fault_types << hash if hash[:fault].ancestors.include?(WashOut::SOAPError) } unless complex_types.blank?
|
83
|
+
complex_types.delete_if{ |hash| fault_types << hash if hash[:fault].ancestors.include?(WashOut::SOAPError) || hash[:fault].ancestors.include?(SOAPError) } unless complex_types.blank?
|
84
84
|
fault_types = fault_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq unless fault_types.blank?
|
85
85
|
complex_types = complex_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq unless complex_types.blank?
|
86
86
|
[fault_types, complex_types]
|