washout_builder 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmE2OGFhZGZhMjA3NzMzZDRiNjU0MmM0MGZjYmZiZmViMTEzYzNhOA==
4
+ ZTA4NWYxOTgyZjQ2MGYwNDY2MzY2ZTYyOGFjNjllNzliOTExZjdlOA==
5
5
  data.tar.gz: !binary |-
6
- MzA0NGQ4MmQ5YjY2N2VlZmYxMjc4ZmZmYjBjZmQ4ZjdkMjg4ZDc5ZA==
6
+ MjU3MjQ4MjkzN2E0NTVhZjJlYmVkYTczNDVkYTZmMTIxZmZlYzg5OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjRlMmVlNzhlOTcwM2RmZWI1NDdiMWNiM2NmZTVhODg4ZjliZjNlYTU2OWY5
10
- MzhkOTMwODZmZDRmNjAxODk5MTgwNjczYjRiMTU3MmQwNDlkMTJjZGM3YzZj
11
- MmMwOTkxYTVmNTQ4MGZjYjgyMzkzNGI5YmQwN2FhYTYwNzBkMmU=
9
+ MWY4MTUzMzlhODA4NGJlNTU2YTIzNTg5NWIyZTZkNWFlZTI5MmZlYWZiNWM4
10
+ ZDBlMDQ0NzNkM2Y0ZGRjOTBkNDUwMThmZTVlMTRlNTFiZmIwYzIwNTRlMDVj
11
+ YjZhZWFkYWM3NWY3MWMyM2ZhNjAyNThhMTBmYmU3NWU3YzM0Yjg=
12
12
  data.tar.gz: !binary |-
13
- YTA2MDI1NWNjYmYyNDMyZDI2ZDlhYjMwZTgzYmQ3N2Q5YWFhYjgxNTYwMzQ5
14
- OTNlNWE4ZjAwYzY4ZTgxZjc4MGFmYWMxMDBjNWIzNmZkMDg1M2VkZjk3NTRh
15
- YmM0NmNmZGMxMjRlZDQ1YTdmNDE4N2YyMDEyMTNlNWQzMjFiOWI=
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 = [WashOut::SOAPError]
77
+ defined = [SOAPError]
78
78
  else
79
- defined << WashOut::SOAPError
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]
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
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.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada