nonnative 1.95.0 → 1.97.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: 3613ca777546fc006d042c2362ea786703faf50f9c7da1dbb000ee86888576ec
4
- data.tar.gz: 9ccf77b2d359cb33bb576e83af6de8747eadd13de2d205a339e12121bb20559b
3
+ metadata.gz: 8d545433883dc728547208b3498cfc683c76162ddcc7ef888f78fe9bbcb291fd
4
+ data.tar.gz: 5ad448a849648fcaf025c34949edd7ec09220e11be0aedac756dae7133122660
5
5
  SHA512:
6
- metadata.gz: 81ad331d2b921d218aa07c3c5dde834e3cca80065ec2f62b12bc33e73902fe3cb757d5bfe997261c11f3eb1fd114753df1bba00d5b13a884ad3b87546fd4ec70
7
- data.tar.gz: d286638c65e67430acc7f3f262ddd99ba684b6a6eb5235e276b974481925a21eef519d6f2244b475d86183464c842d04300cf4fe0bafde11335b3385d5e6637e
6
+ metadata.gz: 62b63172647661d52856dc4c1bdefcd9d5336be3ca347b61ed51c63d83a4fe67906a258385cac7c9fd2fcae1798d1bc099d7269e4e8fa0c885a049db43131421
7
+ data.tar.gz: a47d3b669a8ebc2e111deb44a9aac655073572460da6088c64d98a8105f9f32ce93ba1f132298f9ebe3fa4a858a136f26d1eb80d71f667bb1eddeb246b37f2f3
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.97.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.97.0) - 2025-04-30
10
+
11
+ - [`367a78f`](https://github.com/alexfalkowski/nonnative/commit/367a78fa8615ebe3f68cb86fa416f7ea0f2cd63e) feat(socket): add logs for pairs (#549)
12
+
13
+ ## [v1.96.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.96.0) - 2025-04-30
14
+
15
+ - [`281eb99`](https://github.com/alexfalkowski/nonnative/commit/281eb993fefb9dfda6118a23e811153e9acb0c02) feat(proxy): add logs for fault_injection (#548)
16
+
9
17
  ## [v1.95.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.95.0) - 2025-04-30
10
18
 
11
19
  - [`5146eb7`](https://github.com/alexfalkowski/nonnative/commit/5146eb76cc7fb0dbe8ad5443d189639a7837f5b2) feat(http): use puma (#547)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.95.0)
4
+ nonnative (1.97.0)
5
5
  concurrent-ruby (>= 1, < 2)
6
6
  config (>= 5, < 6)
7
7
  cucumber (>= 7, < 10)
@@ -65,7 +65,7 @@ GEM
65
65
  google-protobuf (4.30.2-x86_64-darwin)
66
66
  bigdecimal
67
67
  rake (>= 13)
68
- googleapis-common-protos-types (1.19.0)
68
+ googleapis-common-protos-types (1.20.0)
69
69
  google-protobuf (>= 3.18, < 5.a)
70
70
  grpc (1.71.0-x86_64-darwin)
71
71
  google-protobuf (>= 3.25, < 5.0)
@@ -80,7 +80,7 @@ GEM
80
80
  mime-types (3.6.2)
81
81
  logger
82
82
  mime-types-data (~> 3.2015)
83
- mime-types-data (3.2025.0422)
83
+ mime-types-data (3.2025.0429)
84
84
  mini_mime (1.1.5)
85
85
  multi_test (1.1.0)
86
86
  mustermann (3.0.3)
@@ -136,7 +136,7 @@ GEM
136
136
  rspec-support (3.13.2)
137
137
  rspec-wait (1.0.1)
138
138
  rspec (>= 3.4)
139
- rubocop (1.75.3)
139
+ rubocop (1.75.4)
140
140
  json (~> 2.3)
141
141
  language_server-protocol (~> 3.17.0.2)
142
142
  lint_roller (~> 1.1.0)
@@ -173,7 +173,7 @@ GEM
173
173
  rack-protection (= 4.1.1)
174
174
  rack-session (>= 2.0.0, < 3)
175
175
  tilt (~> 2.0)
176
- sorbet-runtime (0.5.12042)
176
+ sorbet-runtime (0.5.12046)
177
177
  sys-uname (1.3.1)
178
178
  ffi (~> 1.1)
179
179
  tilt (2.6.0)
data/README.md CHANGED
@@ -235,7 +235,7 @@ Define your server:
235
235
  ```ruby
236
236
  module Nonnative
237
237
  module Features
238
- class Application < Sinatra::Application
238
+ class Hello < Sinatra::Application
239
239
  get '/hello' do
240
240
  'Hello World!'
241
241
  end
@@ -243,13 +243,7 @@ module Nonnative
243
243
 
244
244
  class HTTPServer < Nonnative::HTTPServer
245
245
  def initialize(service)
246
- app = Sinatra.new(Application) do
247
- configure do
248
- set :logging, false
249
- end
250
- end
251
-
252
- super(app, service)
246
+ super(Sinatra.new(Hello), service)
253
247
  end
254
248
  end
255
249
  end
@@ -379,9 +373,7 @@ module Nonnative
379
373
 
380
374
  class GRPCServer < Nonnative::GRPCServer
381
375
  def initialize(service)
382
- svc = Greeter.new
383
-
384
- super(svc, service)
376
+ super(Greeter.new, service)
385
377
  end
386
378
  end
387
379
  end
@@ -3,6 +3,8 @@
3
3
  module Nonnative
4
4
  class CloseAllSocketPair < SocketPair
5
5
  def connect(local_socket)
6
+ Nonnative.logger.info "closing socket '#{local_socket.inspect}' for 'close_all' pair"
7
+
6
8
  local_socket.close
7
9
  end
8
10
  end
@@ -3,6 +3,8 @@
3
3
  module Nonnative
4
4
  class DelaySocketPair < SocketPair
5
5
  def read(socket)
6
+ Nonnative.logger.info "delaying socket '#{socket.inspect}' for 'delay' pair"
7
+
6
8
  duration = proxy.options[:delay] || 2
7
9
  sleep duration
8
10
 
@@ -89,6 +89,8 @@ module Nonnative
89
89
 
90
90
  def apply_state(state)
91
91
  mutex.synchronize do
92
+ Nonnative.logger.info "applying state '#{state}' for proxy 'fault_injection'"
93
+
92
94
  return if @state == state
93
95
 
94
96
  @state = state
@@ -3,6 +3,8 @@
3
3
  module Nonnative
4
4
  class InvalidDataSocketPair < SocketPair
5
5
  def write(socket, data)
6
+ Nonnative.logger.info "shuffling socket data '#{socket.inspect}' for 'invalid_data' pair"
7
+
6
8
  data = data.chars.shuffle.join
7
9
 
8
10
  super
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.95.0'
4
+ VERSION = '1.97.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.95.0
4
+ version: 1.97.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski