tshield 0.11.9.0 → 0.11.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tshield/request_vcr.rb +11 -10
- data/lib/tshield/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: 8771fe4287a4bcba7da31ade5a34ceb2dea60b466a9351a721f58187101691de
|
4
|
+
data.tar.gz: 1087f349e8e938bc006a2e141f7f1b9fa45a02c8897b8f526d6edeecd325b8fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74c12d46caf171caf03c44718d9ede0f1d56c8ca0d97bd36c9a8dac15634dcf30b5921bd5cc25be9a5c7108436bbd07737f18372768f8b6eb8269f0a7e7ad2a8
|
7
|
+
data.tar.gz: 398f68a82cba538f947dae0a5a6726dcd3c388ecf22dcd3cbda5aa41321f2e10942ca1dd92feade540f595442934ce435daf33d0a9cb6c2aedbfe20c7bc02365
|
data/lib/tshield/request_vcr.rb
CHANGED
@@ -31,24 +31,25 @@ module TShield
|
|
31
31
|
|
32
32
|
@url = "#{domain}#{@path}"
|
33
33
|
|
34
|
+
configuration.get_before_filters(domain).each do |filter|
|
35
|
+
_method, @url, @options = filter.new.filter(method, @url, @options)
|
36
|
+
end
|
37
|
+
|
34
38
|
if exists
|
35
39
|
response.original = false
|
36
|
-
response
|
40
|
+
resp = response
|
37
41
|
else
|
38
|
-
configuration.get_before_filters(domain).each do |filter|
|
39
|
-
_method, @url, @options = filter.new.filter(method, @url, @options)
|
40
|
-
end
|
41
|
-
|
42
42
|
raw = HTTParty.send(method.to_s, @url, @options)
|
43
43
|
|
44
|
-
configuration.get_after_filters(domain).each do |filter|
|
45
|
-
raw = filter.new.filter(raw)
|
46
|
-
end
|
47
|
-
|
48
44
|
original_response = save(raw)
|
49
45
|
original_response.original = true
|
50
|
-
original_response
|
46
|
+
resp = original_response
|
47
|
+
end
|
48
|
+
|
49
|
+
configuration.get_after_filters(domain).each do |filter|
|
50
|
+
resp = filter.new.filter(resp)
|
51
51
|
end
|
52
|
+
resp
|
52
53
|
end
|
53
54
|
|
54
55
|
def response
|
data/lib/tshield/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tshield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Rubin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|