nexmo-oas-renderer 0.11.3 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +135 -0
  3. data/.travis.yml +1 -0
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +82 -62
  6. data/Rakefile +2 -2
  7. data/bin/console +3 -3
  8. data/lib/nexmo/oas/engine.rb +2 -0
  9. data/lib/nexmo/oas/renderer.rb +5 -5
  10. data/lib/nexmo/oas/renderer/app.rb +70 -45
  11. data/lib/nexmo/oas/renderer/config.ru +4 -2
  12. data/lib/nexmo/oas/renderer/decorators/response_parser_decorator.rb +18 -18
  13. data/lib/nexmo/oas/renderer/helpers/navigation.rb +2 -2
  14. data/lib/nexmo/oas/renderer/helpers/render.rb +2 -1
  15. data/lib/nexmo/oas/renderer/helpers/summary.rb +4 -1
  16. data/lib/nexmo/oas/renderer/helpers/url.rb +2 -0
  17. data/lib/nexmo/oas/renderer/presenters/api_specification.rb +12 -3
  18. data/lib/nexmo/oas/renderer/presenters/endpoint.rb +2 -0
  19. data/lib/nexmo/oas/renderer/presenters/groups.rb +4 -0
  20. data/lib/nexmo/oas/renderer/presenters/navigation.rb +2 -0
  21. data/lib/nexmo/oas/renderer/presenters/open_api_specification.rb +5 -2
  22. data/lib/nexmo/oas/renderer/presenters/request_body_raw.rb +141 -0
  23. data/lib/nexmo/oas/renderer/presenters/response_format.rb +4 -2
  24. data/lib/nexmo/oas/renderer/presenters/response_tab/link.rb +3 -0
  25. data/lib/nexmo/oas/renderer/presenters/response_tab/panel.rb +8 -5
  26. data/lib/nexmo/oas/renderer/presenters/response_tabs.rb +6 -2
  27. data/lib/nexmo/oas/renderer/presenters/versions.rb +11 -10
  28. data/lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js +12 -7
  29. data/lib/nexmo/oas/renderer/public/assets/javascripts/nexmo-oas-renderer.js +59 -23
  30. data/lib/nexmo/oas/renderer/public/assets/javascripts/popper.min.js +5 -0
  31. data/lib/nexmo/oas/renderer/public/assets/javascripts/tooltip.min.js +5 -0
  32. data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js +301 -243
  33. data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.tooltip.js +76 -0
  34. data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css +255 -823
  35. data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo-oas-renderer.css.map +2 -2
  36. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss +287 -90
  37. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/style.scss +2 -6
  38. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/themes/dark.scss +89 -0
  39. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/themes/light.scss +68 -0
  40. data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-prism.min.css +1 -1
  41. data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css +1 -1
  42. data/lib/nexmo/oas/renderer/services/oas_parser.rb +2 -0
  43. data/lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb +3 -1
  44. data/lib/nexmo/oas/renderer/version.rb +3 -1
  45. data/lib/nexmo/oas/renderer/views/layouts/_head.erb +1 -0
  46. data/lib/nexmo/oas/renderer/views/layouts/_javascripts.erb +5 -4
  47. data/lib/nexmo/oas/renderer/views/layouts/open_api.erb +3 -1
  48. data/lib/nexmo/oas/renderer/views/open_api/_auth.erb +74 -0
  49. data/lib/nexmo/oas/renderer/views/open_api/_available_endpoints.erb +25 -0
  50. data/lib/nexmo/oas/renderer/views/open_api/_callback_endpoint.erb +18 -27
  51. data/lib/nexmo/oas/renderer/views/open_api/_callbacks.erb +5 -0
  52. data/lib/nexmo/oas/renderer/views/open_api/_endpoint.erb +39 -124
  53. data/lib/nexmo/oas/renderer/views/open_api/_header.erb +71 -0
  54. data/lib/nexmo/oas/renderer/views/open_api/_model.erb +31 -26
  55. data/lib/nexmo/oas/renderer/views/open_api/_navigation.erb +54 -78
  56. data/lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb +2 -5
  57. data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +98 -169
  58. data/lib/nexmo/oas/renderer/views/open_api/_request_json.erb +4 -0
  59. data/lib/nexmo/oas/renderer/views/open_api/_request_one_of.erb +70 -0
  60. data/lib/nexmo/oas/renderer/views/open_api/_request_single.erb +53 -0
  61. data/lib/nexmo/oas/renderer/views/open_api/_requests.erb +22 -0
  62. data/lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb +88 -90
  63. data/lib/nexmo/oas/renderer/views/open_api/_response_descriptions.erb +32 -12
  64. data/lib/nexmo/oas/renderer/views/open_api/_response_fields.erb +1 -16
  65. data/lib/nexmo/oas/renderer/views/open_api/_response_tabs.erb +2 -2
  66. data/lib/nexmo/oas/renderer/views/open_api/_responses.erb +51 -0
  67. data/lib/nexmo/oas/renderer/views/open_api/_tabbed_parameters.erb +15 -4
  68. data/lib/nexmo/oas/renderer/views/open_api/_tabbed_single_parameter.erb +56 -0
  69. data/lib/nexmo/oas/renderer/views/open_api/_webhooks.erb +30 -0
  70. data/lib/nexmo/oas/renderer/views/open_api/show.erb +10 -115
  71. data/nexmo-oas-renderer.gemspec +26 -26
  72. metadata +60 -49
  73. data/lib/nexmo/oas/renderer/public/assets/javascripts/components/scroll.js +0 -21
  74. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss +0 -137
  75. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss +0 -102
  76. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/nexmo.scss +0 -61
  77. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/syntax.scss +0 -63
  78. data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss +0 -248
  79. 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: b753eec25e0d213d9c6946acce5968449faf2e7b9bb3b08011c7678386e3d8e0
4
- data.tar.gz: 67e4903e6a29dff0ba77a6aa1f6a2360ef583c4fa8d92205ebcf42d2ca090169
3
+ metadata.gz: 796e5c5fd6f495a5c986a78e8ee6ddcea100a05ee27e62a2c17e9122608d1db3
4
+ data.tar.gz: 9b2a4ed85b48adddde9b114ea4c8c3cd117ee64d9fc7c5b32f54827b1e094e34
5
5
  SHA512:
6
- metadata.gz: e6ec295a683050ab7b3f0556cc5d3cef0295cd8e844657eb37928ec45bc55ad8c64e0d8db7fc5d67e59fef05b984fc7d1778a9178447e1791e859aa2164632f8
7
- data.tar.gz: 85b6f30aa11d76aa2f0590f5074c5897ee871036dbb715ddf7b7199661db0bfd4e452dcbe202cb08216565dd180caa78779e4360367b3cc139067b197f488f7b
6
+ metadata.gz: f0d4304e417c6b9346ca62034232c339a8dfc17a9fb3c38a993796fb365c0ebd3b396731153df4e20bb2ee8ce1a5a02f1668ef50628e9456f9f0693348ce66e6
7
+ data.tar.gz: 31e05a319e34add0fab9f39dcada3e17ec43e406980dbcc6d700eff1a5eab6f892e0696479d50f42a3909ecc2df86f3439a50945f65a310021ca329e8300370e
@@ -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
+
@@ -6,3 +6,4 @@ rvm:
6
6
  - 2.7
7
7
  script:
8
8
  - bundle exec rspec
9
+ - bundle exec rubocop
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in nexmo-oas-renderer.gemspec
4
4
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexmo-oas-renderer (0.11.3)
4
+ nexmo-oas-renderer (2.1.1)
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.1)
23
- actionpack (= 6.0.3.1)
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.1)
27
- actionpack (= 6.0.3.1)
28
- activejob (= 6.0.3.1)
29
- activerecord (= 6.0.3.1)
30
- activestorage (= 6.0.3.1)
31
- activesupport (= 6.0.3.1)
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.1)
34
- actionpack (= 6.0.3.1)
35
- actionview (= 6.0.3.1)
36
- activejob (= 6.0.3.1)
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.1)
40
- actionview (= 6.0.3.1)
41
- activesupport (= 6.0.3.1)
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.1)
47
- actionpack (= 6.0.3.1)
48
- activerecord (= 6.0.3.1)
49
- activestorage (= 6.0.3.1)
50
- activesupport (= 6.0.3.1)
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.1)
53
- activesupport (= 6.0.3.1)
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.1)
59
- activesupport (= 6.0.3.1)
57
+ activejob (6.0.3.2)
58
+ activesupport (= 6.0.3.2)
60
59
  globalid (>= 0.3.6)
61
- activemodel (6.0.3.1)
62
- activesupport (= 6.0.3.1)
63
- activerecord (6.0.3.1)
64
- activemodel (= 6.0.3.1)
65
- activesupport (= 6.0.3.1)
66
- activestorage (6.0.3.1)
67
- actionpack (= 6.0.3.1)
68
- activejob (= 6.0.3.1)
69
- activerecord (= 6.0.3.1)
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.1)
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,13 +75,14 @@ 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.3)
85
- dotenv (2.7.5)
84
+ diff-lcs (1.4.2)
85
+ dotenv (2.7.6)
86
86
  erubi (1.9.0)
87
87
  ffi (1.13.1)
88
88
  globalid (0.4.2)
@@ -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.5.0)
94
+ loofah (2.6.0)
95
95
  crass (~> 1.0.2)
96
96
  nokogiri (>= 1.5.9)
97
97
  mail (2.7.1)
@@ -109,7 +109,7 @@ GEM
109
109
  hansi (~> 0.2.0)
110
110
  mustermann (= 1.1.1)
111
111
  neatjson (0.9)
112
- nexmo_markdown_renderer (0.4.0)
112
+ nexmo_markdown_renderer (0.4.1)
113
113
  activemodel (~> 6.0)
114
114
  banzai (~> 0.1.2)
115
115
  i18n (~> 1.7)
@@ -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.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.1)
143
- actioncable (= 6.0.3.1)
144
- actionmailbox (= 6.0.3.1)
145
- actionmailer (= 6.0.3.1)
146
- actionpack (= 6.0.3.1)
147
- actiontext (= 6.0.3.1)
148
- actionview (= 6.0.3.1)
149
- activejob (= 6.0.3.1)
150
- activemodel (= 6.0.3.1)
151
- activerecord (= 6.0.3.1)
152
- activestorage (= 6.0.3.1)
153
- activesupport (= 6.0.3.1)
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.1)
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.1)
163
- actionpack (= 6.0.3.1)
164
- activesupport (= 6.0.3.1)
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.1)
179
- rspec-support (~> 3.9.1)
180
- rspec-expectations (3.9.1)
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.2)
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.0)
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 "bundler/gem_tasks"
2
- task :default => :spec
1
+ require 'bundler/gem_tasks'
2
+ task default: :spec
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "nexmo/oas/renderer"
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 "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nexmo
2
4
  module OAS
3
5
  module Renderer
@@ -1,9 +1,9 @@
1
- require "nexmo/oas/renderer/version"
2
- require "nexmo/oas/renderer/app"
1
+ # frozen_string_literal: true
3
2
 
4
- if defined?(NexmoDeveloper::Application)
5
- require "nexmo/oas/engine"
6
- end
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