swagger_ui_static_engine 2.1.4.2 → 2.1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -7
- data/app/controllers/swagger_ui_static_engine/engine_controller.rb +1 -2
- data/app/views/swagger_ui_static_engine/engine/index.html.erb +22 -22
- data/config/routes.rb +1 -1
- data/lib/swagger_ui_static_engine/engine.rb +0 -1
- data/public/{css → swagger_ui_static_engine/css}/print.css +0 -0
- data/public/{css → swagger_ui_static_engine/css}/reset.css +0 -0
- data/public/{css → swagger_ui_static_engine/css}/screen.css +0 -0
- data/public/{css → swagger_ui_static_engine/css}/style.css +0 -0
- data/public/{css → swagger_ui_static_engine/css}/typography.css +0 -0
- data/public/{fonts → swagger_ui_static_engine/fonts}/DroidSans-Bold.ttf +0 -0
- data/public/{fonts → swagger_ui_static_engine/fonts}/DroidSans.ttf +0 -0
- data/public/{images → swagger_ui_static_engine/images}/collapse.gif +0 -0
- data/public/{images → swagger_ui_static_engine/images}/expand.gif +0 -0
- data/public/{images → swagger_ui_static_engine/images}/explorer_icons.png +0 -0
- data/public/{images → swagger_ui_static_engine/images}/favicon-16x16.png +0 -0
- data/public/{images → swagger_ui_static_engine/images}/favicon-32x32.png +0 -0
- data/public/{images → swagger_ui_static_engine/images}/favicon.ico +0 -0
- data/public/{images → swagger_ui_static_engine/images}/logo_small.png +0 -0
- data/public/{images → swagger_ui_static_engine/images}/pet_store_api.png +0 -0
- data/public/{images → swagger_ui_static_engine/images}/throbber.gif +0 -0
- data/public/{images → swagger_ui_static_engine/images}/wordnik_api.png +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/en.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/es.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/fr.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/geo.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/it.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/ja.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/pl.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/pt.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/ru.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/tr.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/translator.js +0 -0
- data/public/{lang → swagger_ui_static_engine/lang}/zh-cn.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/backbone-min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/handlebars-2.0.0.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/highlight.9.1.0.pack.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/highlight.9.1.0.pack_extended.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/jquery-1.8.0.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/jquery.ba-bbq.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/jquery.slideto.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/jquery.wiggle.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/js-yaml.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/jsoneditor.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/lodash.min.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/marked.js +0 -0
- data/public/{lib → swagger_ui_static_engine/lib}/swagger-oauth.js +0 -0
- data/public/{o2c.html → swagger_ui_static_engine/o2c.html} +0 -0
- data/public/{swagger-ui.js → swagger_ui_static_engine/swagger-ui.js} +0 -0
- data/public/{swagger-ui.min.js → swagger_ui_static_engine/swagger-ui.min.js} +0 -0
- metadata +46 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f72442ea3c6ad05c4c9470095eebdc64065c849
|
4
|
+
data.tar.gz: 85ac2eab42b94aef57e2c9f7f81f6e0245a45137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1591e9e80c12c96a496c0afe321be2d5e139e8df7047f169cfd7774bbc8bc89121adc5aad16dba6f3dd1b512772dfe9ecb78fbea6188970fef4635752d23e2
|
7
|
+
data.tar.gz: d3508b5a4bea82b0a526a683ce0f32085ea3d34f30eaf980d98390886c479d07b041ca155ad59a7514a6da845a52a9cd17df5655e9038817f0b137f5e08963ed
|
data/README.md
CHANGED
@@ -47,7 +47,6 @@ this repo.
|
|
47
47
|
|
48
48
|
_config/initializers/swagger_ui_static_engine.rb_
|
49
49
|
|
50
|
-
SwaggerUiStaticEngine::Engine.mount_path = "/api/docs" # the path to your swagger-ui page, when you have mounted it
|
51
50
|
SwaggerUiStaticEngine::Engine.swagger_url = "/api/swagger.json" # the path to your swagger.json file
|
52
51
|
|
53
52
|
_config/routes.rb_
|
@@ -75,11 +74,9 @@ _lib/yourengine/yourengine.rb_
|
|
75
74
|
end
|
76
75
|
|
77
76
|
|
78
|
-
## Updating
|
77
|
+
## Updating with new Swagger UI version
|
79
78
|
|
80
|
-
|
81
|
-
unzip swagger-ui-master.zip
|
82
|
-
cp -R swagger-ui-master/dist/ swagger_ui_static_engine/public
|
83
|
-
mv swagger_ui_static_engine/public/index.html swagger_ui_static_engine/app/views/swagger_ui_static_engine/engine/index.html.erb
|
79
|
+
./update_swagger_ui_source.sh
|
84
80
|
git diff
|
85
|
-
<edit index.html.erb to view & merge anything that was overwritten>
|
81
|
+
<edit index.html.erb to view & merge anything that was overwritten>
|
82
|
+
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module SwaggerUiStaticEngine
|
2
|
-
class
|
2
|
+
class EngineController < ActionController::Base
|
3
3
|
def index
|
4
|
-
@mount_path = SwaggerUiStaticEngine::Engine.mount_path
|
5
4
|
@swagger_url = SwaggerUiStaticEngine::Engine.swagger_url
|
6
5
|
end
|
7
6
|
end
|
@@ -3,27 +3,27 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8">
|
5
5
|
<title>Swagger UI</title>
|
6
|
-
<link rel="icon" type="image/png" href="
|
7
|
-
<link rel="icon" type="image/png" href="
|
8
|
-
<link href='
|
9
|
-
<link href='
|
10
|
-
<link href='
|
11
|
-
<link href='
|
12
|
-
<link href='
|
13
|
-
<script src='
|
14
|
-
<script src='
|
15
|
-
<script src='
|
16
|
-
<script src='
|
17
|
-
<script src='
|
18
|
-
<script src='
|
19
|
-
<script src='
|
20
|
-
<script src='
|
21
|
-
<script src='
|
22
|
-
<script src='
|
23
|
-
<script src='
|
24
|
-
<script src='
|
25
|
-
<script src='
|
26
|
-
<script src='
|
6
|
+
<link rel="icon" type="image/png" href="/swagger_ui_static_engine/images/favicon-32x32.png" sizes="32x32" />
|
7
|
+
<link rel="icon" type="image/png" href="/swagger_ui_static_engine/images/favicon-16x16.png" sizes="16x16" />
|
8
|
+
<link href='/swagger_ui_static_engine/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
9
|
+
<link href='/swagger_ui_static_engine/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
10
|
+
<link href='/swagger_ui_static_engine/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
11
|
+
<link href='/swagger_ui_static_engine/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
12
|
+
<link href='/swagger_ui_static_engine/css/print.css' media='print' rel='stylesheet' type='text/css'/>
|
13
|
+
<script src='/swagger_ui_static_engine/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
|
14
|
+
<script src='/swagger_ui_static_engine/lib/jquery.slideto.min.js' type='text/javascript'></script>
|
15
|
+
<script src='/swagger_ui_static_engine/lib/jquery.wiggle.min.js' type='text/javascript'></script>
|
16
|
+
<script src='/swagger_ui_static_engine/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
|
17
|
+
<script src='/swagger_ui_static_engine/lib/handlebars-2.0.0.js' type='text/javascript'></script>
|
18
|
+
<script src='/swagger_ui_static_engine/lib/js-yaml.min.js' type='text/javascript'></script>
|
19
|
+
<script src='/swagger_ui_static_engine/lib/lodash.min.js' type='text/javascript'></script>
|
20
|
+
<script src='/swagger_ui_static_engine/lib/backbone-min.js' type='text/javascript'></script>
|
21
|
+
<script src='/swagger_ui_static_engine/swagger-ui.js' type='text/javascript'></script>
|
22
|
+
<script src='/swagger_ui_static_engine/lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
|
23
|
+
<script src='/swagger_ui_static_engine/lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
|
24
|
+
<script src='/swagger_ui_static_engine/lib/jsoneditor.min.js' type='text/javascript'></script>
|
25
|
+
<script src='/swagger_ui_static_engine/lib/marked.js' type='text/javascript'></script>
|
26
|
+
<script src='/swagger_ui_static_engine/lib/swagger-oauth.js' type='text/javascript'></script>
|
27
27
|
|
28
28
|
<!-- Some basic translations -->
|
29
29
|
<!-- <script src='lang/translator.js' type='text/javascript'></script> -->
|
@@ -90,7 +90,7 @@
|
|
90
90
|
<body class="swagger-section">
|
91
91
|
<div id='header'>
|
92
92
|
<div class="swagger-ui-wrap">
|
93
|
-
<a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
|
93
|
+
<a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="/swagger_ui_static_engine/images/logo_small.png" /><span class="logo__title">swagger</span></a>
|
94
94
|
<form id='api_selector'>
|
95
95
|
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
|
96
96
|
<div id='auth_container'></div>
|
data/config/routes.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger_ui_static_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.4.
|
4
|
+
version: 2.1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Trowbridge
|
@@ -22,51 +22,51 @@ files:
|
|
22
22
|
- config/routes.rb
|
23
23
|
- lib/swagger_ui_static_engine/engine.rb
|
24
24
|
- lib/swagger_ui_static_engine.rb
|
25
|
-
- public/css/print.css
|
26
|
-
- public/css/reset.css
|
27
|
-
- public/css/screen.css
|
28
|
-
- public/css/style.css
|
29
|
-
- public/css/typography.css
|
30
|
-
- public/fonts/DroidSans-Bold.ttf
|
31
|
-
- public/fonts/DroidSans.ttf
|
32
|
-
- public/images/collapse.gif
|
33
|
-
- public/images/expand.gif
|
34
|
-
- public/images/explorer_icons.png
|
35
|
-
- public/images/favicon-16x16.png
|
36
|
-
- public/images/favicon-32x32.png
|
37
|
-
- public/images/favicon.ico
|
38
|
-
- public/images/logo_small.png
|
39
|
-
- public/images/pet_store_api.png
|
40
|
-
- public/images/throbber.gif
|
41
|
-
- public/images/wordnik_api.png
|
42
|
-
- public/lang/en.js
|
43
|
-
- public/lang/es.js
|
44
|
-
- public/lang/fr.js
|
45
|
-
- public/lang/geo.js
|
46
|
-
- public/lang/it.js
|
47
|
-
- public/lang/ja.js
|
48
|
-
- public/lang/pl.js
|
49
|
-
- public/lang/pt.js
|
50
|
-
- public/lang/ru.js
|
51
|
-
- public/lang/tr.js
|
52
|
-
- public/lang/translator.js
|
53
|
-
- public/lang/zh-cn.js
|
54
|
-
- public/lib/backbone-min.js
|
55
|
-
- public/lib/handlebars-2.0.0.js
|
56
|
-
- public/lib/highlight.9.1.0.pack.js
|
57
|
-
- public/lib/highlight.9.1.0.pack_extended.js
|
58
|
-
- public/lib/jquery-1.8.0.min.js
|
59
|
-
- public/lib/jquery.ba-bbq.min.js
|
60
|
-
- public/lib/jquery.slideto.min.js
|
61
|
-
- public/lib/jquery.wiggle.min.js
|
62
|
-
- public/lib/js-yaml.min.js
|
63
|
-
- public/lib/jsoneditor.min.js
|
64
|
-
- public/lib/lodash.min.js
|
65
|
-
- public/lib/marked.js
|
66
|
-
- public/lib/swagger-oauth.js
|
67
|
-
- public/o2c.html
|
68
|
-
- public/swagger-ui.js
|
69
|
-
- public/swagger-ui.min.js
|
25
|
+
- public/swagger_ui_static_engine/css/print.css
|
26
|
+
- public/swagger_ui_static_engine/css/reset.css
|
27
|
+
- public/swagger_ui_static_engine/css/screen.css
|
28
|
+
- public/swagger_ui_static_engine/css/style.css
|
29
|
+
- public/swagger_ui_static_engine/css/typography.css
|
30
|
+
- public/swagger_ui_static_engine/fonts/DroidSans-Bold.ttf
|
31
|
+
- public/swagger_ui_static_engine/fonts/DroidSans.ttf
|
32
|
+
- public/swagger_ui_static_engine/images/collapse.gif
|
33
|
+
- public/swagger_ui_static_engine/images/expand.gif
|
34
|
+
- public/swagger_ui_static_engine/images/explorer_icons.png
|
35
|
+
- public/swagger_ui_static_engine/images/favicon-16x16.png
|
36
|
+
- public/swagger_ui_static_engine/images/favicon-32x32.png
|
37
|
+
- public/swagger_ui_static_engine/images/favicon.ico
|
38
|
+
- public/swagger_ui_static_engine/images/logo_small.png
|
39
|
+
- public/swagger_ui_static_engine/images/pet_store_api.png
|
40
|
+
- public/swagger_ui_static_engine/images/throbber.gif
|
41
|
+
- public/swagger_ui_static_engine/images/wordnik_api.png
|
42
|
+
- public/swagger_ui_static_engine/lang/en.js
|
43
|
+
- public/swagger_ui_static_engine/lang/es.js
|
44
|
+
- public/swagger_ui_static_engine/lang/fr.js
|
45
|
+
- public/swagger_ui_static_engine/lang/geo.js
|
46
|
+
- public/swagger_ui_static_engine/lang/it.js
|
47
|
+
- public/swagger_ui_static_engine/lang/ja.js
|
48
|
+
- public/swagger_ui_static_engine/lang/pl.js
|
49
|
+
- public/swagger_ui_static_engine/lang/pt.js
|
50
|
+
- public/swagger_ui_static_engine/lang/ru.js
|
51
|
+
- public/swagger_ui_static_engine/lang/tr.js
|
52
|
+
- public/swagger_ui_static_engine/lang/translator.js
|
53
|
+
- public/swagger_ui_static_engine/lang/zh-cn.js
|
54
|
+
- public/swagger_ui_static_engine/lib/backbone-min.js
|
55
|
+
- public/swagger_ui_static_engine/lib/handlebars-2.0.0.js
|
56
|
+
- public/swagger_ui_static_engine/lib/highlight.9.1.0.pack.js
|
57
|
+
- public/swagger_ui_static_engine/lib/highlight.9.1.0.pack_extended.js
|
58
|
+
- public/swagger_ui_static_engine/lib/jquery-1.8.0.min.js
|
59
|
+
- public/swagger_ui_static_engine/lib/jquery.ba-bbq.min.js
|
60
|
+
- public/swagger_ui_static_engine/lib/jquery.slideto.min.js
|
61
|
+
- public/swagger_ui_static_engine/lib/jquery.wiggle.min.js
|
62
|
+
- public/swagger_ui_static_engine/lib/js-yaml.min.js
|
63
|
+
- public/swagger_ui_static_engine/lib/jsoneditor.min.js
|
64
|
+
- public/swagger_ui_static_engine/lib/lodash.min.js
|
65
|
+
- public/swagger_ui_static_engine/lib/marked.js
|
66
|
+
- public/swagger_ui_static_engine/lib/swagger-oauth.js
|
67
|
+
- public/swagger_ui_static_engine/o2c.html
|
68
|
+
- public/swagger_ui_static_engine/swagger-ui.js
|
69
|
+
- public/swagger_ui_static_engine/swagger-ui.min.js
|
70
70
|
- README.md
|
71
71
|
homepage: https://github.com/kevinmtrowbridge/swagger_ui_static_engine
|
72
72
|
licenses:
|