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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fce5b3306d3b80e9f1cd546f3be71f1f340c1fc22240c139e175ba02c9a290c
4
- data.tar.gz: d0d6d0f7dd3e4c83adbcdb282679f1e06471456eebc8a5267ea40b72fe062b24
3
+ metadata.gz: 9afc47641bfa43cbd6f61dda1eca78689812f86a78c0ed484020c32fe4053993
4
+ data.tar.gz: dadf9448a3f8cfc273cda5ad50db7696069b3089f33c53f771b01cefd4e2dd67
5
5
  SHA512:
6
- metadata.gz: 988d32eb83fa781e2b7c33d1699b491ecf66727400c33270f28a1f735a4a81bc5980832c1f2fa9921ca8f9c391d872d50ad9691e81baea1b63e98d5658455e5e
7
- data.tar.gz: 419dd4b141e4b4ac3cddaaa7c304f001966e9c4bedc316e4618c1579d35cbd5f5dbfce7634d94bfb49db9d07deaad326be8da0bab3ba9c7b2f99dbabb7bc6cac
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexmo-oas-renderer (0.5.5)
4
+ nexmo-oas-renderer (0.5.6)
5
5
  activemodel (~> 5.2)
6
6
  activesupport (~> 5.2)
7
7
  banzai (~> 0.1.2)
@@ -31,6 +31,7 @@ module Nexmo
31
31
  conversion
32
32
  subaccounts
33
33
  developer/messages
34
+ reports
34
35
  ].freeze
35
36
 
36
37
  def self.match?(definition, code_language = nil)
@@ -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.click();
26
+ element.dispatchEvent(new Event('toggle'));
27
27
  });
28
28
  });
29
29
  });
@@ -48,6 +48,10 @@ Volta.tab = function () {
48
48
  _this._links.forEach(function(link){
49
49
  var link = link;
50
50
 
51
+ link.addEventListener('toggle', function() {
52
+ _this.toggle(link);
53
+ });
54
+
51
55
  link.addEventListener('click', function() {
52
56
  _this.toggle(link);
53
57
  });
@@ -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=style.css.map */
861
+ /*# sourceMappingURL=nexmo-oas-renderer.css.map */
@@ -50,10 +50,6 @@
50
50
  }
51
51
 
52
52
  .navigation--documentation {
53
- .navigation-item--tutorials a {
54
- color: $green-dark;
55
- }
56
-
57
53
  .navigation-item--api-reference a {
58
54
  color: $blue-dark;
59
55
  }
@@ -1,7 +1,7 @@
1
1
  module Nexmo
2
2
  module OAS
3
3
  module Renderer
4
- VERSION = "0.5.5"
4
+ VERSION = "0.5.6"
5
5
  end
6
6
  end
7
7
  end
@@ -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.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-01 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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.