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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rswag/api/middleware.rb +1 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4788a47931d1d98a8f905cf8afed655c53afdc1fe2ac7912a76c0b5aa7dfc649
4
- data.tar.gz: e4a1cda783a67dd2707b528ac9796dd6ba487dc42cf5d9befb15e232b747ac74
3
+ metadata.gz: 0c4b0b1823d2a3e58105f5f590ef67b52822ea8771d4d684b2bb110f22bf72c5
4
+ data.tar.gz: 87e0cffb99331863717dbdcdf977bb944c0c0a3c680444b136a295375d03cd45
5
5
  SHA512:
6
- metadata.gz: c7f8c2762098b6ff3320b1724dd51dd209bbdde3d45fcda24f4f6ac027eafa44b08fbdb37f113c0fafdec807c2f12ea4c6932a246879f8a5545e1eafca1c4686
7
- data.tar.gz: 2f1013896940b59035472c846f8585479f150389c5aa8e7df327ab64e308ecc29f69d8322e78ff59012254a642ef7953953067e849ffd46208bc6fe02d56df4a
6
+ metadata.gz: d1fd3ab0dc74547c7ba73dcc8f5b41d3a183885172b38a1b608e87fe065af2de2a07f4aeac2f892b8ee87aee180ebb6448f1ab5e5d2d1b0cbe01c769b89e04da
7
+ data.tar.gz: 4a722abfbaa010ce7ced0e7e1e7f1606bf0229673f4de3a59717feb621df5be10cef8160c90a3aa6a588917e0b9c715c0102637c0267d3ec5e18e621b5c92e38
@@ -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.10.1
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-07-13 00:00:00.000000000 Z
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.1'
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.1'
34
+ version: '7.2'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: simplecov
37
37
  requirement: !ruby/object:Gem::Requirement