prauga-flexdoc 0.4.0 → 0.4.1
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 +4 -4
- data/README.md +1 -1
- data/assets/flexdoc.standalone.css +1 -1
- data/assets/flexdoc.standalone.js +69 -53
- data/lib/prauga/flexdoc/config.rb +6 -3
- data/lib/prauga/flexdoc/host.rb +7 -0
- data/lib/prauga/flexdoc/version.rb +1 -1
- metadata +1 -1
|
@@ -11,7 +11,8 @@ module Prauga
|
|
|
11
11
|
:expand,
|
|
12
12
|
:try_it_default_server,
|
|
13
13
|
:try_it_credentials,
|
|
14
|
-
:try_it_api_client_persistence_key
|
|
14
|
+
:try_it_api_client_persistence_key,
|
|
15
|
+
:try_it_host_execution
|
|
15
16
|
) do
|
|
16
17
|
def initialize(
|
|
17
18
|
path: "/docs",
|
|
@@ -22,7 +23,8 @@ module Prauga
|
|
|
22
23
|
expand: nil,
|
|
23
24
|
try_it_default_server: nil,
|
|
24
25
|
try_it_credentials: nil,
|
|
25
|
-
try_it_api_client_persistence_key: nil
|
|
26
|
+
try_it_api_client_persistence_key: nil,
|
|
27
|
+
try_it_host_execution: false
|
|
26
28
|
)
|
|
27
29
|
normalized = "/#{path.to_s.gsub(%r{\A/+|/+$}, "")}"
|
|
28
30
|
normalized = "/docs" if normalized == "/"
|
|
@@ -43,7 +45,8 @@ module Prauga
|
|
|
43
45
|
expand: expand,
|
|
44
46
|
try_it_default_server: try_it_default_server,
|
|
45
47
|
try_it_credentials: try_it_credentials,
|
|
46
|
-
try_it_api_client_persistence_key: try_it_api_client_persistence_key
|
|
48
|
+
try_it_api_client_persistence_key: try_it_api_client_persistence_key,
|
|
49
|
+
try_it_host_execution: !!try_it_host_execution
|
|
47
50
|
)
|
|
48
51
|
end
|
|
49
52
|
end
|
data/lib/prauga/flexdoc/host.rb
CHANGED
|
@@ -32,6 +32,13 @@ module Prauga
|
|
|
32
32
|
try_it[:defaultServer] = config.try_it_default_server unless config.try_it_default_server.nil?
|
|
33
33
|
try_it[:credentials] = config.try_it_credentials unless config.try_it_credentials.nil?
|
|
34
34
|
try_it[:apiClientPersistenceKey] = config.try_it_api_client_persistence_key unless config.try_it_api_client_persistence_key.nil?
|
|
35
|
+
if config.try_it_host_execution
|
|
36
|
+
try_it[:hostExecution] = {
|
|
37
|
+
available: false,
|
|
38
|
+
endpoint: "#{config.path}/__flexdoc/execute",
|
|
39
|
+
capabilities: []
|
|
40
|
+
}
|
|
41
|
+
end
|
|
35
42
|
|
|
36
43
|
options = {
|
|
37
44
|
contractVersion: "1",
|