washout_builder 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,9 +26,7 @@ module WashoutBuilderHelper
26
26
  c_names = []
27
27
  param.map.each do |obj|
28
28
  nested = get_nested_complex_types(obj, defined)
29
- nested.each do |hash|
30
- c_names << hash
31
- end
29
+ c_names.concat(nested)
32
30
  end
33
31
  defined.concat(c_names)
34
32
  end
@@ -41,9 +39,7 @@ module WashoutBuilderHelper
41
39
  map.each do |operation, formats|
42
40
  (formats[:input] + formats[:output]).each do |p|
43
41
  nested = get_nested_complex_types(p, defined)
44
- nested.each do |hash|
45
- defined << hash
46
- end
42
+ defined.concat(nested)
47
43
  end
48
44
  end
49
45
  defined << {:class =>"ValidationErrors", :obj => nil} unless get_fault_types_names(map).blank?
@@ -65,13 +61,7 @@ module WashoutBuilderHelper
65
61
  end
66
62
 
67
63
  def get_soap_action_names(map)
68
- defined = []
69
- unless map.blank?
70
- map.each do |operation, formats|
71
- defined << operation.to_s
72
- end
73
- end
74
- defined.sort_by { |name| name.downcase }.uniq unless defined.blank?
64
+ map.sort_by { |operation, formats| operation.downcase }.map{|operation, formats| operation.to_s }.uniq unless map.blank?
75
65
  end
76
66
 
77
67
 
@@ -1,3 +1,3 @@
1
1
  module WashoutBuilder
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
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.8
4
+ version: 0.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: