nexmo-oas-renderer 0.11.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +135 -0
- data/.travis.yml +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +81 -61
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/lib/nexmo/oas/engine.rb +2 -0
- data/lib/nexmo/oas/renderer.rb +5 -5
- data/lib/nexmo/oas/renderer/app.rb +70 -45
- data/lib/nexmo/oas/renderer/config.ru +4 -2
- data/lib/nexmo/oas/renderer/decorators/response_parser_decorator.rb +18 -18
- data/lib/nexmo/oas/renderer/helpers/navigation.rb +2 -2
- data/lib/nexmo/oas/renderer/helpers/render.rb +2 -1
- data/lib/nexmo/oas/renderer/helpers/summary.rb +4 -1
- data/lib/nexmo/oas/renderer/helpers/url.rb +2 -0
- data/lib/nexmo/oas/renderer/presenters/api_specification.rb +2 -1
- data/lib/nexmo/oas/renderer/presenters/endpoint.rb +2 -0
- data/lib/nexmo/oas/renderer/presenters/groups.rb +4 -0
- data/lib/nexmo/oas/renderer/presenters/navigation.rb +2 -0
- data/lib/nexmo/oas/renderer/presenters/open_api_specification.rb +5 -2
- data/lib/nexmo/oas/renderer/presenters/request_body_raw.rb +141 -0
- data/lib/nexmo/oas/renderer/presenters/response_format.rb +4 -2
- data/lib/nexmo/oas/renderer/presenters/response_tab/link.rb +3 -0
- data/lib/nexmo/oas/renderer/presenters/response_tab/panel.rb +8 -5
- data/lib/nexmo/oas/renderer/presenters/response_tabs.rb +6 -2
- data/lib/nexmo/oas/renderer/presenters/versions.rb +11 -10
- data/lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js +12 -7
- data/lib/nexmo/oas/renderer/public/assets/javascripts/nexmo-oas-renderer.js +51 -24
- data/lib/nexmo/oas/renderer/public/assets/javascripts/popper.min.js +5 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/tooltip.min.js +5 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js +301 -243
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.tooltip.js +76 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css +255 -823
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css.map +2 -2
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss +287 -90
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/style.scss +2 -6
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/themes/dark.scss +89 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/themes/light.scss +68 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-prism.min.css +1 -1
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css +1 -1
- data/lib/nexmo/oas/renderer/services/oas_parser.rb +2 -0
- data/lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb +3 -1
- data/lib/nexmo/oas/renderer/version.rb +3 -1
- data/lib/nexmo/oas/renderer/views/layouts/_head.erb +1 -0
- data/lib/nexmo/oas/renderer/views/layouts/_javascripts.erb +5 -4
- data/lib/nexmo/oas/renderer/views/layouts/open_api.erb +3 -1
- data/lib/nexmo/oas/renderer/views/open_api/_auth.erb +74 -0
- data/lib/nexmo/oas/renderer/views/open_api/_available_endpoints.erb +25 -0
- data/lib/nexmo/oas/renderer/views/open_api/_callback_endpoint.erb +18 -27
- data/lib/nexmo/oas/renderer/views/open_api/_callbacks.erb +5 -0
- data/lib/nexmo/oas/renderer/views/open_api/_endpoint.erb +39 -124
- data/lib/nexmo/oas/renderer/views/open_api/_header.erb +71 -0
- data/lib/nexmo/oas/renderer/views/open_api/_model.erb +31 -26
- data/lib/nexmo/oas/renderer/views/open_api/_navigation.erb +54 -78
- data/lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb +2 -5
- data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +98 -169
- data/lib/nexmo/oas/renderer/views/open_api/_request_json.erb +4 -0
- data/lib/nexmo/oas/renderer/views/open_api/_request_one_of.erb +70 -0
- data/lib/nexmo/oas/renderer/views/open_api/_request_single.erb +53 -0
- data/lib/nexmo/oas/renderer/views/open_api/_requests.erb +22 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb +88 -90
- data/lib/nexmo/oas/renderer/views/open_api/_response_descriptions.erb +17 -12
- data/lib/nexmo/oas/renderer/views/open_api/_response_fields.erb +1 -16
- data/lib/nexmo/oas/renderer/views/open_api/_response_tabs.erb +2 -2
- data/lib/nexmo/oas/renderer/views/open_api/_responses.erb +35 -0
- data/lib/nexmo/oas/renderer/views/open_api/_tabbed_parameters.erb +15 -4
- data/lib/nexmo/oas/renderer/views/open_api/_tabbed_single_parameter.erb +56 -0
- data/lib/nexmo/oas/renderer/views/open_api/_webhooks.erb +30 -0
- data/lib/nexmo/oas/renderer/views/open_api/show.erb +10 -115
- data/nexmo-oas-renderer.gemspec +26 -26
- metadata +61 -49
- data/lib/nexmo/oas/renderer/public/assets/javascripts/components/scroll.js +0 -21
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss +0 -137
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss +0 -102
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/nexmo.scss +0 -61
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/syntax.scss +0 -63
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss +0 -248
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss +0 -119
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c59677181d5a5a5582488555f1857e61b54dc7aab95f7e159c6345d623997b0
|
4
|
+
data.tar.gz: da45cf0fc8a2fc1307580f52f3ede113a1de3d4d7dbd0efbda71f5121b919756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee724d81371ec9f67d58bd31702db2398f0b176eaf35574c2fc7ca505290935d0a27495c0752452552aa57c73e45098fd36c61a4ea4dc55e54cf021f4f0ba88
|
7
|
+
data.tar.gz: d2f8a7a80acf92c00a71c20fc43a6fb637860c287902be8a23d48054c177e739a999e1083485323463b21a03b4840fa78007cd74eb359e096caef1108182af6d
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- 'node_modules/**/*'
|
4
|
+
- 'vendor/**/*'
|
5
|
+
- '.vendor/**/*'
|
6
|
+
- '.git/**/*'
|
7
|
+
|
8
|
+
# Temporarily disabled until we can refactor
|
9
|
+
Metrics/BlockLength:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Metrics/ClassLength:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Metrics/ModuleLength:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
# Always enabled
|
19
|
+
Style/FrozenStringLiteralComment:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Layout/LineLength:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/TrailingCommaInArrayLiteral:
|
26
|
+
EnforcedStyleForMultiline: comma
|
27
|
+
|
28
|
+
Style/TrailingCommaInHashLiteral:
|
29
|
+
EnforcedStyleForMultiline: comma
|
30
|
+
|
31
|
+
Style/BlockComments:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Layout/ParameterAlignment:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/Documentation:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Layout/FirstHashElementIndentation:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/NumericLiterals:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Metrics/MethodLength:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Metrics/AbcSize:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/RedundantInterpolation:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Style/WordArray:
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
Style/PerlBackrefs:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Style/TernaryParentheses:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Metrics/PerceivedComplexity:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Metrics/CyclomaticComplexity:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/AsciiComments:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/Next:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/ConditionalAssignment:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Style/DoubleNegation:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Lint/NonDeterministicRequireOrder:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
Layout/AccessModifierIndentation:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
Style/IfUnlessModifier:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
Style/ClassAndModuleChildren:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Style/HashEachMethods:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Style/HashTransformKeys:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Style/HashTransformValues:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Layout/SpaceAroundMethodCallOperator:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Lint/RaiseException:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Lint/StructNewOverride:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Style/ExponentialNotation:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Style/SlicingWithRange:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Lint/DeprecatedOpenSSLConstant:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Lint/MixedRegexpCaptureTypes:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Style/RedundantRegexpCharacterClass:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Style/RedundantRegexpEscape:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Style/RedundantFetchBlock:
|
134
|
+
Enabled: true
|
135
|
+
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nexmo-oas-renderer (0.
|
4
|
+
nexmo-oas-renderer (2.0.0)
|
5
5
|
activemodel (~> 6.0)
|
6
6
|
activesupport (~> 6.0)
|
7
7
|
banzai (~> 0.1.2)
|
@@ -11,7 +11,6 @@ PATH
|
|
11
11
|
oas_parser (~> 0.25.1)
|
12
12
|
octicons_helper (~> 8.2)
|
13
13
|
redcarpet (= 3.4.0)
|
14
|
-
rouge (= 2.0.7)
|
15
14
|
sass (~> 3.1)
|
16
15
|
shotgun (~> 0.9)
|
17
16
|
sinatra (~> 2.0)
|
@@ -19,56 +18,56 @@ PATH
|
|
19
18
|
GEM
|
20
19
|
remote: https://rubygems.org/
|
21
20
|
specs:
|
22
|
-
actioncable (6.0.3.
|
23
|
-
actionpack (= 6.0.3.
|
21
|
+
actioncable (6.0.3.2)
|
22
|
+
actionpack (= 6.0.3.2)
|
24
23
|
nio4r (~> 2.0)
|
25
24
|
websocket-driver (>= 0.6.1)
|
26
|
-
actionmailbox (6.0.3.
|
27
|
-
actionpack (= 6.0.3.
|
28
|
-
activejob (= 6.0.3.
|
29
|
-
activerecord (= 6.0.3.
|
30
|
-
activestorage (= 6.0.3.
|
31
|
-
activesupport (= 6.0.3.
|
25
|
+
actionmailbox (6.0.3.2)
|
26
|
+
actionpack (= 6.0.3.2)
|
27
|
+
activejob (= 6.0.3.2)
|
28
|
+
activerecord (= 6.0.3.2)
|
29
|
+
activestorage (= 6.0.3.2)
|
30
|
+
activesupport (= 6.0.3.2)
|
32
31
|
mail (>= 2.7.1)
|
33
|
-
actionmailer (6.0.3.
|
34
|
-
actionpack (= 6.0.3.
|
35
|
-
actionview (= 6.0.3.
|
36
|
-
activejob (= 6.0.3.
|
32
|
+
actionmailer (6.0.3.2)
|
33
|
+
actionpack (= 6.0.3.2)
|
34
|
+
actionview (= 6.0.3.2)
|
35
|
+
activejob (= 6.0.3.2)
|
37
36
|
mail (~> 2.5, >= 2.5.4)
|
38
37
|
rails-dom-testing (~> 2.0)
|
39
|
-
actionpack (6.0.3.
|
40
|
-
actionview (= 6.0.3.
|
41
|
-
activesupport (= 6.0.3.
|
38
|
+
actionpack (6.0.3.2)
|
39
|
+
actionview (= 6.0.3.2)
|
40
|
+
activesupport (= 6.0.3.2)
|
42
41
|
rack (~> 2.0, >= 2.0.8)
|
43
42
|
rack-test (>= 0.6.3)
|
44
43
|
rails-dom-testing (~> 2.0)
|
45
44
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
46
|
-
actiontext (6.0.3.
|
47
|
-
actionpack (= 6.0.3.
|
48
|
-
activerecord (= 6.0.3.
|
49
|
-
activestorage (= 6.0.3.
|
50
|
-
activesupport (= 6.0.3.
|
45
|
+
actiontext (6.0.3.2)
|
46
|
+
actionpack (= 6.0.3.2)
|
47
|
+
activerecord (= 6.0.3.2)
|
48
|
+
activestorage (= 6.0.3.2)
|
49
|
+
activesupport (= 6.0.3.2)
|
51
50
|
nokogiri (>= 1.8.5)
|
52
|
-
actionview (6.0.3.
|
53
|
-
activesupport (= 6.0.3.
|
51
|
+
actionview (6.0.3.2)
|
52
|
+
activesupport (= 6.0.3.2)
|
54
53
|
builder (~> 3.1)
|
55
54
|
erubi (~> 1.4)
|
56
55
|
rails-dom-testing (~> 2.0)
|
57
56
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
58
|
-
activejob (6.0.3.
|
59
|
-
activesupport (= 6.0.3.
|
57
|
+
activejob (6.0.3.2)
|
58
|
+
activesupport (= 6.0.3.2)
|
60
59
|
globalid (>= 0.3.6)
|
61
|
-
activemodel (6.0.3.
|
62
|
-
activesupport (= 6.0.3.
|
63
|
-
activerecord (6.0.3.
|
64
|
-
activemodel (= 6.0.3.
|
65
|
-
activesupport (= 6.0.3.
|
66
|
-
activestorage (6.0.3.
|
67
|
-
actionpack (= 6.0.3.
|
68
|
-
activejob (= 6.0.3.
|
69
|
-
activerecord (= 6.0.3.
|
60
|
+
activemodel (6.0.3.2)
|
61
|
+
activesupport (= 6.0.3.2)
|
62
|
+
activerecord (6.0.3.2)
|
63
|
+
activemodel (= 6.0.3.2)
|
64
|
+
activesupport (= 6.0.3.2)
|
65
|
+
activestorage (6.0.3.2)
|
66
|
+
actionpack (= 6.0.3.2)
|
67
|
+
activejob (= 6.0.3.2)
|
68
|
+
activerecord (= 6.0.3.2)
|
70
69
|
marcel (~> 0.3.1)
|
71
|
-
activesupport (6.0.3.
|
70
|
+
activesupport (6.0.3.2)
|
72
71
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
73
72
|
i18n (>= 0.7, < 2)
|
74
73
|
minitest (~> 5.1)
|
@@ -76,12 +75,13 @@ GEM
|
|
76
75
|
zeitwerk (~> 2.2, >= 2.2.2)
|
77
76
|
addressable (2.7.0)
|
78
77
|
public_suffix (>= 2.0.2, < 5.0)
|
78
|
+
ast (2.4.1)
|
79
79
|
banzai (0.1.3)
|
80
80
|
builder (3.2.4)
|
81
81
|
concurrent-ruby (1.1.6)
|
82
82
|
crass (1.0.6)
|
83
83
|
deep_merge (1.2.1)
|
84
|
-
diff-lcs (1.
|
84
|
+
diff-lcs (1.4.2)
|
85
85
|
dotenv (2.7.5)
|
86
86
|
erubi (1.9.0)
|
87
87
|
ffi (1.13.1)
|
@@ -91,7 +91,7 @@ GEM
|
|
91
91
|
hash-deep-merge (0.1.1)
|
92
92
|
i18n (1.8.3)
|
93
93
|
concurrent-ruby (~> 1.0)
|
94
|
-
loofah (2.
|
94
|
+
loofah (2.6.0)
|
95
95
|
crass (~> 1.0.2)
|
96
96
|
nokogiri (>= 1.5.9)
|
97
97
|
mail (2.7.1)
|
@@ -120,7 +120,7 @@ GEM
|
|
120
120
|
nio4r (2.5.2)
|
121
121
|
nokogiri (1.10.9)
|
122
122
|
mini_portile2 (~> 2.4.0)
|
123
|
-
oas_parser (0.25.
|
123
|
+
oas_parser (0.25.2)
|
124
124
|
activesupport (>= 4.0.0)
|
125
125
|
addressable (~> 2.3)
|
126
126
|
builder (~> 3.2.3)
|
@@ -133,57 +133,75 @@ GEM
|
|
133
133
|
octicons_helper (8.5.0)
|
134
134
|
octicons (= 8.5.0)
|
135
135
|
rails
|
136
|
+
parallel (1.19.2)
|
137
|
+
parser (2.7.1.4)
|
138
|
+
ast (~> 2.4.1)
|
136
139
|
public_suffix (4.0.5)
|
137
|
-
rack (2.2.
|
140
|
+
rack (2.2.3)
|
138
141
|
rack-protection (2.0.8.1)
|
139
142
|
rack
|
140
143
|
rack-test (1.1.0)
|
141
144
|
rack (>= 1.0, < 3)
|
142
|
-
rails (6.0.3.
|
143
|
-
actioncable (= 6.0.3.
|
144
|
-
actionmailbox (= 6.0.3.
|
145
|
-
actionmailer (= 6.0.3.
|
146
|
-
actionpack (= 6.0.3.
|
147
|
-
actiontext (= 6.0.3.
|
148
|
-
actionview (= 6.0.3.
|
149
|
-
activejob (= 6.0.3.
|
150
|
-
activemodel (= 6.0.3.
|
151
|
-
activerecord (= 6.0.3.
|
152
|
-
activestorage (= 6.0.3.
|
153
|
-
activesupport (= 6.0.3.
|
145
|
+
rails (6.0.3.2)
|
146
|
+
actioncable (= 6.0.3.2)
|
147
|
+
actionmailbox (= 6.0.3.2)
|
148
|
+
actionmailer (= 6.0.3.2)
|
149
|
+
actionpack (= 6.0.3.2)
|
150
|
+
actiontext (= 6.0.3.2)
|
151
|
+
actionview (= 6.0.3.2)
|
152
|
+
activejob (= 6.0.3.2)
|
153
|
+
activemodel (= 6.0.3.2)
|
154
|
+
activerecord (= 6.0.3.2)
|
155
|
+
activestorage (= 6.0.3.2)
|
156
|
+
activesupport (= 6.0.3.2)
|
154
157
|
bundler (>= 1.3.0)
|
155
|
-
railties (= 6.0.3.
|
158
|
+
railties (= 6.0.3.2)
|
156
159
|
sprockets-rails (>= 2.0.0)
|
157
160
|
rails-dom-testing (2.0.3)
|
158
161
|
activesupport (>= 4.2.0)
|
159
162
|
nokogiri (>= 1.6)
|
160
163
|
rails-html-sanitizer (1.3.0)
|
161
164
|
loofah (~> 2.3)
|
162
|
-
railties (6.0.3.
|
163
|
-
actionpack (= 6.0.3.
|
164
|
-
activesupport (= 6.0.3.
|
165
|
+
railties (6.0.3.2)
|
166
|
+
actionpack (= 6.0.3.2)
|
167
|
+
activesupport (= 6.0.3.2)
|
165
168
|
method_source
|
166
169
|
rake (>= 0.8.7)
|
167
170
|
thor (>= 0.20.3, < 2.0)
|
171
|
+
rainbow (3.0.0)
|
168
172
|
rake (13.0.1)
|
169
173
|
rb-fsevent (0.10.4)
|
170
174
|
rb-inotify (0.10.1)
|
171
175
|
ffi (~> 1.0)
|
172
176
|
redcarpet (3.4.0)
|
177
|
+
regexp_parser (1.7.1)
|
178
|
+
rexml (3.2.4)
|
173
179
|
rouge (2.0.7)
|
174
180
|
rspec (3.9.0)
|
175
181
|
rspec-core (~> 3.9.0)
|
176
182
|
rspec-expectations (~> 3.9.0)
|
177
183
|
rspec-mocks (~> 3.9.0)
|
178
|
-
rspec-core (3.9.
|
179
|
-
rspec-support (~> 3.9.
|
180
|
-
rspec-expectations (3.9.
|
184
|
+
rspec-core (3.9.2)
|
185
|
+
rspec-support (~> 3.9.3)
|
186
|
+
rspec-expectations (3.9.2)
|
181
187
|
diff-lcs (>= 1.2.0, < 2.0)
|
182
188
|
rspec-support (~> 3.9.0)
|
183
189
|
rspec-mocks (3.9.1)
|
184
190
|
diff-lcs (>= 1.2.0, < 2.0)
|
185
191
|
rspec-support (~> 3.9.0)
|
186
|
-
rspec-support (3.9.
|
192
|
+
rspec-support (3.9.3)
|
193
|
+
rubocop (0.86.0)
|
194
|
+
parallel (~> 1.10)
|
195
|
+
parser (>= 2.7.0.1)
|
196
|
+
rainbow (>= 2.2.2, < 4.0)
|
197
|
+
regexp_parser (>= 1.7)
|
198
|
+
rexml
|
199
|
+
rubocop-ast (>= 0.0.3, < 1.0)
|
200
|
+
ruby-progressbar (~> 1.7)
|
201
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
202
|
+
rubocop-ast (0.1.0)
|
203
|
+
parser (>= 2.7.0.1)
|
204
|
+
ruby-progressbar (1.10.1)
|
187
205
|
ruby2_keywords (0.0.2)
|
188
206
|
sass (3.7.4)
|
189
207
|
sass-listen (~> 4.0.0)
|
@@ -209,10 +227,11 @@ GEM
|
|
209
227
|
tilt (2.0.10)
|
210
228
|
tzinfo (1.2.7)
|
211
229
|
thread_safe (~> 0.1)
|
230
|
+
unicode-display_width (1.7.0)
|
212
231
|
websocket-driver (0.7.2)
|
213
232
|
websocket-extensions (>= 0.1.0)
|
214
233
|
websocket-extensions (0.1.5)
|
215
|
-
zeitwerk (2.3.
|
234
|
+
zeitwerk (2.3.1)
|
216
235
|
|
217
236
|
PLATFORMS
|
218
237
|
ruby
|
@@ -223,6 +242,7 @@ DEPENDENCIES
|
|
223
242
|
rails (~> 6.0.3)
|
224
243
|
rake (~> 13.0)
|
225
244
|
rspec (~> 3.8)
|
245
|
+
rubocop (~> 0.86)
|
226
246
|
|
227
247
|
BUNDLED WITH
|
228
248
|
2.1.4
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
task :
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
task default: :spec
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'nexmo/oas/renderer'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +10,5 @@ require "nexmo/oas/renderer"
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start(__FILE__)
|
data/lib/nexmo/oas/engine.rb
CHANGED
data/lib/nexmo/oas/renderer.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
require "nexmo/oas/renderer/app"
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
require 'nexmo/oas/renderer/version'
|
4
|
+
require 'nexmo/oas/renderer/app'
|
5
|
+
|
6
|
+
require 'nexmo/oas/engine' if defined?(NexmoDeveloper::Application)
|
7
7
|
|
8
8
|
module Nexmo
|
9
9
|
module OAS
|