Skip to content

Commit

Permalink
Merge branch 'release/v0.9.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Dec 12, 2013
2 parents 99bdae6 + ad8ad5b commit 1459045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/helpers/washout_builder_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_fault_types(map)
fault_types = []
defined << WashOut::SOAPError
defined.each{ |item| get_fault_class_ancestors(item, fault_types, true)} unless defined.blank?
fault_types = fault_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq unless fault_types.blank?

complex_types = []
fault_types.each do |hash|
hash[:structure].each do |attribute, attr_details|
Expand All @@ -147,6 +147,8 @@ def get_fault_types(map)

end
end
complex_types.delete_if{ |hash| fault_types << hash if hash[:fault].ancestors.include?(WashOut::SOAPError) }
fault_types = fault_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq unless fault_types.blank?
complex_types = complex_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq unless complex_types.blank?
[fault_types, complex_types]
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.9.6"
VERSION = "0.9.7"
end

0 comments on commit 1459045

Please sign in to comment.