Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Dec 2, 2013
1 parent 04e65ea commit 132d1c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions app/helpers/washout_builder_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def get_nested_complex_types(param, defined)
c_names = []
param.map.each do |obj|
nested = get_nested_complex_types(obj, defined)
nested.each do |hash|
c_names << hash
end
c_names.concat(nested)
end
defined.concat(c_names)
end
Expand All @@ -41,9 +39,7 @@ def get_complex_types(map)
map.each do |operation, formats|
(formats[:input] + formats[:output]).each do |p|
nested = get_nested_complex_types(p, defined)
nested.each do |hash|
defined << hash
end
defined.concat(nested)
end
end
defined << {:class =>"ValidationErrors", :obj => nil} unless get_fault_types_names(map).blank?
Expand All @@ -65,13 +61,7 @@ def get_fault_types_names(map)
end

def get_soap_action_names(map)
defined = []
unless map.blank?
map.each do |operation, formats|
defined << operation.to_s
end
end
defined.sort_by { |name| name.downcase }.uniq unless defined.blank?
map.sort_by { |operation, formats| operation.downcase }.map{|operation, formats| operation.to_s }.uniq unless map.blank?
end


Expand Down
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WashoutBuilder
VERSION = "0.3.8"
VERSION = "0.3.9"
end

0 comments on commit 132d1c3

Please sign in to comment.