nonnative 1.100.0 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/nonnative/fault_injection_proxy.rb +4 -0
- data/lib/nonnative/http_proxy_server.rb +2 -3
- data/lib/nonnative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a0a1b6cd139850ec56082f6b35cf54bf192946fdf874a1a604a35549c75ea13
|
4
|
+
data.tar.gz: c0d14528d9ce8f53c83d5140f5dbd83c086759cd816dca4f0ef7330de33d2a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2544bacfdf266acc520b3f9cce54546f1c74d06b2222e63f2f395c1c8f58fcd792797c184512c3b76ddb18e565185d0bee1a2d3b6328938bb2db8f2a496418ca
|
7
|
+
data.tar.gz: 13d46528e8a2c8723fd27ad101e6b0f2143ccb9c363b94469b6f673b67fa4d8a23ed9db1c46e31d6b05a25dd9a58f86f95a479f89e0f1b64db212378fe5358e5
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## [v1.102.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.102.0) - 2025-05-01
|
10
|
+
|
11
|
+
- [`d2947f6`](https://github.com/alexfalkowski/nonnative/commit/d2947f6626ce77ade0a69007ea388cf14e5d3f67) feat(http): enable logging for proxy (#556)
|
12
|
+
|
13
|
+
## [v1.101.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.101.0) - 2025-05-01
|
14
|
+
|
15
|
+
- [`ae5969c`](https://github.com/alexfalkowski/nonnative/commit/ae5969c59f3f52bc2b88c1d84e4290f3a0d164a1) feat(proxy): add logs for start/stop (#555)
|
16
|
+
|
9
17
|
## [v1.100.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.100.0) - 2025-05-01
|
10
18
|
|
11
19
|
- [`c82c27b`](https://github.com/alexfalkowski/nonnative/commit/c82c27b9edd5bfe50b6ab22cc3779adc7afcc82c) feat(clear): separate clearing pool or configuration (#553)
|
data/Gemfile.lock
CHANGED
@@ -14,11 +14,15 @@ module Nonnative
|
|
14
14
|
def start
|
15
15
|
@tcp_server = ::TCPServer.new(service.host, service.port)
|
16
16
|
@thread = Thread.new { perform_start }
|
17
|
+
|
18
|
+
Nonnative.logger.info "started with host '#{service.host}' and port '#{service.port}' for proxy 'fault_injection'"
|
17
19
|
end
|
18
20
|
|
19
21
|
def stop
|
20
22
|
thread&.terminate
|
21
23
|
tcp_server&.close
|
24
|
+
|
25
|
+
Nonnative.logger.info "stopped with host '#{service.host}' and port '#{service.port}' for proxy 'fault_injection'"
|
22
26
|
end
|
23
27
|
|
24
28
|
def close_all
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Adapted from https://gist.github.com/RaVbaker/d9ead3c92b915f997dab25c7f0c0ab65
|
4
4
|
module Nonnative
|
5
|
-
class
|
5
|
+
class HTTPProxy < Sinatra::Application
|
6
6
|
def retrieve_headers(request)
|
7
7
|
headers = request.env.map do |header, value|
|
8
8
|
[header[5..].split('_').map(&:capitalize).join('-'), value] if header.start_with?('HTTP_')
|
@@ -38,9 +38,8 @@ module Nonnative
|
|
38
38
|
|
39
39
|
class HTTPProxyServer < Nonnative::HTTPServer
|
40
40
|
def initialize(host, service)
|
41
|
-
app = Sinatra.new(Nonnative::
|
41
|
+
app = Sinatra.new(Nonnative::HTTPProxy) do
|
42
42
|
configure do
|
43
|
-
set :logging, false
|
44
43
|
set :host, host
|
45
44
|
end
|
46
45
|
end
|
data/lib/nonnative/version.rb
CHANGED