efigence-swagger_ui_wrapper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagger_ui_wrapper/rack/middleware.rb +1 -1
- data/lib/swagger_ui_wrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8328e38dfc300bd94b351cf52fa96caa38275c86
|
4
|
+
data.tar.gz: adfc05e32a1007d910237507209d7487146014c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e4d88572179d67e83f1c0e86dfa95d24e105519abe6a52507ff5496b2f5f7deab17c9324748b2dcb32e9473823a5b57720241fbe41ca2fa688b46f74413386d
|
7
|
+
data.tar.gz: cb79e7b19615cf63b02ba4818eb882d1ac748db2a8f969d0867524005000e18608373e4ccb06e83c90f137a6aa526ce627b0cd81a4b6d63e8b603ebd315798e8
|
@@ -15,7 +15,7 @@ module SwaggerUiWrapper
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def call(env)
|
18
|
-
if env['REQUEST_PATH'].start_with?
|
18
|
+
if env['REQUEST_PATH'] && env['REQUEST_PATH'].start_with?(@path)
|
19
19
|
_env = env.merge("QUERY_STRING" => "url=http://localhost:9292/v1/swagger_doc")
|
20
20
|
@swagger_assets_handler.call(_env)
|
21
21
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: efigence-swagger_ui_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lizhe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|