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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8500d36e8b1861611e519cc93e40f176622a24d890f73615fa9852d83b12d530
4
- data.tar.gz: e5e8dcccd4a31ba89cba70c328f533c1128fb7a8917fdcdec5bbb74cd6832b08
3
+ metadata.gz: 8771fe4287a4bcba7da31ade5a34ceb2dea60b466a9351a721f58187101691de
4
+ data.tar.gz: 1087f349e8e938bc006a2e141f7f1b9fa45a02c8897b8f526d6edeecd325b8fe
5
5
  SHA512:
6
- metadata.gz: 4780911e56839db9afd8a28dbc5759e3cd1d8a604c195c8f5921258cf0bcddf0d8042764e775b871088ac41b0791f14109ed8538c9ad5f991be35a225098c989
7
- data.tar.gz: 65ce05ffd2f63a68de6e91d9f34d2fe057376f32cf860132d5aca54455a16f97987c90b8af0785d03006c0aaa72cf18f58bfe8e079e2571e8ba3d07e51ded190
6
+ metadata.gz: 74c12d46caf171caf03c44718d9ede0f1d56c8ca0d97bd36c9a8dac15634dcf30b5921bd5cc25be9a5c7108436bbd07737f18372768f8b6eb8269f0a7e7ad2a8
7
+ data.tar.gz: 398f68a82cba538f947dae0a5a6726dcd3c388ecf22dcd3cbda5aa41321f2e10942ca1dd92feade540f595442934ce435daf33d0a9cb6c2aedbfe20c7bc02365
@@ -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
@@ -5,7 +5,7 @@ module TShield
5
5
  class Version
6
6
  MAJOR = 0
7
7
  MINOR = 11
8
- PATCH = 9
8
+ PATCH = 10
9
9
  PRE = 0
10
10
 
11
11
  class << self
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.9.0
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: 2019-10-22 00:00:00.000000000 Z
12
+ date: 2020-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: byebug