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.
@@ -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
@@ -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",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prauga
4
4
  module FlexDoc
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prauga-flexdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prauga