nexmo-oas-renderer 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/nexmo/oas/renderer/constraints/open_api.rb +1 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/{application.js → nexmo-oas-renderer.js} +4 -4
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/{style.css → nexmo-oas-renderer.css} +0 -0
- data/lib/nexmo/oas/renderer/version.rb +1 -1
- data/lib/nexmo/oas/renderer/views/layouts/_head.erb +1 -1
- data/lib/nexmo/oas/renderer/views/layouts/_javascripts.erb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 386fdf3ed82834c48d914044ebb508731c1ffd11ece58c938838b701f03e740f
|
4
|
+
data.tar.gz: 8114c77db9d427c1b91b14eec1b3a81dbe2cb23ac7e1bb12bb771a30aa36f519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba72d949b949515c93413986307d1a9566ee6462d1c78ef2d2bbbad934fe4be8b614d50f71b4277729fabe8b87783783a49a19d4cc7107d05cf95686338751a5
|
7
|
+
data.tar.gz: d1d25d488466021faf651bba03ef7d29932dc7bb48dbff824b53394f809e29b148909fd568fdd4bf0289577a8cc2e83ad9efa3938ac9d40d2d6fde4f7d0dee96
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nexmo-oas-renderer (0.4.
|
4
|
+
nexmo-oas-renderer (0.4.1)
|
5
5
|
activemodel (~> 5.2)
|
6
6
|
activesupport (~> 5.2)
|
7
7
|
banzai (~> 0.1.2)
|
@@ -59,8 +59,8 @@ GEM
|
|
59
59
|
i18n (>= 0.7, < 2)
|
60
60
|
minitest (~> 5.1)
|
61
61
|
tzinfo (~> 1.1)
|
62
|
-
addressable (2.
|
63
|
-
public_suffix (>= 2.0.2, <
|
62
|
+
addressable (2.7.0)
|
63
|
+
public_suffix (>= 2.0.2, < 5.0)
|
64
64
|
arel (9.0.0)
|
65
65
|
banzai (0.1.3)
|
66
66
|
builder (3.2.3)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
hansi (~> 0.2.0)
|
94
94
|
mustermann (= 1.0.3)
|
95
95
|
neatjson (0.9)
|
96
|
-
nio4r (2.
|
96
|
+
nio4r (2.5.1)
|
97
97
|
nokogiri (1.10.4)
|
98
98
|
mini_portile2 (~> 2.4.0)
|
99
99
|
oas_parser (0.18.1)
|
@@ -108,7 +108,7 @@ GEM
|
|
108
108
|
octicons_helper (8.5.0)
|
109
109
|
octicons (= 8.5.0)
|
110
110
|
rails
|
111
|
-
public_suffix (
|
111
|
+
public_suffix (4.0.1)
|
112
112
|
rack (2.0.7)
|
113
113
|
rack-protection (2.0.7)
|
114
114
|
rack
|
data/lib/nexmo/oas/renderer/public/assets/javascripts/{application.js → nexmo-oas-renderer.js}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
document.addEventListener("DOMContentLoaded", function() {
|
2
2
|
|
3
3
|
// Toggle text on accordion button for response fields
|
4
|
-
|
4
|
+
var responseDescriptionTogglers = document.getElementsByClassName('response-description-toggle');
|
5
5
|
|
6
|
-
|
6
|
+
Array.from(responseDescriptionTogglers).forEach(function(element) {
|
7
7
|
element.addEventListener('click', function(event) {
|
8
|
-
|
9
|
-
|
8
|
+
var text = event.target.textContent;
|
9
|
+
var newText;
|
10
10
|
if (text.indexOf('View') != -1) {
|
11
11
|
newText = text.replace("View", "Hide");
|
12
12
|
} else {
|
File without changes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<script src="/assets/javascripts/volta.accordion.js"></script>
|
3
3
|
<script src="/assets/javascripts/volta.tabs.js"></script>
|
4
4
|
<script src="/assets/javascripts/volta.modal.js"></script>
|
5
|
-
<script src="/assets/javascripts/
|
5
|
+
<script src="/assets/javascripts/nexmo-oas-renderer.js"></script>
|
6
6
|
<script src="/assets/javascripts/components/format.js"></script>
|
7
7
|
<script src="/assets/javascripts/components/scroll.js"></script>
|
8
8
|
<script type="text/javascript">
|
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.4.
|
4
|
+
version: 0.4.1
|
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-
|
11
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -322,13 +322,14 @@ files:
|
|
322
322
|
- lib/nexmo/oas/renderer/public/assets/images/brands/python.svg
|
323
323
|
- lib/nexmo/oas/renderer/public/assets/images/brands/ruby.svg
|
324
324
|
- lib/nexmo/oas/renderer/public/assets/images/lost.svg
|
325
|
-
- lib/nexmo/oas/renderer/public/assets/javascripts/application.js
|
326
325
|
- lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js
|
327
326
|
- lib/nexmo/oas/renderer/public/assets/javascripts/components/scroll.js
|
327
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/nexmo-oas-renderer.js
|
328
328
|
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js
|
329
329
|
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.core.js
|
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
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css
|
332
333
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss
|
333
334
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss
|
334
335
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/mediaqueries.scss
|
@@ -339,7 +340,6 @@ files:
|
|
339
340
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss
|
340
341
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/variables.scss
|
341
342
|
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss
|
342
|
-
- lib/nexmo/oas/renderer/public/assets/stylesheets/style.css
|
343
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
|