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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af46eff2f6ec90e911caf8b192fb7fa5cb9c960b
4
- data.tar.gz: b42370f188dd9ccdbaa6e26e846bd22f6e1efcca
3
+ metadata.gz: 8328e38dfc300bd94b351cf52fa96caa38275c86
4
+ data.tar.gz: adfc05e32a1007d910237507209d7487146014c4
5
5
  SHA512:
6
- metadata.gz: 1d0cf8ef16782f4f438ba159ef3e84e1d00f6428133c6356e63f1bdb0d308e36fd8eeefd3ab33d7109f1e3ec649757235c00999de319cfc4ade22ea49f481aaf
7
- data.tar.gz: cc94de36fc5429f6229fb904b85b9fbacfc1515ea493747a3668531f7265c605f9a20f403e4d80c558ca838cd5ac25a45ba32f17d2753c6e711134961f17843d
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? @path
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
@@ -1,3 +1,3 @@
1
1
  module SwaggerUiWrapper
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-10 00:00:00.000000000 Z
11
+ date: 2016-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack