grape-swagger-rails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +6 -0
  5. data/README.md +35 -1
  6. data/app/assets/images/grape_swagger_rails/collapse.gif +0 -0
  7. data/app/assets/images/grape_swagger_rails/expand.gif +0 -0
  8. data/app/assets/javascripts/grape_swagger_rails/application.js +5 -2
  9. data/app/assets/javascripts/grape_swagger_rails/highlight.9.1.0.pack.js +2 -0
  10. data/app/assets/javascripts/grape_swagger_rails/highlight.9.1.0.pack_extended.js +34 -0
  11. data/app/assets/javascripts/grape_swagger_rails/js-yaml.min.js +3 -0
  12. data/app/assets/javascripts/grape_swagger_rails/jsoneditor.min.js +11 -0
  13. data/app/assets/javascripts/grape_swagger_rails/lodash.min.js +102 -0
  14. data/app/assets/javascripts/grape_swagger_rails/object-assign-pollyfill.js +23 -0
  15. data/app/assets/javascripts/grape_swagger_rails/swagger-oauth.js +82 -33
  16. data/app/assets/javascripts/grape_swagger_rails/swagger-ui.min.js +9 -13
  17. data/app/assets/stylesheets/grape_swagger_rails/print.css +200 -10
  18. data/app/assets/stylesheets/grape_swagger_rails/screen.css.erb +242 -32
  19. data/app/assets/stylesheets/grape_swagger_rails/typography.css +4 -16
  20. data/app/views/grape_swagger_rails/application/index.html.erb +22 -7
  21. data/lib/grape-swagger-rails.rb +13 -9
  22. data/lib/grape-swagger-rails/version.rb +1 -1
  23. data/spec/features/swagger_spec.rb +47 -17
  24. metadata +56 -51
  25. data/app/assets/javascripts/grape_swagger_rails/highlight.7.3.pack.js +0 -1
  26. data/app/assets/javascripts/grape_swagger_rails/underscore-min.js +0 -6
  27. data/app/assets/javascripts/grape_swagger_rails/underscore-min.map +0 -1
@@ -1,26 +1,14 @@
1
- /* droid-sans-regular - latin */
1
+ /* Google Font's Droid Sans */
2
2
  @font-face {
3
3
  font-family: 'Droid Sans';
4
4
  font-style: normal;
5
5
  font-weight: 400;
6
- src: url('../fonts/droid-sans-v6-latin-regular.eot'); /* IE9 Compat Modes */
7
- src: local('Droid Sans'), local('DroidSans'),
8
- url('../fonts/droid-sans-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
9
- url('../fonts/droid-sans-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
10
- url('../fonts/droid-sans-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
11
- url('../fonts/droid-sans-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
12
- url('../fonts/droid-sans-v6-latin-regular.svg#DroidSans') format('svg'); /* Legacy iOS */
6
+ src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf'), format('truetype');
13
7
  }
14
- /* droid-sans-700 - latin */
8
+ /* Google Font's Droid Sans Bold */
15
9
  @font-face {
16
10
  font-family: 'Droid Sans';
17
11
  font-style: normal;
18
12
  font-weight: 700;
19
- src: url('../fonts/droid-sans-v6-latin-700.eot'); /* IE9 Compat Modes */
20
- src: local('Droid Sans Bold'), local('DroidSans-Bold'),
21
- url('../fonts/droid-sans-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
22
- url('../fonts/droid-sans-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
23
- url('../fonts/droid-sans-v6-latin-700.woff') format('woff'), /* Modern Browsers */
24
- url('../fonts/droid-sans-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
25
- url('../fonts/droid-sans-v6-latin-700.svg#DroidSans') format('svg'); /* Legacy iOS */
13
+ src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf'), format('truetype');
26
14
  }
@@ -28,6 +28,7 @@
28
28
  console.log(swaggerUi);
29
29
  }
30
30
  $('pre code').each(function(i, e) {hljs.highlightBlock(e)});
31
+ addApiKeyAuthorization();
31
32
  },
32
33
  onFailure: function(data) {
33
34
  if('console' in window) {
@@ -36,28 +37,42 @@
36
37
  }
37
38
  },
38
39
  docExpansion: options.doc_expansion,
40
+ validatorUrl: options.validator_url,
39
41
  apisSorter: "alpha"
40
42
  });
41
43
 
42
- $('#input_apiKey').change(function() {
44
+ function addApiKeyAuthorization() {
43
45
  var key = $('#input_apiKey')[0].value;
44
46
 
45
- if(key && key.trim() != "") {
47
+ if (key && key.trim() != "") {
46
48
  if (options.api_auth == 'basic') {
47
49
  key = "Basic " + Base64.encode(key);
48
50
  } else if (options.api_auth == 'bearer') {
49
51
  key = "Bearer " + key
50
52
  }
51
53
  window.swaggerUi.api.clientAuthorizations.add("key", new SwaggerClient.ApiKeyAuthorization(options.api_key_name, key, options.api_key_type));
52
- } else {
53
- window.swaggerUi.api.clientAuthorizations.add("key", null);
54
54
  }
55
- });
55
+ }
56
+
57
+ $('#input_apiKey').change(addApiKeyAuthorization);
56
58
 
57
59
  window.swaggerUi.load();
58
60
 
59
61
  });
60
62
  </script>
63
+ <style>
64
+ input#input_baseUrl, a#explore.exploreBtn {
65
+ <% if GrapeSwaggerRails.options.hide_url_input %>
66
+ display: none;
67
+ <% end %>
68
+ }
69
+
70
+ input#input_apiKey {
71
+ <% if GrapeSwaggerRails.options.hide_api_key_input %>
72
+ display: none;
73
+ <% end %>
74
+ }
75
+ </style>
61
76
  </head>
62
77
 
63
78
  <body class="swagger-section">
@@ -67,8 +82,8 @@
67
82
 
68
83
  <form id='api_selector'>
69
84
  <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
70
- <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
71
- <div class='input'><a id="explore" href="#">Explore</a></div>
85
+ <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text" value="<%= GrapeSwaggerRails.options.api_key_default_value %>"/></div>
86
+ <div class='input'><a id="explore" class="exploreBtn" href="#">Explore</a></div>
72
87
  </form>
73
88
  </div>
74
89
  </div>
@@ -15,18 +15,22 @@ module GrapeSwaggerRails
15
15
 
16
16
  self.options = Options.new(
17
17
 
18
- url: '/swagger_doc',
19
- app_name: 'Swagger',
20
- app_url: 'http://swagger.wordnik.com',
18
+ url: '/swagger_doc',
19
+ app_name: 'Swagger',
20
+ app_url: 'http://swagger.wordnik.com',
21
21
 
22
- headers: {},
22
+ headers: {},
23
23
 
24
- api_auth: '', # 'basic' or 'bearer'
25
- api_key_name: 'api_key', # 'Authorization'
26
- api_key_type: 'query', # 'header'
24
+ api_auth: '', # 'basic' or 'bearer'
25
+ api_key_name: 'api_key', # 'Authorization'
26
+ api_key_type: 'query', # 'header'
27
+ api_key_default_value: '', # Auto populates api_key
27
28
 
28
- doc_expansion: 'none',
29
+ doc_expansion: 'none',
29
30
 
30
- before_filter_proc: nil # Proc used as a controller before filter
31
+ before_filter_proc: nil, # Proc used as a controller before filter
32
+
33
+ hide_url_input: false,
34
+ hide_api_key_input: false
31
35
  )
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module GrapeSwaggerRails
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -27,19 +27,19 @@ describe 'Swagger' do
27
27
  expect(headers.select { |key| key.to_s.match(/^header/) }).not_to be_blank
28
28
  expect(headers.fetch('header_0', {}).fetch('name', {})).to eq GrapeSwaggerRails.options.headers.keys.first
29
29
  find('#endpointListTogger_headers', visible: true).click
30
- first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
30
+ first('span[class="http_method"] a', visible: true).click
31
31
  click_button 'Try it out!'
32
- expect(page).to have_css 'span.attribute', text: 'X-Test-Header'
33
- expect(page).to have_css 'span.string', text: 'Test Value'
32
+ expect(page).to have_css 'span.hljs-attr', text: 'X-Test-Header'
33
+ expect(page).to have_css 'span.hljs-string', text: 'Test Value'
34
34
  end
35
35
  it 'supports multiple headers' do
36
36
  find('#endpointListTogger_headers', visible: true).click
37
- first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
37
+ first('span[class="http_method"] a', visible: true).click
38
38
  click_button 'Try it out!'
39
- expect(page).to have_css 'span.attribute', text: 'X-Test-Header'
40
- expect(page).to have_css 'span.string', text: 'Test Value'
41
- expect(page).to have_css 'span.attribute', text: 'X-Another-Header'
42
- expect(page).to have_css 'span.string', text: 'Another Value'
39
+ expect(page).to have_css 'span.hljs-attr', text: 'X-Test-Header'
40
+ expect(page).to have_css 'span.hljs-string', text: 'Test Value'
41
+ expect(page).to have_css 'span.hljs-attr', text: 'X-Another-Header'
42
+ expect(page).to have_css 'span.hljs-string', text: 'Another Value'
43
43
  end
44
44
  end
45
45
  context '#api_auth:basic' do
@@ -53,10 +53,10 @@ describe 'Swagger' do
53
53
  page.execute_script("$('#input_apiKey').val('username:password')")
54
54
  page.execute_script("$('#input_apiKey').trigger('change')")
55
55
  find('#endpointListTogger_headers', visible: true).click
56
- first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
56
+ first('span[class="http_method"] a', visible: true).click
57
57
  click_button 'Try it out!'
58
- expect(page).to have_css 'span.attribute', text: 'Authorization'
59
- expect(page).to have_css 'span.string', text: "Basic #{Base64.encode64('username:password').strip}"
58
+ expect(page).to have_css 'span.hljs-attr', text: 'Authorization'
59
+ expect(page).to have_css 'span.hljs-string', text: "Basic #{Base64.encode64('username:password').strip}"
60
60
  end
61
61
  end
62
62
  context '#api_auth:bearer' do
@@ -70,10 +70,10 @@ describe 'Swagger' do
70
70
  page.execute_script("$('#input_apiKey').val('token')")
71
71
  page.execute_script("$('#input_apiKey').trigger('change')")
72
72
  find('#endpointListTogger_headers', visible: true).click
73
- first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
73
+ first('span[class="http_method"] a', visible: true).click
74
74
  click_button 'Try it out!'
75
- expect(page).to have_css 'span.attribute', text: 'Authorization'
76
- expect(page).to have_css 'span.string', text: 'Bearer token'
75
+ expect(page).to have_css 'span.hljs-attr', text: 'Authorization'
76
+ expect(page).to have_css 'span.hljs-string', text: 'Bearer token'
77
77
  end
78
78
  end
79
79
  context '#api_auth:token' do
@@ -86,10 +86,10 @@ describe 'Swagger' do
86
86
  page.execute_script("$('#input_apiKey').val('dummy')")
87
87
  page.execute_script("$('#input_apiKey').trigger('change')")
88
88
  find('#endpointListTogger_params', visible: true).click
89
- first('a[href="#!/params/GET_api_params_format"]', visible: true).click
89
+ first('span[class="http_method"] a', visible: true).click
90
90
  click_button 'Try it out!'
91
- expect(page).to have_css 'span.attribute', text: 'api_token'
92
- expect(page).to have_css 'span.string', text: 'dummy'
91
+ expect(page).to have_css 'span.hljs-attr', text: 'api_token'
92
+ expect(page).to have_css 'span.hljs-string', text: 'dummy'
93
93
  end
94
94
  end
95
95
  context '#before_filter' do
@@ -153,6 +153,36 @@ describe 'Swagger' do
153
153
  end
154
154
  end
155
155
  end
156
+ context '#validator_url' do
157
+ context 'set null' do
158
+ before do
159
+ GrapeSwaggerRails.options.validator_url = nil
160
+ visit '/swagger'
161
+ end
162
+ it 'sets SwaggerUI validatorUrl to null' do
163
+ expect(page.evaluate_script('window.swaggerUi.options.validatorUrl === null && '\
164
+ 'typeof window.swaggerUi.options.validatorUrl === "object"')).to be true
165
+ end
166
+ end
167
+ context 'set a url' do
168
+ before do
169
+ GrapeSwaggerRails.options.validator_url = 'http://www.example.com/'
170
+ visit '/swagger'
171
+ end
172
+ it 'sets SwaggerUI validatorUrl to expected url' do
173
+ expect(page.evaluate_script('window.swaggerUi.options.validatorUrl === "http://www.example.com/"')).to be true
174
+ end
175
+ end
176
+ context 'not set' do
177
+ before do
178
+ visit '/swagger'
179
+ end
180
+ it 'defaults SwaggerUI validatorUrl' do
181
+ expect(page.evaluate_script('window.swaggerUi.options.validatorUrl === undefined && '\
182
+ 'typeof window.swaggerUi.options.validatorUrl === "undefined"')).to be true
183
+ end
184
+ end
185
+ end
156
186
  after do
157
187
  GrapeSwaggerRails.options = @options
158
188
  end
metadata CHANGED
@@ -1,251 +1,251 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-swagger-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Logunov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.12
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
26
  version: 3.2.12
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: grape-swagger
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.7.2
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
40
  version: 0.7.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: git
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: capybara
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: grape
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: selenium-webdriver
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sass-rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: uglifier
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: coffee-rails
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: jquery-rails
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: grape-swagger-ui
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: sprockets
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - '>='
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - '>='
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rack
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ~>
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
229
  version: '1.6'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ~>
234
+ - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: '1.6'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rack-cors
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - '>='
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - '>='
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
@@ -266,28 +266,28 @@ dependencies:
266
266
  name: mime-types
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - <
269
+ - - "<"
270
270
  - !ruby/object:Gem::Version
271
271
  version: '3.0'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - <
276
+ - - "<"
277
277
  - !ruby/object:Gem::Version
278
278
  version: '3.0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: rack-no_animations
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - '>='
283
+ - - ">="
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - '>='
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  description: Swagger UI as Rails Engine for grape-swagger gem
@@ -297,11 +297,11 @@ executables: []
297
297
  extensions: []
298
298
  extra_rdoc_files: []
299
299
  files:
300
- - .gitignore
301
- - .rspec
302
- - .rubocop.yml
303
- - .rubocop_todo.yml
304
- - .travis.yml
300
+ - ".gitignore"
301
+ - ".rspec"
302
+ - ".rubocop.yml"
303
+ - ".rubocop_todo.yml"
304
+ - ".travis.yml"
305
305
  - CHANGELOG.md
306
306
  - CONTRIBUTING.md
307
307
  - Gemfile
@@ -309,6 +309,8 @@ files:
309
309
  - README.md
310
310
  - RELEASING.md
311
311
  - Rakefile
312
+ - app/assets/images/grape_swagger_rails/collapse.gif
313
+ - app/assets/images/grape_swagger_rails/expand.gif
312
314
  - app/assets/images/grape_swagger_rails/explorer_icons.png
313
315
  - app/assets/images/grape_swagger_rails/favicon-16x16.png
314
316
  - app/assets/images/grape_swagger_rails/favicon-32x32.png
@@ -321,16 +323,19 @@ files:
321
323
  - app/assets/javascripts/grape_swagger_rails/backbone-min.js
322
324
  - app/assets/javascripts/grape_swagger_rails/base64.js
323
325
  - app/assets/javascripts/grape_swagger_rails/handlebars-2.0.0.js
324
- - app/assets/javascripts/grape_swagger_rails/highlight.7.3.pack.js
326
+ - app/assets/javascripts/grape_swagger_rails/highlight.9.1.0.pack.js
327
+ - app/assets/javascripts/grape_swagger_rails/highlight.9.1.0.pack_extended.js
325
328
  - app/assets/javascripts/grape_swagger_rails/jquery-1.8.0.min.js
326
329
  - app/assets/javascripts/grape_swagger_rails/jquery.ba-bbq.min.js
327
330
  - app/assets/javascripts/grape_swagger_rails/jquery.slideto.min.js
328
331
  - app/assets/javascripts/grape_swagger_rails/jquery.wiggle.min.js
332
+ - app/assets/javascripts/grape_swagger_rails/js-yaml.min.js
333
+ - app/assets/javascripts/grape_swagger_rails/jsoneditor.min.js
334
+ - app/assets/javascripts/grape_swagger_rails/lodash.min.js
329
335
  - app/assets/javascripts/grape_swagger_rails/marked.js
336
+ - app/assets/javascripts/grape_swagger_rails/object-assign-pollyfill.js
330
337
  - app/assets/javascripts/grape_swagger_rails/swagger-oauth.js
331
338
  - app/assets/javascripts/grape_swagger_rails/swagger-ui.min.js
332
- - app/assets/javascripts/grape_swagger_rails/underscore-min.js
333
- - app/assets/javascripts/grape_swagger_rails/underscore-min.map
334
339
  - app/assets/stylesheets/grape_swagger_rails/application.css
335
340
  - app/assets/stylesheets/grape_swagger_rails/print.css
336
341
  - app/assets/stylesheets/grape_swagger_rails/reset.css
@@ -398,17 +403,17 @@ require_paths:
398
403
  - lib
399
404
  required_ruby_version: !ruby/object:Gem::Requirement
400
405
  requirements:
401
- - - '>='
406
+ - - ">="
402
407
  - !ruby/object:Gem::Version
403
408
  version: '0'
404
409
  required_rubygems_version: !ruby/object:Gem::Requirement
405
410
  requirements:
406
- - - '>='
411
+ - - ">="
407
412
  - !ruby/object:Gem::Version
408
413
  version: '0'
409
414
  requirements: []
410
415
  rubyforge_project:
411
- rubygems_version: 2.4.5
416
+ rubygems_version: 2.4.5.1
412
417
  signing_key:
413
418
  specification_version: 4
414
419
  summary: Swagger UI as Rails Engine for grape-swagger gem