nexmo-oas-renderer 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/nexmo/oas/renderer/constraints/open_api.rb +1 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/nexmo-oas-renderer.js +1 -1
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.tabs.js +4 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css +1 -3
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/{style.css.map → nexmo-oas-renderer.css.map} +0 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss +0 -4
- data/lib/nexmo/oas/renderer/version.rb +1 -1
- data/lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb +2 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9afc47641bfa43cbd6f61dda1eca78689812f86a78c0ed484020c32fe4053993
|
4
|
+
data.tar.gz: dadf9448a3f8cfc273cda5ad50db7696069b3089f33c53f771b01cefd4e2dd67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554a18c40f7898797f2b03d8a7f4078d6ffc0c8f64fcf3e1976a2ed5c5b0e607a7ec0440d4a0952119337aa222358d1aa636b3d84f2923124a05b51308091c36
|
7
|
+
data.tar.gz: d7e7bb2d31e60e5b7438538d3e07e7f0877aa31cf0fb1be65f67c8539adfb0080c044c2c2b7e3e29101e5dca155a38aac909812884c319ba01e03cd59ba7932d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# 0.5.6
|
2
|
+
* Add `reports` to open_api docs' constraints
|
3
|
+
* Make tab selection with `x-tab-id` trigger all tabs (support for request bodies)
|
4
|
+
* Remove CSS styling for tutorial links
|
5
|
+
|
1
6
|
# 0.5.5
|
2
7
|
* Add `vonage-business-cloud/reports` to open_api docs' constraints
|
3
8
|
|
data/Gemfile.lock
CHANGED
@@ -23,7 +23,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
23
23
|
var link = event.target.getAttribute('data-tab-link');
|
24
24
|
var matchingTabs = document.querySelectorAll('[data-tab-link="'+link+'"]');
|
25
25
|
Array.from(matchingTabs).forEach(function(element) {
|
26
|
-
element.
|
26
|
+
element.dispatchEvent(new Event('toggle'));
|
27
27
|
});
|
28
28
|
});
|
29
29
|
});
|
@@ -290,8 +290,6 @@ table .Vlt-icon:not(.Vlt-icon--smaller) {
|
|
290
290
|
@media only screen and (min-width: 576px) {
|
291
291
|
.Vlt-sidenav {
|
292
292
|
height: calc(100vh - 111px); } }
|
293
|
-
.navigation--documentation .navigation-item--tutorials a {
|
294
|
-
color: #2d966f; }
|
295
293
|
.navigation--documentation .navigation-item--api-reference a {
|
296
294
|
color: #117bb8; }
|
297
295
|
.navigation--documentation .navigation-item--sdk-documentation > a {
|
@@ -860,4 +858,4 @@ pre {
|
|
860
858
|
.Vlt-template--header .Vlt-main {
|
861
859
|
height: calc(100vh - 70px); } }
|
862
860
|
|
863
|
-
/*# sourceMappingURL=
|
861
|
+
/*# sourceMappingURL=nexmo-oas-renderer.css.map */
|
data/lib/nexmo/oas/renderer/public/assets/stylesheets/{style.css.map → nexmo-oas-renderer.css.map}
RENAMED
File without changes
|
@@ -63,6 +63,7 @@
|
|
63
63
|
panels.push({
|
64
64
|
'description' => description,
|
65
65
|
'parameters' => parameters,
|
66
|
+
'x-tab-id' => c['x-tab-id'],
|
66
67
|
'active' => index == 0
|
67
68
|
})
|
68
69
|
end
|
@@ -71,7 +72,7 @@
|
|
71
72
|
<div class="Vlt-tabs js-format" data-format="<%= format %>">
|
72
73
|
<div class="Vlt-tabs__header" role="tablist" aria-label="Responses">
|
73
74
|
<% panels.each do |panel| %>
|
74
|
-
<div class="Vlt-tabs__link <%= panel['active'] ? 'Vlt-tabs__link_active' : '' %>">
|
75
|
+
<div data-tab-link="<%= panel['x-tab-id'] %>" class="Vlt-tabs__link <%= panel['active'] ? 'Vlt-tabs__link_active' : '' %>">
|
75
76
|
<%= panel['description'] %>
|
76
77
|
</div>
|
77
78
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo-oas-renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabian Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -330,6 +330,7 @@ files:
|
|
330
330
|
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.modal.js
|
331
331
|
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.tabs.js
|
332
332
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css
|
333
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css.map
|
333
334
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss
|
334
335
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss
|
335
336
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/mediaqueries.scss
|
@@ -340,7 +341,6 @@ files:
|
|
340
341
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss
|
341
342
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/variables.scss
|
342
343
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss
|
343
|
-
- lib/nexmo/oas/renderer/public/assets/stylesheets/style.css.map
|
344
344
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css
|
345
345
|
- lib/nexmo/oas/renderer/public/assets/symbol/volta-icons.svg
|
346
346
|
- lib/nexmo/oas/renderer/public/favicon.ico
|
@@ -403,7 +403,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
403
403
|
- !ruby/object:Gem::Version
|
404
404
|
version: '0'
|
405
405
|
requirements: []
|
406
|
-
|
406
|
+
rubyforge_project:
|
407
|
+
rubygems_version: 2.7.6.2
|
407
408
|
signing_key:
|
408
409
|
specification_version: 4
|
409
410
|
summary: OpenAPI Specification renderer.
|