nexmo-oas-renderer 2.4.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -3
- data/.github/workflows/push-docker-publish.yml +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +95 -98
- data/lib/nexmo/oas/renderer/presenters/content_switcher.rb +3 -1
- data/lib/nexmo/oas/renderer/presenters/response_tab/panel.rb +4 -0
- data/lib/nexmo/oas/renderer/presenters/response_tabs.rb +34 -1
- data/lib/nexmo/oas/renderer/version.rb +1 -1
- data/lib/nexmo/oas/renderer/views/open_api/_header.erb +1 -1
- data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +1 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb +2 -1
- data/lib/nexmo/oas/renderer/views/open_api/_response_tabs.erb +6 -6
- data/lib/nexmo/oas/renderer/views/open_api/content_switcher/_dropdown.erb +3 -1
- data/nexmo-oas-renderer.gemspec +5 -6
- metadata +16 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9339c98477b387bcc51f08c29a99a9f276e6f9b43f03bac2234b1a66dcd38c51
|
4
|
+
data.tar.gz: 1f316fa5d3bb3a626dd2389c7d03be2642423fc79dab8b47a682da467261591f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ced88f9af6c08db6654d2f7b1961f17ab1594c0e5bbf3e6e083bd3bdc7d2be14e5e3467720f13aa0fa603689824af043f035d29ef0838431fefb974abf9d4a7
|
7
|
+
data.tar.gz: 157a1d64942f58cd0d527e08425d5b0d14ca50ed7a21365f167c5cb946badf1092ac1c16eb1c05a79b7b798c6b314db8dcb084583197a839b67c2fb2c50eb63e
|
data/.github/workflows/ci.yml
CHANGED
@@ -3,9 +3,9 @@ name: CI
|
|
3
3
|
|
4
4
|
on:
|
5
5
|
push:
|
6
|
-
branches: [
|
6
|
+
branches: [ main ]
|
7
7
|
pull_request:
|
8
|
-
branches: [
|
8
|
+
branches: [ main ]
|
9
9
|
|
10
10
|
jobs:
|
11
11
|
test:
|
@@ -25,4 +25,4 @@ jobs:
|
|
25
25
|
- name: Run tests
|
26
26
|
run: bundle exec rspec
|
27
27
|
- name: Run rubocop
|
28
|
-
run: bundle exec rubocop
|
28
|
+
run: bundle exec rubocop
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nexmo-oas-renderer (2.
|
5
|
-
activemodel (~> 6.
|
6
|
-
activesupport (~> 6.
|
4
|
+
nexmo-oas-renderer (2.7.2)
|
5
|
+
activemodel (~> 6.1)
|
6
|
+
activesupport (~> 6.1)
|
7
7
|
banzai (~> 0.1.2)
|
8
8
|
dotenv (~> 2.7)
|
9
9
|
neatjson (~> 0.8)
|
10
|
-
nexmo_markdown_renderer (~> 0.
|
11
|
-
oas_parser (~> 0.25.
|
12
|
-
|
13
|
-
redcarpet (= 3.4.0)
|
10
|
+
nexmo_markdown_renderer (~> 0.8)
|
11
|
+
oas_parser (~> 0.25.4)
|
12
|
+
redcarpet (= 3.5.1)
|
14
13
|
sass (~> 3.1)
|
15
14
|
shotgun (~> 0.9)
|
16
15
|
sinatra (~> 2.0)
|
@@ -18,109 +17,112 @@ PATH
|
|
18
17
|
GEM
|
19
18
|
remote: https://rubygems.org/
|
20
19
|
specs:
|
21
|
-
actioncable (6.
|
22
|
-
actionpack (= 6.
|
20
|
+
actioncable (6.1.3.2)
|
21
|
+
actionpack (= 6.1.3.2)
|
22
|
+
activesupport (= 6.1.3.2)
|
23
23
|
nio4r (~> 2.0)
|
24
24
|
websocket-driver (>= 0.6.1)
|
25
|
-
actionmailbox (6.
|
26
|
-
actionpack (= 6.
|
27
|
-
activejob (= 6.
|
28
|
-
activerecord (= 6.
|
29
|
-
activestorage (= 6.
|
30
|
-
activesupport (= 6.
|
25
|
+
actionmailbox (6.1.3.2)
|
26
|
+
actionpack (= 6.1.3.2)
|
27
|
+
activejob (= 6.1.3.2)
|
28
|
+
activerecord (= 6.1.3.2)
|
29
|
+
activestorage (= 6.1.3.2)
|
30
|
+
activesupport (= 6.1.3.2)
|
31
31
|
mail (>= 2.7.1)
|
32
|
-
actionmailer (6.
|
33
|
-
actionpack (= 6.
|
34
|
-
actionview (= 6.
|
35
|
-
activejob (= 6.
|
32
|
+
actionmailer (6.1.3.2)
|
33
|
+
actionpack (= 6.1.3.2)
|
34
|
+
actionview (= 6.1.3.2)
|
35
|
+
activejob (= 6.1.3.2)
|
36
|
+
activesupport (= 6.1.3.2)
|
36
37
|
mail (~> 2.5, >= 2.5.4)
|
37
38
|
rails-dom-testing (~> 2.0)
|
38
|
-
actionpack (6.
|
39
|
-
actionview (= 6.
|
40
|
-
activesupport (= 6.
|
41
|
-
rack (~> 2.0, >= 2.0.
|
39
|
+
actionpack (6.1.3.2)
|
40
|
+
actionview (= 6.1.3.2)
|
41
|
+
activesupport (= 6.1.3.2)
|
42
|
+
rack (~> 2.0, >= 2.0.9)
|
42
43
|
rack-test (>= 0.6.3)
|
43
44
|
rails-dom-testing (~> 2.0)
|
44
45
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
45
|
-
actiontext (6.
|
46
|
-
actionpack (= 6.
|
47
|
-
activerecord (= 6.
|
48
|
-
activestorage (= 6.
|
49
|
-
activesupport (= 6.
|
46
|
+
actiontext (6.1.3.2)
|
47
|
+
actionpack (= 6.1.3.2)
|
48
|
+
activerecord (= 6.1.3.2)
|
49
|
+
activestorage (= 6.1.3.2)
|
50
|
+
activesupport (= 6.1.3.2)
|
50
51
|
nokogiri (>= 1.8.5)
|
51
|
-
actionview (6.
|
52
|
-
activesupport (= 6.
|
52
|
+
actionview (6.1.3.2)
|
53
|
+
activesupport (= 6.1.3.2)
|
53
54
|
builder (~> 3.1)
|
54
55
|
erubi (~> 1.4)
|
55
56
|
rails-dom-testing (~> 2.0)
|
56
57
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
57
|
-
activejob (6.
|
58
|
-
activesupport (= 6.
|
58
|
+
activejob (6.1.3.2)
|
59
|
+
activesupport (= 6.1.3.2)
|
59
60
|
globalid (>= 0.3.6)
|
60
|
-
activemodel (6.
|
61
|
-
activesupport (= 6.
|
62
|
-
activerecord (6.
|
63
|
-
activemodel (= 6.
|
64
|
-
activesupport (= 6.
|
65
|
-
activestorage (6.
|
66
|
-
actionpack (= 6.
|
67
|
-
activejob (= 6.
|
68
|
-
activerecord (= 6.
|
69
|
-
|
70
|
-
|
61
|
+
activemodel (6.1.3.2)
|
62
|
+
activesupport (= 6.1.3.2)
|
63
|
+
activerecord (6.1.3.2)
|
64
|
+
activemodel (= 6.1.3.2)
|
65
|
+
activesupport (= 6.1.3.2)
|
66
|
+
activestorage (6.1.3.2)
|
67
|
+
actionpack (= 6.1.3.2)
|
68
|
+
activejob (= 6.1.3.2)
|
69
|
+
activerecord (= 6.1.3.2)
|
70
|
+
activesupport (= 6.1.3.2)
|
71
|
+
marcel (~> 1.0.0)
|
72
|
+
mini_mime (~> 1.0.2)
|
73
|
+
activesupport (6.1.3.2)
|
71
74
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
72
|
-
i18n (>=
|
73
|
-
minitest (
|
74
|
-
tzinfo (~>
|
75
|
-
zeitwerk (~> 2.
|
75
|
+
i18n (>= 1.6, < 2)
|
76
|
+
minitest (>= 5.1)
|
77
|
+
tzinfo (~> 2.0)
|
78
|
+
zeitwerk (~> 2.3)
|
76
79
|
addressable (2.7.0)
|
77
80
|
public_suffix (>= 2.0.2, < 5.0)
|
78
81
|
ast (2.4.1)
|
79
82
|
banzai (0.1.3)
|
80
83
|
builder (3.2.4)
|
81
|
-
concurrent-ruby (1.1.
|
84
|
+
concurrent-ruby (1.1.8)
|
82
85
|
crass (1.0.6)
|
83
86
|
deep_merge (1.2.1)
|
84
87
|
diff-lcs (1.4.2)
|
85
88
|
dotenv (2.7.6)
|
86
|
-
erubi (1.
|
87
|
-
ffi (1.
|
89
|
+
erubi (1.10.0)
|
90
|
+
ffi (1.15.0)
|
88
91
|
globalid (0.4.2)
|
89
92
|
activesupport (>= 4.2.0)
|
90
93
|
hansi (0.2.0)
|
91
94
|
hash-deep-merge (0.1.1)
|
92
|
-
i18n (1.8.
|
95
|
+
i18n (1.8.10)
|
93
96
|
concurrent-ruby (~> 1.0)
|
94
|
-
loofah (2.
|
97
|
+
loofah (2.9.1)
|
95
98
|
crass (~> 1.0.2)
|
96
99
|
nokogiri (>= 1.5.9)
|
97
100
|
mail (2.7.1)
|
98
101
|
mini_mime (>= 0.1.1)
|
99
|
-
marcel (0.
|
100
|
-
mimemagic (~> 0.3.2)
|
102
|
+
marcel (1.0.1)
|
101
103
|
method_source (1.0.0)
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
minitest (5.14.2)
|
104
|
+
mini_mime (1.0.3)
|
105
|
+
mini_portile2 (2.5.1)
|
106
|
+
minitest (5.14.4)
|
106
107
|
mustermann (1.1.1)
|
107
108
|
ruby2_keywords (~> 0.0.1)
|
108
109
|
mustermann-contrib (1.1.1)
|
109
110
|
hansi (~> 0.2.0)
|
110
111
|
mustermann (= 1.1.1)
|
111
112
|
neatjson (0.9)
|
112
|
-
nexmo_markdown_renderer (0.
|
113
|
+
nexmo_markdown_renderer (0.9.1)
|
114
|
+
actionview (~> 6.0)
|
113
115
|
activemodel (~> 6.0)
|
114
116
|
banzai (~> 0.1.2)
|
115
117
|
i18n (~> 1.7)
|
116
118
|
nokogiri (~> 1.10)
|
117
|
-
octicons_helper (~> 8.2)
|
118
119
|
redcarpet (~> 3.4)
|
119
120
|
rouge (~> 2.0.7)
|
120
|
-
nio4r (2.5.
|
121
|
-
nokogiri (1.
|
122
|
-
mini_portile2 (~> 2.
|
123
|
-
|
121
|
+
nio4r (2.5.7)
|
122
|
+
nokogiri (1.11.4)
|
123
|
+
mini_portile2 (~> 2.5.0)
|
124
|
+
racc (~> 1.4)
|
125
|
+
oas_parser (0.25.4)
|
124
126
|
activesupport (>= 4.0.0)
|
125
127
|
addressable (~> 2.3)
|
126
128
|
builder (~> 3.2.3)
|
@@ -128,54 +130,50 @@ GEM
|
|
128
130
|
hash-deep-merge
|
129
131
|
mustermann-contrib (~> 1.1.1)
|
130
132
|
nokogiri
|
131
|
-
octicons (8.5.0)
|
132
|
-
nokogiri (>= 1.6.3.1)
|
133
|
-
octicons_helper (8.5.0)
|
134
|
-
octicons (= 8.5.0)
|
135
|
-
rails
|
136
133
|
parallel (1.19.2)
|
137
134
|
parser (2.7.1.4)
|
138
135
|
ast (~> 2.4.1)
|
139
136
|
public_suffix (4.0.6)
|
137
|
+
racc (1.5.2)
|
140
138
|
rack (2.2.3)
|
141
139
|
rack-protection (2.1.0)
|
142
140
|
rack
|
143
141
|
rack-test (1.1.0)
|
144
142
|
rack (>= 1.0, < 3)
|
145
|
-
rails (6.
|
146
|
-
actioncable (= 6.
|
147
|
-
actionmailbox (= 6.
|
148
|
-
actionmailer (= 6.
|
149
|
-
actionpack (= 6.
|
150
|
-
actiontext (= 6.
|
151
|
-
actionview (= 6.
|
152
|
-
activejob (= 6.
|
153
|
-
activemodel (= 6.
|
154
|
-
activerecord (= 6.
|
155
|
-
activestorage (= 6.
|
156
|
-
activesupport (= 6.
|
157
|
-
bundler (>= 1.
|
158
|
-
railties (= 6.
|
143
|
+
rails (6.1.3.2)
|
144
|
+
actioncable (= 6.1.3.2)
|
145
|
+
actionmailbox (= 6.1.3.2)
|
146
|
+
actionmailer (= 6.1.3.2)
|
147
|
+
actionpack (= 6.1.3.2)
|
148
|
+
actiontext (= 6.1.3.2)
|
149
|
+
actionview (= 6.1.3.2)
|
150
|
+
activejob (= 6.1.3.2)
|
151
|
+
activemodel (= 6.1.3.2)
|
152
|
+
activerecord (= 6.1.3.2)
|
153
|
+
activestorage (= 6.1.3.2)
|
154
|
+
activesupport (= 6.1.3.2)
|
155
|
+
bundler (>= 1.15.0)
|
156
|
+
railties (= 6.1.3.2)
|
159
157
|
sprockets-rails (>= 2.0.0)
|
160
158
|
rails-dom-testing (2.0.3)
|
161
159
|
activesupport (>= 4.2.0)
|
162
160
|
nokogiri (>= 1.6)
|
163
161
|
rails-html-sanitizer (1.3.0)
|
164
162
|
loofah (~> 2.3)
|
165
|
-
railties (6.
|
166
|
-
actionpack (= 6.
|
167
|
-
activesupport (= 6.
|
163
|
+
railties (6.1.3.2)
|
164
|
+
actionpack (= 6.1.3.2)
|
165
|
+
activesupport (= 6.1.3.2)
|
168
166
|
method_source
|
169
167
|
rake (>= 0.8.7)
|
170
|
-
thor (
|
168
|
+
thor (~> 1.0)
|
171
169
|
rainbow (3.0.0)
|
172
|
-
rake (13.0.
|
173
|
-
rb-fsevent (0.
|
170
|
+
rake (13.0.3)
|
171
|
+
rb-fsevent (0.11.0)
|
174
172
|
rb-inotify (0.10.1)
|
175
173
|
ffi (~> 1.0)
|
176
|
-
redcarpet (3.
|
174
|
+
redcarpet (3.5.1)
|
177
175
|
regexp_parser (1.7.1)
|
178
|
-
rexml (3.2.
|
176
|
+
rexml (3.2.5)
|
179
177
|
rouge (2.0.7)
|
180
178
|
rspec (3.9.0)
|
181
179
|
rspec-core (~> 3.9.0)
|
@@ -202,7 +200,7 @@ GEM
|
|
202
200
|
rubocop-ast (0.1.0)
|
203
201
|
parser (>= 2.7.0.1)
|
204
202
|
ruby-progressbar (1.10.1)
|
205
|
-
ruby2_keywords (0.0.
|
203
|
+
ruby2_keywords (0.0.4)
|
206
204
|
sass (3.7.4)
|
207
205
|
sass-listen (~> 4.0.0)
|
208
206
|
sass-listen (4.0.0)
|
@@ -222,16 +220,15 @@ GEM
|
|
222
220
|
actionpack (>= 4.0)
|
223
221
|
activesupport (>= 4.0)
|
224
222
|
sprockets (>= 3.0.0)
|
225
|
-
thor (1.0
|
226
|
-
thread_safe (0.3.6)
|
223
|
+
thor (1.1.0)
|
227
224
|
tilt (2.0.10)
|
228
|
-
tzinfo (
|
229
|
-
|
225
|
+
tzinfo (2.0.4)
|
226
|
+
concurrent-ruby (~> 1.0)
|
230
227
|
unicode-display_width (1.7.0)
|
231
228
|
websocket-driver (0.7.3)
|
232
229
|
websocket-extensions (>= 0.1.0)
|
233
230
|
websocket-extensions (0.1.5)
|
234
|
-
zeitwerk (2.4.
|
231
|
+
zeitwerk (2.4.2)
|
235
232
|
|
236
233
|
PLATFORMS
|
237
234
|
ruby
|
@@ -239,7 +236,7 @@ PLATFORMS
|
|
239
236
|
DEPENDENCIES
|
240
237
|
bundler (~> 2.0)
|
241
238
|
nexmo-oas-renderer!
|
242
|
-
rails (~> 6.
|
239
|
+
rails (~> 6.1.3)
|
243
240
|
rake (~> 13.0)
|
244
241
|
rspec (~> 3.8)
|
245
242
|
rubocop (~> 0.86)
|
@@ -5,7 +5,9 @@ module Nexmo
|
|
5
5
|
module Renderer
|
6
6
|
module Presenters
|
7
7
|
class ContentSwitcher
|
8
|
-
|
8
|
+
attr_reader :panels
|
9
|
+
|
10
|
+
def initialize(format:, label: nil, theme_light:, force_type: nil)
|
9
11
|
@format = format
|
10
12
|
@panels = []
|
11
13
|
@label = label
|
@@ -32,17 +32,50 @@ module Nexmo
|
|
32
32
|
def tab_panels
|
33
33
|
@tab_panels ||= @response.split_schemas(@format).map.with_index do |schema, index|
|
34
34
|
schema = handle_all_of(schema)
|
35
|
+
examples = examples_for_schema(schema)
|
35
36
|
ResponseTab::Panel.new(
|
36
37
|
schema: schema,
|
37
38
|
index: index,
|
38
39
|
format: @format,
|
39
|
-
content: @content,
|
40
|
+
content: examples || @content,
|
40
41
|
endpoint: @endpoint,
|
41
42
|
theme_light: @theme_light
|
42
43
|
)
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
47
|
+
def examples_for_schema(schema)
|
48
|
+
# If there are any examples, show them
|
49
|
+
examples = @response.raw.dig('content', @format, 'examples')
|
50
|
+
return nil unless @content == :responses && @format == 'application/json' && examples
|
51
|
+
|
52
|
+
example_switcher = Nexmo::OAS::Renderer::Presenters::ContentSwitcher.new(format: format, force_type: 'dropdown', theme_light: @theme_light)
|
53
|
+
|
54
|
+
has_visible_panel = false
|
55
|
+
examples.each_with_index do |v, _k|
|
56
|
+
# Only if the example key is listed in x-examples in the schema
|
57
|
+
next unless schema['x-examples']&.include?(v[0])
|
58
|
+
|
59
|
+
response = JSON.neat_generate(v[1], {
|
60
|
+
wrap: true,
|
61
|
+
after_colon: 1,
|
62
|
+
})
|
63
|
+
|
64
|
+
content = <<~HEREDOC
|
65
|
+
<pre class="pre-wrap language-json #{@theme_light ? 'Vlt-prism--dark' : ''} Vlt-prism--copy-disabled"><code>#{response}</code></pre>
|
66
|
+
HEREDOC
|
67
|
+
|
68
|
+
example_switcher.add_content(
|
69
|
+
title: v[0].titleize,
|
70
|
+
content: content,
|
71
|
+
tab_id: v[0],
|
72
|
+
active: !has_visible_panel
|
73
|
+
)
|
74
|
+
has_visible_panel = true
|
75
|
+
end
|
76
|
+
return example_switcher if example_switcher.panels.size.positive?
|
77
|
+
end
|
78
|
+
|
46
79
|
def handle_all_of(schema)
|
47
80
|
if schema['allOf']
|
48
81
|
schema['allOf'].each do |p|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="Vlt-grid">
|
2
2
|
<div class="Vlt-col oas-left-panel header-row" style="padding-top:20px;">
|
3
|
-
<a href="<%= @theme_link %>" class="Vlt-switch Vlt-switch--secondary" style="float:right;">
|
3
|
+
<a href="<%= @theme_link %>" class="Vlt-switch Vlt-switch--secondary" style="float:right;" title="colour theme switcher">
|
4
4
|
<span class="Vlt-switch__slider"></span>
|
5
5
|
</a>
|
6
6
|
|
@@ -34,7 +34,8 @@
|
|
34
34
|
|
35
35
|
<div class="oas-parameter-description">
|
36
36
|
<div class="oas-parameter-meta">
|
37
|
-
|
37
|
+
<% if parameter['nullable'] %>Nullable <% end %><%= parameter['type'] %>
|
38
|
+
|
38
39
|
<% if parameter['type'] == 'array' %>
|
39
40
|
<% if parameter['items'] && parameter['items']['type'] %>
|
40
41
|
of <%= (parameter['items']['type']) %>s
|
@@ -4,12 +4,12 @@
|
|
4
4
|
switcher = Nexmo::OAS::Renderer::Presenters::ContentSwitcher.new(label: "Response Example", format: format, force_type: tabs.switcher, theme_light: @theme_light)
|
5
5
|
|
6
6
|
tabs.tab_links.each_with_index do |v,k|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
switcher.add_content(
|
8
|
+
title: v.content,
|
9
|
+
content: (erb *tabs.tab_panels[k].content),
|
10
|
+
tab_id: v.data_tab_link,
|
11
|
+
active: k == 0
|
12
|
+
)
|
13
13
|
end
|
14
14
|
%>
|
15
15
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<div class="Vlt-dropdown Vlt-dropdown--full-width">
|
2
|
-
<div class="Vlt-dropdown__trigger Vlt-dropdown__trigger--btn"><button class="Vlt-btn Vlt-btn--<%= (theme_light ? "secondary" : "tertiary") %>"
|
2
|
+
<div class="Vlt-dropdown__trigger Vlt-dropdown__trigger--btn"><button class="Vlt-btn Vlt-btn--<%= (theme_light ? "secondary" : "tertiary") %>">
|
3
|
+
<%= label ? "#{label}: " : ""%><span class="Vlt-dropdown__selection"><%= panels[0]['title'] %></span>
|
4
|
+
</button></div>
|
3
5
|
<div class="Vlt-dropdown__panel">
|
4
6
|
<div data-tab-content="<%= switcher.id %>" class="Vlt-dropdown__panel__content">
|
5
7
|
<% panels.each do |panel| %>
|
data/nexmo-oas-renderer.gemspec
CHANGED
@@ -31,15 +31,14 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
-
spec.add_runtime_dependency 'activemodel', '~> 6.
|
35
|
-
spec.add_runtime_dependency 'activesupport', '~> 6.
|
34
|
+
spec.add_runtime_dependency 'activemodel', '~> 6.1'
|
35
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.1'
|
36
36
|
spec.add_runtime_dependency 'banzai', '~> 0.1.2'
|
37
37
|
spec.add_runtime_dependency 'dotenv', '~> 2.7'
|
38
38
|
spec.add_runtime_dependency 'neatjson', '~> 0.8'
|
39
|
-
spec.add_runtime_dependency 'nexmo_markdown_renderer', '~> 0.
|
40
|
-
spec.add_runtime_dependency 'oas_parser', '~> 0.25.
|
41
|
-
spec.add_runtime_dependency '
|
42
|
-
spec.add_runtime_dependency 'redcarpet', '3.4.0'
|
39
|
+
spec.add_runtime_dependency 'nexmo_markdown_renderer', '~> 0.8'
|
40
|
+
spec.add_runtime_dependency 'oas_parser', '~> 0.25.4'
|
41
|
+
spec.add_runtime_dependency 'redcarpet', '3.5.1'
|
43
42
|
spec.add_runtime_dependency 'sass', '~> 3.1'
|
44
43
|
spec.add_runtime_dependency 'shotgun', '~> 0.9'
|
45
44
|
spec.add_runtime_dependency 'sinatra', '~> 2.0'
|
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: 2.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabian Rodriguez
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6.
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '6.
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6.
|
33
|
+
version: '6.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '6.
|
40
|
+
version: '6.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: banzai
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,56 +86,42 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.8'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
96
|
+
version: '0.8'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: oas_parser
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.25.
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.25.1
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: octicons_helper
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '8.2'
|
103
|
+
version: 0.25.4
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
110
|
+
version: 0.25.4
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: redcarpet
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - '='
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: 3.
|
117
|
+
version: 3.5.1
|
132
118
|
type: :runtime
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - '='
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.
|
124
|
+
version: 3.5.1
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: sass
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,7 +220,7 @@ dependencies:
|
|
234
220
|
- - "~>"
|
235
221
|
- !ruby/object:Gem::Version
|
236
222
|
version: '0.86'
|
237
|
-
description:
|
223
|
+
description:
|
238
224
|
email:
|
239
225
|
- fabian.rodriguez@vonage.com
|
240
226
|
executables:
|
@@ -382,7 +368,7 @@ licenses:
|
|
382
368
|
metadata:
|
383
369
|
homepage_uri: https://github.com/Nexmo/nexmo-oas-renderer
|
384
370
|
source_code_uri: https://github.com/Nexmo/nexmo-oas-renderer
|
385
|
-
post_install_message:
|
371
|
+
post_install_message:
|
386
372
|
rdoc_options: []
|
387
373
|
require_paths:
|
388
374
|
- lib
|
@@ -398,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
384
|
version: '0'
|
399
385
|
requirements: []
|
400
386
|
rubygems_version: 3.1.4
|
401
|
-
signing_key:
|
387
|
+
signing_key:
|
402
388
|
specification_version: 4
|
403
389
|
summary: OpenAPI Specification renderer.
|
404
390
|
test_files: []
|