kiev 4.8.1 → 4.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kiev/base.rb +1 -1
- data/lib/kiev/config.rb +4 -0
- data/lib/kiev/request_body_filter.rb +3 -0
- data/lib/kiev/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b75d8c13ade0c1c19c620f32cd91f9ee8cfb181b88bbbb450bacc2740ed297de
|
4
|
+
data.tar.gz: 91dc05471b4dd9cd0b7d436b3c8e6df35760a11a269a48a64b575bf37bf02a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e8928421ba2133504842a917a9a0188f81786eea86a7f88abc9b722bde7fad3e4d01d84610bd0b073678b06cad8f4735e1002ce05d3c473e68c7e7edc029a77
|
7
|
+
data.tar.gz: 20bf31e576d12ffea2a8a9b6c9bebfc9e27e00d0ef7bf0a2e446546bb622fa4b2e60a0666d51c64ba4d8ae20b3fb01bdab88fbec9e5f7d5f0957f69e7790cfe0
|
data/lib/kiev/base.rb
CHANGED
data/lib/kiev/config.rb
CHANGED
@@ -29,6 +29,9 @@ module Kiev
|
|
29
29
|
def self.filter(content_type, request_body, filtered_params, ignored_params)
|
30
30
|
body = request_body.read
|
31
31
|
request_body.rewind
|
32
|
+
|
33
|
+
return body unless Kiev.config.filter_enabled?
|
34
|
+
|
32
35
|
body_filter = for_content_type(content_type)
|
33
36
|
body_filter.call(body, filtered_params, ignored_params)
|
34
37
|
end
|
data/lib/kiev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kiev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.
|
4
|
+
version: 4.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blacklane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|