Skip to content

Commit

Permalink
Merge branch 'release/0.11.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Jan 7, 2014
2 parents 38a3c92 + a8a31d3 commit dbac80e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/washout_builder/document/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def complex_types
(input_types + output_types).each do |p|
defined.concat(p.get_nested_complex_types(config, defined))
end
defined.sort_by { |hash| hash[:class].to_s.downcase }.uniq unless defined.blank?
defined.sort_by { |hash| hash[:class].to_s.downcase }.uniq{|hash| hash[:class] } unless defined.blank?
end


Expand All @@ -85,8 +85,8 @@ def fault_types
defined.each{ |exception_class| exception_class.get_fault_class_ancestors( fault_types, true)} unless defined.blank?
complex_types = extract_nested_complex_types_from_exceptions(fault_types)
complex_types.delete_if{ |hash| fault_types << hash if (hash[:fault].is_a?(Class) && hash[:fault].ancestors.detect{ |fault| WashoutBuilder::Type.get_fault_classes.include?(fault) }.present?) || (hash[:fault].is_a?(Class) && WashoutBuilder::Type.get_fault_classes.include?(hash[:fault])) } unless complex_types.blank?
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 = fault_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq {|hash| hash[:fault] } unless fault_types.blank?
complex_types = complex_types.sort_by { |hash| hash[:fault].to_s.downcase }.uniq {|hash| hash[:fault] } 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.11.2"
VERSION = "0.11.3"
end

0 comments on commit dbac80e

Please sign in to comment.