nonnative 1.99.0 → 1.101.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: 5aeadf7d3e8832a39ac9d6b4a2966ca0ab714ddc235c03434a0186aaeb8944dd
4
- data.tar.gz: 18f9bbe32e062de2c543a6d2b8d3eab60974e0f9bfc2ceac918316703a93cf3e
3
+ metadata.gz: 969ee407c6a61689907e52312cd3a17803b38323b3f3405008cad5202e450c2d
4
+ data.tar.gz: dde8d2d79b0d6aab78396453f7cc0e3076569fe4d56eee76390e775cda77cd90
5
5
  SHA512:
6
- metadata.gz: 9dfe6440f145b3920268305a70e0c31007f867538311199ff29b63bba2a46629c1d1f41329fa1dda6147551f53ba855ab822dacb19c25e3930def8b233ec04ca
7
- data.tar.gz: 8c00438d0ec2ac47a953bdf195228b2d5b57f6e13c1ba79423f2887bf82522f444880fbc631ebc52f6bb0a27b0b0a6a4f9af37f877e6e1366de32b7c61113e9a
6
+ metadata.gz: 902fda05827a817c5d18423d0417449ac61857339d0fd0e543049e12f88633378c6275fa78b23d89cf1c86d244023f172572f65f032cb9e1c7e821e5dff49fc5
7
+ data.tar.gz: b718dfc306d72a463c07f1fa173f2214a124c0cc27a6867e0c26a3f06fbc1384a6c9f5478780cbc2b2bb77f18bd5f5aa141a2d2c92b68a2ddd61d5b908cef8e6
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.101.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.101.0) - 2025-05-01
10
+
11
+ - [`ae5969c`](https://github.com/alexfalkowski/nonnative/commit/ae5969c59f3f52bc2b88c1d84e4290f3a0d164a1) feat(proxy): add logs for start/stop (#555)
12
+
13
+ ## [v1.100.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.100.0) - 2025-05-01
14
+
15
+ - [`c82c27b`](https://github.com/alexfalkowski/nonnative/commit/c82c27b9edd5bfe50b6ab22cc3779adc7afcc82c) feat(clear): separate clearing pool or configuration (#553)
16
+
9
17
  ## [v1.99.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.99.0) - 2025-05-01
10
18
 
11
19
  - [`2009830`](https://github.com/alexfalkowski/nonnative/commit/200983099a376da5d769143b00552fc328444584) feat(server): add logging (#552)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.99.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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.99.0'
4
+ VERSION = '1.101.0'
5
5
  end
data/lib/nonnative.rb CHANGED
@@ -120,11 +120,19 @@ module Nonnative
120
120
  raise Nonnative::StopError, errors.join("\n") unless errors.empty?
121
121
  end
122
122
 
123
- def clear
123
+ def clear_configuration
124
124
  @configuration = nil
125
+ end
126
+
127
+ def clear_pool
125
128
  @pool = nil
126
129
  end
127
130
 
131
+ def clear
132
+ clear_configuration
133
+ clear_pool
134
+ end
135
+
128
136
  def reset
129
137
  Nonnative.pool.reset
130
138
  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.99.0
4
+ version: 1.101.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski