network_resiliency 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/network_resiliency/adapter/http.rb +5 -2
- data/lib/network_resiliency/version.rb +1 -1
- data/lib/network_resiliency.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: 3a117a433190255f909972c26e9e0e9ce40cf9514f5fedd957f5dbdd85579506
|
4
|
+
data.tar.gz: e4f400b0a755df561089df6d5e771e63d1cbc4036ebe34e7588bd8073c11616c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9e8785746b244b51698b4561e377bbb4ea919e6963949e4de017a1ad044a86eb6a92f7ceb9e7903ed4dd44eec998b5512d02045567eb427256c3a7508cf5df
|
7
|
+
data.tar.gz: ad266433a748c586f249b344f28bf77ea2df57f7a75fa56cb7b443eb1cd5a4fd0200b7a043e019568f40a869a9c8a07bd380895e72b9646f65fa75c192632ad7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -104,10 +104,13 @@ module NetworkResiliency
|
|
104
104
|
def transport_request(req, &block)
|
105
105
|
return super unless NetworkResiliency.enabled?(:http)
|
106
106
|
|
107
|
+
# strip query params
|
108
|
+
path = URI.parse(req.path).path
|
109
|
+
|
107
110
|
destination = [
|
108
|
-
req.method.downcase,
|
109
111
|
address,
|
110
|
-
|
112
|
+
req.method.downcase,
|
113
|
+
normalize_path(path),
|
111
114
|
].join(":")
|
112
115
|
|
113
116
|
idepotent = Net::HTTP::IDEMPOTENT_METHODS_.include?(req.method)
|
data/lib/network_resiliency.rb
CHANGED
@@ -251,7 +251,7 @@ module NetworkResiliency
|
|
251
251
|
warn "[ERROR] NetworkResiliency: #{e.class}: #{e.message}"
|
252
252
|
end
|
253
253
|
|
254
|
-
IP_ADDRESS_REGEX =
|
254
|
+
IP_ADDRESS_REGEX = /\d{1,3}(\.\d{1,3}){3}/
|
255
255
|
|
256
256
|
def ignore_destination?(adapter, action, destination)
|
257
257
|
# filter raw IP addresses
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: network_resiliency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Pepper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|