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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d3530e65abf8acdfa154645821c1b77bc3ea0cb9da03c8095b1a34cce16c75c
4
- data.tar.gz: 59d1cf7b63e86b28a9f28ea3d1ff67d972429e53985808e00dd77bc49c803284
3
+ metadata.gz: 3a0a1b6cd139850ec56082f6b35cf54bf192946fdf874a1a604a35549c75ea13
4
+ data.tar.gz: c0d14528d9ce8f53c83d5140f5dbd83c086759cd816dca4f0ef7330de33d2a93
5
5
  SHA512:
6
- metadata.gz: 40192749152bfb68f6f54e13e56067f9a51b9b63bed52a37f011774913cf2296a7f14d3c1c42bd0bc2c7472a901f384070e772f26c693904a85f435d27b079a7
7
- data.tar.gz: 6c38e6d1785412caae05c77a3f28bf7700afe29d2141c09937e39df0b3d551e5ccc215e9766584db366d13a4be9fc3d2ae59981b7f7333004c7f765aab246692
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.100.0)
4
+ nonnative (1.101.0)
5
5
  concurrent-ruby (>= 1, < 2)
6
6
  config (>= 5, < 6)
7
7
  cucumber (>= 7, < 10)
@@ -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 HTTPProxyApplication < Sinatra::Application
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::HTTPProxyApplication) do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.100.0'
4
+ VERSION = '1.102.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonnative
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.100.0
4
+ version: 1.102.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski