grape-swagger-rails 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.travis.yml +10 -0
- data/Gemfile +1 -2
- data/README.md +35 -21
- data/Rakefile +25 -0
- data/app/assets/images/grape_swagger_rails/explorer_icons.png +0 -0
- data/app/assets/javascripts/grape_swagger_rails/application.js +2 -13
- data/app/assets/javascripts/grape_swagger_rails/swagger-oauth.js +211 -0
- data/app/assets/javascripts/grape_swagger_rails/swagger-ui.min.js +1 -1
- data/app/assets/javascripts/grape_swagger_rails/swagger.js +1521 -1398
- data/app/assets/stylesheets/grape_swagger_rails/application.css +4 -13
- data/app/assets/stylesheets/grape_swagger_rails/reset.css +125 -0
- data/app/assets/stylesheets/grape_swagger_rails/screen.css.erb +545 -391
- data/app/controllers/grape_swagger_rails/application_controller.rb +3 -3
- data/app/views/grape_swagger_rails/application/index.html.erb +13 -7
- data/grape-swagger-rails.gemspec +21 -8
- data/lib/grape-swagger-rails.rb +16 -13
- data/lib/grape-swagger-rails/engine.rb +1 -0
- data/lib/grape-swagger-rails/version.rb +1 -1
- data/lib/javascripts/base64.js +134 -0
- data/lib/tasks/swagger_ui.rake +98 -0
- data/spec/dummy/.gitignore +16 -0
- data/spec/dummy/Rakefile +5 -0
- data/spec/dummy/app/api/api.rb +31 -0
- data/spec/dummy/app/assets/javascripts/application.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/welcome_controller.rb +4 -0
- data/spec/dummy/app/views/layouts/_messages.html.erb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +16 -0
- data/spec/dummy/app/views/welcome/index.html.erb +3 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +8 -0
- data/spec/dummy/bin/rake +8 -0
- data/spec/dummy/bin/spring +18 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/environment.rb +3 -0
- data/spec/dummy/config/environments/development.rb +34 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +1 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +1 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -0
- data/spec/dummy/config/initializers/swagger.rb +3 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +8 -0
- data/spec/dummy/public/.gitignore +2 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
- data/spec/features/grape-swagger-rails_spec.rb +15 -0
- data/spec/features/swagger_spec.rb +116 -0
- data/spec/features/welcome_spec.rb +10 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/support/capybara.rb +5 -0
- data/spec/support/rails.rb +1 -0
- metadata +283 -31
- data/app/assets/javascripts/grape_swagger_rails/swagger-ui.js.erb +0 -2129
- data/app/assets/stylesheets/grape_swagger_rails/highlight.default.css +0 -135
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GrapeSwaggerRails do
|
4
|
+
context "#options" do
|
5
|
+
subject do
|
6
|
+
GrapeSwaggerRails.options
|
7
|
+
end
|
8
|
+
it 'is an instance of Options' do
|
9
|
+
expect(subject).to be_a GrapeSwaggerRails::Options
|
10
|
+
end
|
11
|
+
it 'defaults headers to an empty hash' do
|
12
|
+
expect(subject.headers).to eq({})
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Swagger' do
|
4
|
+
context 'swaggerUi' do
|
5
|
+
before do
|
6
|
+
visit '/swagger'
|
7
|
+
end
|
8
|
+
it 'loads foos resource' do
|
9
|
+
expect(page).to have_css "li#resource_foos"
|
10
|
+
end
|
11
|
+
it 'loads Swagger UI' do
|
12
|
+
expect(page.evaluate_script('window.swaggerUi != null')).to be true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
context "#options" do
|
16
|
+
before do
|
17
|
+
@options = GrapeSwaggerRails.options.dup
|
18
|
+
end
|
19
|
+
context "#headers" do
|
20
|
+
before do
|
21
|
+
GrapeSwaggerRails.options.headers['X-Test-Header'] = 'Test Value'
|
22
|
+
visit '/swagger'
|
23
|
+
end
|
24
|
+
it 'adds headers' do
|
25
|
+
find('#endpointListTogger_headers', visible: true).click
|
26
|
+
find('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
|
27
|
+
click_button 'Try it out!'
|
28
|
+
expect(page).to have_css "span.attribute", text: 'X-Test-Header'
|
29
|
+
expect(page).to have_css "span.string", text: 'Test Value'
|
30
|
+
end
|
31
|
+
end
|
32
|
+
context "#api_auth:basic" do
|
33
|
+
before do
|
34
|
+
GrapeSwaggerRails.options.api_auth = 'basic'
|
35
|
+
GrapeSwaggerRails.options.api_key_name = 'Authorization'
|
36
|
+
GrapeSwaggerRails.options.api_key_type = 'header'
|
37
|
+
visit '/swagger'
|
38
|
+
end
|
39
|
+
it 'adds an Authorization header' do
|
40
|
+
fill_in 'apiKey', with: 'username:password'
|
41
|
+
find('#endpointListTogger_headers', visible: true).click
|
42
|
+
first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
|
43
|
+
click_button 'Try it out!'
|
44
|
+
expect(page).to have_css "span.attribute", text: 'Authorization'
|
45
|
+
expect(page).to have_css "span.string", text: "Basic #{Base64.encode64('username:password').strip}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
context "#api_auth:bearer" do
|
49
|
+
before do
|
50
|
+
GrapeSwaggerRails.options.api_auth = 'bearer'
|
51
|
+
GrapeSwaggerRails.options.api_key_name = 'Authorization'
|
52
|
+
GrapeSwaggerRails.options.api_key_type = 'header'
|
53
|
+
visit '/swagger'
|
54
|
+
end
|
55
|
+
it 'adds an Authorization header' do
|
56
|
+
fill_in 'apiKey', with: 'token'
|
57
|
+
find('#endpointListTogger_headers', visible: true).click
|
58
|
+
first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
|
59
|
+
click_button 'Try it out!'
|
60
|
+
expect(page).to have_css "span.attribute", text: 'Authorization'
|
61
|
+
expect(page).to have_css "span.string", text: 'Bearer token'
|
62
|
+
end
|
63
|
+
end
|
64
|
+
context "#api_auth:token" do
|
65
|
+
before do
|
66
|
+
GrapeSwaggerRails.options.api_key_name = 'api_token'
|
67
|
+
GrapeSwaggerRails.options.api_key_type = 'query'
|
68
|
+
visit '/swagger'
|
69
|
+
end
|
70
|
+
it 'adds an api_token query parameter' do
|
71
|
+
fill_in 'apiKey', with: 'dummy'
|
72
|
+
find('#endpointListTogger_params', visible: true).click
|
73
|
+
first('a[href="#!/params/GET_api_params_format"]', visible: true).click
|
74
|
+
click_button 'Try it out!'
|
75
|
+
expect(page).to have_css "span.attribute", text: 'api_token'
|
76
|
+
expect(page).to have_css "span.string", text: "dummy"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
context "#before_filter" do
|
80
|
+
before do
|
81
|
+
GrapeSwaggerRails.options.before_filter do |request|
|
82
|
+
flash[:error] = "Unauthorized Access"
|
83
|
+
redirect_to '/'
|
84
|
+
false
|
85
|
+
end
|
86
|
+
visit '/swagger'
|
87
|
+
end
|
88
|
+
it 'denies access' do
|
89
|
+
expect(current_path).to eq "/"
|
90
|
+
expect(page).to have_content "Unauthorized Access"
|
91
|
+
end
|
92
|
+
end
|
93
|
+
context "#app_name" do
|
94
|
+
context 'set' do
|
95
|
+
before do
|
96
|
+
GrapeSwaggerRails.options.app_name = "Test App"
|
97
|
+
visit '/swagger'
|
98
|
+
end
|
99
|
+
it 'sets page title' do
|
100
|
+
expect(page.title).to eq "Test App"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
context 'not set' do
|
104
|
+
before do
|
105
|
+
visit '/swagger'
|
106
|
+
end
|
107
|
+
it 'defaults page title' do
|
108
|
+
expect(page.title).to eq "Swagger"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
after do
|
113
|
+
GrapeSwaggerRails.options = @options
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
|
6
|
+
Rails.backtrace_cleaner.remove_silencers!
|
7
|
+
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each do |f|
|
9
|
+
require f
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.use_transactional_fixtures = true
|
14
|
+
config.infer_spec_type_from_file_location!
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rspec/rails'
|
metadata
CHANGED
@@ -1,85 +1,254 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-swagger-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Aleksandr B. Ivanov
|
8
7
|
- Alexander Logunov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.12
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.12
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: grape-swagger
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.7.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.7.2
|
14
41
|
- !ruby/object:Gem::Dependency
|
15
42
|
name: bundler
|
16
43
|
requirement: !ruby/object:Gem::Requirement
|
17
44
|
requirements:
|
18
|
-
- - ~>
|
45
|
+
- - "~>"
|
19
46
|
- !ruby/object:Gem::Version
|
20
47
|
version: '1.3'
|
21
48
|
type: :development
|
22
49
|
prerelease: false
|
23
50
|
version_requirements: !ruby/object:Gem::Requirement
|
24
51
|
requirements:
|
25
|
-
- - ~>
|
52
|
+
- - "~>"
|
26
53
|
- !ruby/object:Gem::Version
|
27
54
|
version: '1.3'
|
28
55
|
- !ruby/object:Gem::Dependency
|
29
56
|
name: rake
|
30
57
|
requirement: !ruby/object:Gem::Requirement
|
31
58
|
requirements:
|
32
|
-
- -
|
59
|
+
- - ">="
|
33
60
|
- !ruby/object:Gem::Version
|
34
61
|
version: '0'
|
35
62
|
type: :development
|
36
63
|
prerelease: false
|
37
64
|
version_requirements: !ruby/object:Gem::Requirement
|
38
65
|
requirements:
|
39
|
-
- -
|
66
|
+
- - ">="
|
40
67
|
- !ruby/object:Gem::Version
|
41
68
|
version: '0'
|
42
69
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
70
|
+
name: git
|
44
71
|
requirement: !ruby/object:Gem::Requirement
|
45
72
|
requirements:
|
46
|
-
- -
|
73
|
+
- - ">="
|
47
74
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
type: :
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
50
77
|
prerelease: false
|
51
78
|
version_requirements: !ruby/object:Gem::Requirement
|
52
79
|
requirements:
|
53
|
-
- -
|
80
|
+
- - ">="
|
54
81
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
82
|
+
version: '0'
|
56
83
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
84
|
+
name: rspec-rails
|
58
85
|
requirement: !ruby/object:Gem::Requirement
|
59
86
|
requirements:
|
60
|
-
- -
|
87
|
+
- - ">="
|
61
88
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0
|
63
|
-
type: :
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
64
91
|
prerelease: false
|
65
92
|
version_requirements: !ruby/object:Gem::Requirement
|
66
93
|
requirements:
|
67
|
-
- -
|
94
|
+
- - ">="
|
68
95
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0
|
70
|
-
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: capybara
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: grape
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: selenium-webdriver
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sass-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: uglifier
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: coffee-rails
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: jquery-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: grape-swagger-ui
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: sprockets
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rack-cors
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
description: Swagger UI as Rails Engine for grape-swagger gem
|
71
238
|
email:
|
72
|
-
- radanisk@ya.ru
|
73
239
|
- unlovedru@gmail.com
|
74
240
|
executables: []
|
75
241
|
extensions: []
|
76
242
|
extra_rdoc_files: []
|
77
243
|
files:
|
78
|
-
- .gitignore
|
244
|
+
- ".gitignore"
|
245
|
+
- ".rspec"
|
246
|
+
- ".travis.yml"
|
79
247
|
- Gemfile
|
80
248
|
- LICENSE.txt
|
81
249
|
- README.md
|
82
250
|
- Rakefile
|
251
|
+
- app/assets/images/grape_swagger_rails/explorer_icons.png
|
83
252
|
- app/assets/images/grape_swagger_rails/logo_small.png
|
84
253
|
- app/assets/images/grape_swagger_rails/pet_store_api.png
|
85
254
|
- app/assets/images/grape_swagger_rails/throbber.gif
|
@@ -95,12 +264,12 @@ files:
|
|
95
264
|
- app/assets/javascripts/grape_swagger_rails/jquery.wiggle.min.js
|
96
265
|
- app/assets/javascripts/grape_swagger_rails/shred.bundle.js
|
97
266
|
- app/assets/javascripts/grape_swagger_rails/shred/content.js
|
98
|
-
- app/assets/javascripts/grape_swagger_rails/swagger-
|
267
|
+
- app/assets/javascripts/grape_swagger_rails/swagger-oauth.js
|
99
268
|
- app/assets/javascripts/grape_swagger_rails/swagger-ui.min.js
|
100
269
|
- app/assets/javascripts/grape_swagger_rails/swagger.js
|
101
270
|
- app/assets/javascripts/grape_swagger_rails/underscore-min.js
|
102
271
|
- app/assets/stylesheets/grape_swagger_rails/application.css
|
103
|
-
- app/assets/stylesheets/grape_swagger_rails/
|
272
|
+
- app/assets/stylesheets/grape_swagger_rails/reset.css
|
104
273
|
- app/assets/stylesheets/grape_swagger_rails/screen.css.erb
|
105
274
|
- app/controllers/grape_swagger_rails/application_controller.rb
|
106
275
|
- app/views/grape_swagger_rails/application/index.html.erb
|
@@ -109,8 +278,51 @@ files:
|
|
109
278
|
- lib/grape-swagger-rails.rb
|
110
279
|
- lib/grape-swagger-rails/engine.rb
|
111
280
|
- lib/grape-swagger-rails/version.rb
|
281
|
+
- lib/javascripts/base64.js
|
112
282
|
- lib/script/rails
|
113
|
-
|
283
|
+
- lib/tasks/swagger_ui.rake
|
284
|
+
- spec/dummy/.gitignore
|
285
|
+
- spec/dummy/Rakefile
|
286
|
+
- spec/dummy/app/api/api.rb
|
287
|
+
- spec/dummy/app/assets/javascripts/application.js
|
288
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
289
|
+
- spec/dummy/app/controllers/application_controller.rb
|
290
|
+
- spec/dummy/app/controllers/welcome_controller.rb
|
291
|
+
- spec/dummy/app/views/layouts/_messages.html.erb
|
292
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
293
|
+
- spec/dummy/app/views/welcome/index.html.erb
|
294
|
+
- spec/dummy/bin/bundle
|
295
|
+
- spec/dummy/bin/rails
|
296
|
+
- spec/dummy/bin/rake
|
297
|
+
- spec/dummy/bin/spring
|
298
|
+
- spec/dummy/config.ru
|
299
|
+
- spec/dummy/config/application.rb
|
300
|
+
- spec/dummy/config/boot.rb
|
301
|
+
- spec/dummy/config/environment.rb
|
302
|
+
- spec/dummy/config/environments/development.rb
|
303
|
+
- spec/dummy/config/environments/production.rb
|
304
|
+
- spec/dummy/config/environments/test.rb
|
305
|
+
- spec/dummy/config/initializers/assets.rb
|
306
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
307
|
+
- spec/dummy/config/initializers/session_store.rb
|
308
|
+
- spec/dummy/config/initializers/swagger.rb
|
309
|
+
- spec/dummy/config/routes.rb
|
310
|
+
- spec/dummy/config/secrets.yml
|
311
|
+
- spec/dummy/public/.gitignore
|
312
|
+
- spec/dummy/public/404.html
|
313
|
+
- spec/dummy/public/422.html
|
314
|
+
- spec/dummy/public/500.html
|
315
|
+
- spec/dummy/public/favicon.ico
|
316
|
+
- spec/dummy/public/robots.txt
|
317
|
+
- spec/dummy/vendor/assets/javascripts/.keep
|
318
|
+
- spec/dummy/vendor/assets/stylesheets/.keep
|
319
|
+
- spec/features/grape-swagger-rails_spec.rb
|
320
|
+
- spec/features/swagger_spec.rb
|
321
|
+
- spec/features/welcome_spec.rb
|
322
|
+
- spec/spec_helper.rb
|
323
|
+
- spec/support/capybara.rb
|
324
|
+
- spec/support/rails.rb
|
325
|
+
homepage: https://github.com/BrandyMint/grape-swagger-rails
|
114
326
|
licenses:
|
115
327
|
- MIT
|
116
328
|
metadata: {}
|
@@ -120,19 +332,59 @@ require_paths:
|
|
120
332
|
- lib
|
121
333
|
required_ruby_version: !ruby/object:Gem::Requirement
|
122
334
|
requirements:
|
123
|
-
- -
|
335
|
+
- - ">="
|
124
336
|
- !ruby/object:Gem::Version
|
125
337
|
version: '0'
|
126
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
339
|
requirements:
|
128
|
-
- -
|
340
|
+
- - ">="
|
129
341
|
- !ruby/object:Gem::Version
|
130
342
|
version: '0'
|
131
343
|
requirements: []
|
132
344
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
345
|
+
rubygems_version: 2.2.2
|
134
346
|
signing_key:
|
135
347
|
specification_version: 4
|
136
|
-
summary:
|
137
|
-
test_files:
|
138
|
-
|
348
|
+
summary: Swagger UI as Rails Engine for grape-swagger gem
|
349
|
+
test_files:
|
350
|
+
- spec/dummy/.gitignore
|
351
|
+
- spec/dummy/Rakefile
|
352
|
+
- spec/dummy/app/api/api.rb
|
353
|
+
- spec/dummy/app/assets/javascripts/application.js
|
354
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
355
|
+
- spec/dummy/app/controllers/application_controller.rb
|
356
|
+
- spec/dummy/app/controllers/welcome_controller.rb
|
357
|
+
- spec/dummy/app/views/layouts/_messages.html.erb
|
358
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
359
|
+
- spec/dummy/app/views/welcome/index.html.erb
|
360
|
+
- spec/dummy/bin/bundle
|
361
|
+
- spec/dummy/bin/rails
|
362
|
+
- spec/dummy/bin/rake
|
363
|
+
- spec/dummy/bin/spring
|
364
|
+
- spec/dummy/config.ru
|
365
|
+
- spec/dummy/config/application.rb
|
366
|
+
- spec/dummy/config/boot.rb
|
367
|
+
- spec/dummy/config/environment.rb
|
368
|
+
- spec/dummy/config/environments/development.rb
|
369
|
+
- spec/dummy/config/environments/production.rb
|
370
|
+
- spec/dummy/config/environments/test.rb
|
371
|
+
- spec/dummy/config/initializers/assets.rb
|
372
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
373
|
+
- spec/dummy/config/initializers/session_store.rb
|
374
|
+
- spec/dummy/config/initializers/swagger.rb
|
375
|
+
- spec/dummy/config/routes.rb
|
376
|
+
- spec/dummy/config/secrets.yml
|
377
|
+
- spec/dummy/public/.gitignore
|
378
|
+
- spec/dummy/public/404.html
|
379
|
+
- spec/dummy/public/422.html
|
380
|
+
- spec/dummy/public/500.html
|
381
|
+
- spec/dummy/public/favicon.ico
|
382
|
+
- spec/dummy/public/robots.txt
|
383
|
+
- spec/dummy/vendor/assets/javascripts/.keep
|
384
|
+
- spec/dummy/vendor/assets/stylesheets/.keep
|
385
|
+
- spec/features/grape-swagger-rails_spec.rb
|
386
|
+
- spec/features/swagger_spec.rb
|
387
|
+
- spec/features/welcome_spec.rb
|
388
|
+
- spec/spec_helper.rb
|
389
|
+
- spec/support/capybara.rb
|
390
|
+
- spec/support/rails.rb
|