From 9a367fe4ab67608beab6fb278ddb9603c0557490 Mon Sep 17 00:00:00 2001 From: bogdanRada Date: Tue, 10 Dec 2013 14:10:57 +0200 Subject: [PATCH] update --- app/views/wash_with_html/doc.builder | 40 +++++++++++++++++----------- lib/washout_builder/version.rb | 2 +- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/app/views/wash_with_html/doc.builder b/app/views/wash_with_html/doc.builder index a3714f5..eb6d2b1 100644 --- a/app/views/wash_with_html/doc.builder +++ b/app/views/wash_with_html/doc.builder @@ -50,14 +50,17 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) { xml.div("class" => "noprint") { xml.h2 "Index " - xml.p "Complex Types: " @complex_types = get_complex_types(@map) - xml.ul do - @complex_types.each do |hash| - xml.li { |y| y << "#{hash[:class]}" } + unless @complex_types.blank? + xml.p "Complex Types: " + + xml.ul do + @complex_types.each do |hash| + xml.li { |y| y << "#{hash[:class]}" } + end end + end - @fault_types = get_fault_types_names(@map) unless @fault_types.blank? xml.p "Fault Types: " @@ -69,12 +72,12 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) { end end - methods = get_soap_action_names(@map) - unless methods.blank? + @methods = get_soap_action_names(@map) + unless @methods.blank? xml.p "Public Methods:" xml.ul do - methods.each do |name| + @methods.each do |name| xml.li { |y| y << "#{name}" } end end @@ -82,17 +85,24 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) { } - xml.h2 "Complex types:" - create_html_complex_types(xml, @complex_types) - + unless @complex_types.blank? + xml.h2 "Complex types:" + create_html_complex_types(xml, @complex_types) + end unless @fault_types.blank? xml.h2 "Fault types:" create_html_fault_types_details(xml, @map) end - - xml.h2 "Public methods:" - create_html_public_methods(xml, @map) - + unless @methods.blank? + xml.h2 "Public methods:" + create_html_public_methods(xml, @map) + end + + if @complex_types.blank? && @fault_types.blank? && @methods.blank? + xml.p "There are no soap actions defined yet for this service. Please add some actions and try again!" + end + + } } \ No newline at end of file diff --git a/lib/washout_builder/version.rb b/lib/washout_builder/version.rb index a86a11d..ae3f2b0 100644 --- a/lib/washout_builder/version.rb +++ b/lib/washout_builder/version.rb @@ -1,3 +1,3 @@ module WashoutBuilder - VERSION = "0.8.9" + VERSION = "0.8.10" end