rswag-api 2.10.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rswag/api/middleware.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c4b0b1823d2a3e58105f5f590ef67b52822ea8771d4d684b2bb110f22bf72c5
|
4
|
+
data.tar.gz: 87e0cffb99331863717dbdcdf977bb944c0c0a3c680444b136a295375d03cd45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1fd3ab0dc74547c7ba73dcc8f5b41d3a183885172b38a1b608e87fe065af2de2a07f4aeac2f892b8ee87aee180ebb6448f1ab5e5d2d1b0cbe01c769b89e04da
|
7
|
+
data.tar.gz: 4a722abfbaa010ce7ced0e7e1e7f1606bf0229673f4de3a59717feb621df5be10cef8160c90a3aa6a588917e0b9c715c0102637c0267d3ec5e18e621b5c92e38
|
data/lib/rswag/api/middleware.rb
CHANGED
@@ -16,7 +16,7 @@ module Rswag
|
|
16
16
|
# Sanitize the filename for directory traversal by expanding, and ensuring
|
17
17
|
# its starts with the root directory.
|
18
18
|
filename = File.expand_path(File.join(@config.resolve_swagger_root(env), path))
|
19
|
-
unless filename.start_with? @config.resolve_swagger_root(env)
|
19
|
+
unless filename.start_with? @config.resolve_swagger_root(env).to_s
|
20
20
|
return @app.call(env)
|
21
21
|
end
|
22
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rswag-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richie Morris
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-10-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '7.
|
24
|
+
version: '7.2'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: '3.1'
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '7.
|
34
|
+
version: '7.2'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: simplecov
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|