washout_builder 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDg5NjI2ZDY3MjI2OGU0NDJjNjQ4Y2FmMzRlZDQ3MjY0ZDkwMWZlOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWUzMDQ1NDkzNTRmYjY1NWIwYWEyNzBhOTQyOTBmMzczNmU3NTNiYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjBmNGY3ZWY0OWZlMTkzNGIzN2UzOTNmY2YwODg2YjJlYzgyZWExNjBmNDgw
|
10
|
+
MDJmNGVkZWEyNDE0YzgxOGExNzUyYTRhZTljNmY3ODNiM2EzZmJiOTEyN2Vj
|
11
|
+
NzkzMDAzMjA3YzYzMWJmYTFhZWI1YWJlNWRjOWRkZDM1YjBlNGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NWM5NjY1YWE2MGYxYmRiOTg2YjNjNjliNzU5YWZmMDQ1NjRlZmM5ZjBjYjRl
|
14
|
+
Mjg2MDQ3NDJjNWVhNDVmOWU4YWJkNzhkNTU2N2JmMTUzYzcyNmJhYmM2NWM3
|
15
|
+
ZGM4N2IwYmJiM2I5NzJlY2Y2ZGNjZGYwYzQxMmQxMWRjZjE5NzI=
|
@@ -5,22 +5,22 @@ class WashoutBuilderController < ActionController::Base
|
|
5
5
|
# get a list of unique controller names
|
6
6
|
controllers = Rails.application.routes.routes.map do |route|
|
7
7
|
if route.defaults[:action] == "_generate_doc"
|
8
|
-
|
8
|
+
{:class => "#{route.defaults[:controller]}_controller".camelize.constantize, :name => route.defaults[:controller] }
|
9
9
|
end
|
10
10
|
end.uniq.compact
|
11
11
|
|
12
12
|
@services = []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
unless controllers.blank?
|
14
|
+
controllers.map do |hash|
|
15
|
+
namespace = hash[:class].soap_config.namespace
|
16
|
+
@services << {
|
17
|
+
:service_name => hash[:class].to_s.underscore.gsub("_controller", "").camelize ,
|
18
|
+
:namespace => namespace,
|
19
|
+
:endpoint => namespace.gsub("/wsdl", "/action"),
|
20
|
+
:documentation_url => "#{request.protocol}#{request.host_with_port}/#{hash[:name]}/doc",
|
21
21
|
}
|
22
|
+
end
|
22
23
|
end
|
23
|
-
end
|
24
24
|
|
25
25
|
|
26
26
|
render :template => "wash_with_html/all_services", :layout => false,
|
@@ -97,7 +97,7 @@ module WashoutBuilderHelper
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def create_html_fault_types_details(xml, map)
|
100
|
-
|
100
|
+
defined = map.select{|operation, formats| !formats[:raises].blank? }
|
101
101
|
unless defined.blank?
|
102
102
|
defined = defined.collect {|operation, formats| formats[:raises].is_a?(Array) ? formats[:raises] : [formats[:raises]] }.flatten.sort_by { |item| item.class.to_s.downcase }.uniq
|
103
103
|
defined.each do |fault|
|
@@ -249,7 +249,7 @@ module WashoutBuilderHelper
|
|
249
249
|
xml.p "Exceptions:"
|
250
250
|
xml.ul {
|
251
251
|
faults.each do |p|
|
252
|
-
xml.li("class" => "pre"){ |y| y<< "<a href='##{p.to_s
|
252
|
+
xml.li("class" => "pre"){ |y| y<< "<a href='##{p.class.to_s}'><span class='lightBlue'> #{p.class.to_s}</span></a>" }
|
253
253
|
end
|
254
254
|
}
|
255
255
|
end
|
@@ -35,15 +35,15 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
35
35
|
|
36
36
|
|
37
37
|
xml.body {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
unless @services.blank?
|
39
|
+
|
40
|
+
@services.each do |service|
|
41
|
+
xml.h1 "#{service[:service_name]} Soap Webservice"
|
42
|
+
xml.p {|pre| pre << "Documentation URI: <a href='#{service[:documentation_url]}'><span class='pre'>#{service[:documentation_url]}</span></a>" }
|
43
|
+
xml.p {|pre| pre << "Endpoint URI: <span class='pre'>#{service[:endpoint]}</span>" }
|
44
|
+
xml.p {|pre| pre << "WSDL URI: <a href='#{service[:namespace]}'><span class='pre'>#{service[:namespace]}</span></a>" }
|
45
|
+
end
|
45
46
|
end
|
46
|
-
end
|
47
47
|
|
48
48
|
}
|
49
49
|
|
@@ -21,21 +21,16 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
21
21
|
.blue{color:#3400FF;}
|
22
22
|
.lightBlue{color:#5491AF;}
|
23
23
|
"
|
24
|
-
|
25
24
|
}
|
26
25
|
|
27
26
|
xml.style( "type"=>"text/css", "media" => "print" ) { xml.text! "
|
28
27
|
.noprint{display:none;}
|
29
28
|
"
|
30
|
-
|
31
29
|
}
|
32
|
-
|
33
|
-
|
34
30
|
}
|
35
31
|
|
36
32
|
xml.body {
|
37
33
|
|
38
|
-
|
39
34
|
xml.h1 "#{ @service} Soap WebService interface description"
|
40
35
|
|
41
36
|
xml.p{ |y| y << "Endpoint URI:";
|
@@ -63,7 +58,6 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
63
58
|
end
|
64
59
|
end
|
65
60
|
|
66
|
-
|
67
61
|
@fault_types = get_fault_types_names(@map)
|
68
62
|
unless @fault_types.blank?
|
69
63
|
xml.p "Fault Types: "
|
@@ -75,7 +69,6 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
75
69
|
end
|
76
70
|
end
|
77
71
|
|
78
|
-
|
79
72
|
methods = get_soap_action_names(@map)
|
80
73
|
unless methods.blank?
|
81
74
|
xml.p "Public Methods:"
|
@@ -87,31 +80,19 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
87
80
|
end
|
88
81
|
end
|
89
82
|
|
90
|
-
|
91
|
-
|
92
83
|
}
|
93
84
|
|
94
|
-
|
95
85
|
xml.h2 "Complex types:"
|
96
|
-
|
97
86
|
create_html_complex_types(xml, @complex_types)
|
98
87
|
|
99
|
-
|
100
|
-
|
101
88
|
unless @fault_types.blank?
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
89
|
+
xml.h2 "Fault types:"
|
90
|
+
create_html_fault_types_details(xml, @map)
|
91
|
+
end
|
107
92
|
|
108
93
|
xml.h2 "Public methods:"
|
109
94
|
create_html_public_methods(xml, @map)
|
110
95
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
96
|
}
|
116
97
|
|
117
98
|
}
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: washout_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- bogdanRada
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: nori
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: wash_out
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -75,27 +70,26 @@ files:
|
|
75
70
|
homepage: http://github.com/bogdanRada/washout_builder/
|
76
71
|
licenses:
|
77
72
|
- MIT
|
73
|
+
metadata: {}
|
78
74
|
post_install_message:
|
79
75
|
rdoc_options: []
|
80
76
|
require_paths:
|
81
77
|
- lib
|
82
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
79
|
requirements:
|
85
80
|
- - ! '>='
|
86
81
|
- !ruby/object:Gem::Version
|
87
82
|
version: '0'
|
88
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
84
|
requirements:
|
91
85
|
- - ! '>='
|
92
86
|
- !ruby/object:Gem::Version
|
93
87
|
version: '0'
|
94
88
|
requirements: []
|
95
89
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 2.1.11
|
97
91
|
signing_key:
|
98
|
-
specification_version:
|
92
|
+
specification_version: 4
|
99
93
|
summary: WashOut Soap Service Documentation builder (extends WashOut https://github.com/inossidabile/wash_out/)
|
100
94
|
test_files:
|
101
95
|
- spec/spec_helper.rb
|