nonnative 1.67.0 → 1.69.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.
data/Gemfile CHANGED
@@ -6,3 +6,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
7
  # Specify your gem's dependencies in nonnative.gemspec
8
8
  gemspec
9
+
10
+ gem 'bundler'
11
+ gem 'coveralls_reborn'
12
+ gem 'rubocop'
13
+ gem 'solargraph'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.67.0)
4
+ nonnative (1.69.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 9)
7
7
  get_process_mem (~> 0.2.1)
@@ -22,12 +22,12 @@ GEM
22
22
  benchmark-perf (0.6.0)
23
23
  benchmark-trend (0.4.0)
24
24
  builder (3.2.4)
25
- concurrent-ruby (1.1.10)
26
- coveralls_reborn (0.25.0)
27
- simplecov (>= 0.18.1, < 0.22.0)
28
- term-ansicolor (~> 1.6)
29
- thor (>= 0.20.3, < 2.0)
30
- tins (~> 1.16)
25
+ concurrent-ruby (1.2.2)
26
+ coveralls_reborn (0.27.0)
27
+ simplecov (~> 0.22.0)
28
+ term-ansicolor (~> 1.7)
29
+ thor (~> 1.2)
30
+ tins (~> 1.32)
31
31
  cucumber (8.0.0)
32
32
  builder (~> 3.2, >= 3.2.4)
33
33
  cucumber-ci-environment (~> 9.0, >= 9.0.4)
@@ -40,7 +40,7 @@ GEM
40
40
  mime-types (~> 3.4, >= 3.4.1)
41
41
  multi_test (~> 1.1, >= 1.1.0)
42
42
  sys-uname (~> 1.2, >= 1.2.2)
43
- cucumber-ci-environment (9.1.0)
43
+ cucumber-ci-environment (9.2.0)
44
44
  cucumber-core (11.0.0)
45
45
  cucumber-gherkin (~> 23.0, >= 23.0.1)
46
46
  cucumber-messages (~> 18.0, >= 18.0.0)
@@ -60,14 +60,10 @@ GEM
60
60
  ffi (1.15.5)
61
61
  get_process_mem (0.2.7)
62
62
  ffi (~> 1.0)
63
- google-protobuf (3.21.12-x86_64-darwin)
64
- google-protobuf (3.21.12-x86_64-linux)
65
- googleapis-common-protos-types (1.4.0)
63
+ google-protobuf (3.23.1-x86_64-darwin)
64
+ googleapis-common-protos-types (1.6.0)
66
65
  google-protobuf (~> 3.14)
67
- grpc (1.50.0-x86_64-darwin)
68
- google-protobuf (~> 3.21)
69
- googleapis-common-protos-types (~> 1.0)
70
- grpc (1.50.0-x86_64-linux)
66
+ grpc (1.54.2-x86_64-darwin)
71
67
  google-protobuf (~> 3.21)
72
68
  googleapis-common-protos-types (~> 1.0)
73
69
  http-accept (1.7.0)
@@ -81,27 +77,28 @@ GEM
81
77
  kramdown (~> 2.0)
82
78
  mime-types (3.4.1)
83
79
  mime-types-data (~> 3.2015)
84
- mime-types-data (3.2022.0105)
80
+ mime-types-data (3.2023.0218.1)
85
81
  multi_test (1.1.0)
86
82
  mustermann (3.0.0)
87
83
  ruby2_keywords (~> 0.0.1)
88
84
  netrc (0.11.0)
89
- nio4r (2.5.8)
90
- nokogiri (1.13.10-x86_64-darwin)
85
+ nio4r (2.5.9)
86
+ nokogiri (1.15.0-x86_64-darwin)
91
87
  racc (~> 1.4)
92
- nokogiri (1.13.10-x86_64-linux)
88
+ nokogiri (1.15.0-x86_64-linux)
93
89
  racc (~> 1.4)
94
- parallel (1.22.1)
95
- parser (3.1.3.0)
90
+ parallel (1.23.0)
91
+ parser (3.2.2.1)
96
92
  ast (~> 2.4.1)
97
- puma (6.0.0)
93
+ puma (6.2.2)
98
94
  nio4r (~> 2.0)
99
- racc (1.6.1)
100
- rack (2.2.4)
101
- rack-protection (3.0.5)
95
+ racc (1.6.2)
96
+ rack (2.2.7)
97
+ rack-protection (3.0.6)
102
98
  rack
103
99
  rainbow (3.1.1)
104
- regexp_parser (2.6.1)
100
+ rbs (2.8.4)
101
+ regexp_parser (2.8.0)
105
102
  rest-client (2.1.0)
106
103
  http-accept (>= 1.7.0, < 2.0)
107
104
  http-cookie (>= 1.0.2, < 2.0)
@@ -119,82 +116,81 @@ GEM
119
116
  benchmark-perf (~> 0.6)
120
117
  benchmark-trend (~> 0.4)
121
118
  rspec (>= 3.0)
122
- rspec-core (3.12.0)
119
+ rspec-core (3.12.2)
123
120
  rspec-support (~> 3.12.0)
124
- rspec-expectations (3.12.1)
121
+ rspec-expectations (3.12.3)
125
122
  diff-lcs (>= 1.2.0, < 2.0)
126
123
  rspec-support (~> 3.12.0)
127
- rspec-mocks (3.12.1)
124
+ rspec-mocks (3.12.5)
128
125
  diff-lcs (>= 1.2.0, < 2.0)
129
126
  rspec-support (~> 3.12.0)
130
127
  rspec-support (3.12.0)
131
- rubocop (1.40.0)
128
+ rubocop (1.51.0)
132
129
  json (~> 2.3)
133
130
  parallel (~> 1.10)
134
- parser (>= 3.1.2.1)
131
+ parser (>= 3.2.0.0)
135
132
  rainbow (>= 2.2.2, < 4.0)
136
133
  regexp_parser (>= 1.8, < 3.0)
137
134
  rexml (>= 3.2.5, < 4.0)
138
- rubocop-ast (>= 1.23.0, < 2.0)
135
+ rubocop-ast (>= 1.28.0, < 2.0)
139
136
  ruby-progressbar (~> 1.7)
140
- unicode-display_width (>= 1.4.0, < 3.0)
141
- rubocop-ast (1.24.0)
142
- parser (>= 3.1.1.0)
143
- ruby-progressbar (1.11.0)
137
+ unicode-display_width (>= 2.4.0, < 3.0)
138
+ rubocop-ast (1.28.1)
139
+ parser (>= 3.2.1.0)
140
+ ruby-progressbar (1.13.0)
144
141
  ruby2_keywords (0.0.5)
145
- simplecov (0.21.2)
142
+ simplecov (0.22.0)
146
143
  docile (~> 1.1)
147
144
  simplecov-html (~> 0.11)
148
145
  simplecov_json_formatter (~> 0.1)
149
146
  simplecov-html (0.12.3)
150
147
  simplecov_json_formatter (0.1.4)
151
- sinatra (3.0.5)
148
+ sinatra (3.0.6)
152
149
  mustermann (~> 3.0)
153
150
  rack (~> 2.2, >= 2.2.4)
154
- rack-protection (= 3.0.5)
151
+ rack-protection (= 3.0.6)
155
152
  tilt (~> 2.0)
156
- solargraph (0.47.2)
153
+ solargraph (0.49.0)
157
154
  backport (~> 1.2)
158
155
  benchmark
159
- bundler (>= 1.17.2)
156
+ bundler (~> 2.0)
160
157
  diff-lcs (~> 1.4)
161
158
  e2mmap
162
159
  jaro_winkler (~> 1.5)
163
160
  kramdown (~> 2.3)
164
161
  kramdown-parser-gfm (~> 1.1)
165
162
  parser (~> 3.0)
166
- reverse_markdown (>= 1.0.5, < 3)
167
- rubocop (>= 0.52)
163
+ rbs (~> 2.0)
164
+ reverse_markdown (~> 2.0)
165
+ rubocop (~> 1.38)
168
166
  thor (~> 1.0)
169
167
  tilt (~> 2.0)
170
168
  yard (~> 0.9, >= 0.9.24)
171
169
  sync (0.5.0)
172
- sys-uname (1.2.2)
170
+ sys-uname (1.2.3)
173
171
  ffi (~> 1.1)
174
172
  term-ansicolor (1.7.1)
175
173
  tins (~> 1.0)
176
- thor (1.2.1)
177
- tilt (2.0.11)
174
+ thor (1.2.2)
175
+ tilt (2.1.0)
178
176
  tins (1.32.1)
179
177
  sync
180
178
  unf (0.1.4)
181
179
  unf_ext
182
180
  unf_ext (0.0.8.2)
183
- unicode-display_width (2.3.0)
184
- webrick (1.7.0)
185
- yard (0.9.28)
186
- webrick (~> 1.7.0)
181
+ unicode-display_width (2.4.2)
182
+ yard (0.9.34)
187
183
 
188
184
  PLATFORMS
189
185
  x86_64-darwin-21
190
186
  x86_64-linux
191
187
 
192
188
  DEPENDENCIES
193
- bundler (~> 2.3)
194
- coveralls_reborn (~> 0.25.0)
189
+ bundler
190
+ coveralls_reborn
195
191
  nonnative!
196
- rubocop (~> 1.30)
197
- solargraph (~> 0.47.0)
192
+ rubocop
193
+ solargraph
198
194
 
199
195
  BUNDLED WITH
200
196
  2.3.9
data/Makefile CHANGED
@@ -1,39 +1,3 @@
1
1
  .PHONY: features
2
2
 
3
- dep:
4
- bin/setup
5
-
6
- # Update proto deps
7
- proto-update-all:
8
- make -C test update-all
9
-
10
- # Update all deps
11
- dep-update-all: proto-update-all
12
- bundle update
13
-
14
- # Check outdated deps
15
- outdated:
16
- bundle outdated --only-explicit
17
-
18
- # Run all the features
19
- features: clean
20
- bundle exec cucumber --profile report --fail-fast $(feature)
21
-
22
- # Lint all the code
23
- lint:
24
- bundle exec rubocop
25
-
26
- # Fix the lint issues in the code (if possible)
27
- fix-lint:
28
- bundle exec rubocop -A
29
-
30
- clean-logs:
31
- rm -rf features/logs/*.log
32
-
33
- clean-reports:
34
- rm -rf reports
35
-
36
- clean-coverage:
37
- rm -rf coverage
38
-
39
- clean: clean-logs clean-reports clean-coverage
3
+ include bin/build/make/ruby.mak
data/README.md CHANGED
@@ -62,7 +62,7 @@ Nonnative.configure do |config|
62
62
  p.command = -> { 'features/support/bin/start 12_321' }
63
63
  p.timeout = 5
64
64
  p.port = 12_321
65
- p.log = 'features/logs/12_321.log'
65
+ p.log = 'reports/12_321.log'
66
66
  p.signal = 'INT' # Possible values are described in Signal.list.keys.
67
67
  p.environment = { # Pass environment variables to process.
68
68
  'TEST' => 'true'
@@ -74,7 +74,7 @@ Nonnative.configure do |config|
74
74
  p.command = -> { 'features/support/bin/start 12_322' }
75
75
  p.timeout = 0.5
76
76
  p.port = 12_322
77
- p.log = 'features/logs/12_322.log'
77
+ p.log = 'reports/12_322.log'
78
78
  end
79
79
  end
80
80
  ```
@@ -89,7 +89,7 @@ processes:
89
89
  command: features/support/bin/start 12_321
90
90
  timeout: 5
91
91
  port: 12321
92
- log: features/logs/12_321.log
92
+ log: reports/12_321.log
93
93
  signal: INT # Possible values are described in Signal.list.keys.
94
94
  environment: # Pass environment variables to process.
95
95
  TEST: true
@@ -98,7 +98,7 @@ processes:
98
98
  command: features/support/bin/start 12_322
99
99
  timeout: 5
100
100
  port: 12322
101
- log: features/logs/12_322.log
101
+ log: reports/12_322.log
102
102
  ```
103
103
 
104
104
  Then load the file with
@@ -155,7 +155,7 @@ Nonnative.configure do |config|
155
155
  s.klass = Nonnative::EchoServer
156
156
  s.timeout = 1
157
157
  s.port = 12_323
158
- s.log = 'features/logs/server_1.log'
158
+ s.log = 'reports/server_1.log'
159
159
  end
160
160
 
161
161
  config.server do |s|
@@ -163,7 +163,7 @@ Nonnative.configure do |config|
163
163
  s.klass = Nonnative::EchoServer
164
164
  s.timeout = 1
165
165
  s.port = 12_324
166
- s.log = 'features/logs/server_2.log'
166
+ s.log = 'reports/server_2.log'
167
167
  end
168
168
  end
169
169
  ```
@@ -178,13 +178,13 @@ servers:
178
178
  class: Nonnative::EchoServer
179
179
  timeout: 1
180
180
  port: 12323
181
- log: features/logs/server_1.log
181
+ log: reports/server_1.log
182
182
  -
183
183
  name: server_2
184
184
  class: Nonnative::EchoServer
185
185
  timeout: 1
186
186
  port: 12324
187
- log: features/logs/server_2.log
187
+ log: reports/server_2.log
188
188
  ```
189
189
 
190
190
  Then load the file with:
@@ -234,7 +234,7 @@ Nonnative.configure do |config|
234
234
  s.klass = Nonnative::Features::HTTPServer
235
235
  s.timeout = 1
236
236
  s.port = 4567
237
- s.log = 'features/logs/http_server_1.log'
237
+ s.log = 'reports/http_server_1.log'
238
238
  end
239
239
  end
240
240
  ```
@@ -249,7 +249,7 @@ servers:
249
249
  class: Nonnative::Features::HTTPServer
250
250
  timeout: 1
251
251
  port: 4567
252
- log: features/logs/http_server_1.log
252
+ log: reports/http_server_1.log
253
253
  ```
254
254
 
255
255
  Then load the file with:
@@ -295,7 +295,7 @@ Nonnative.configure do |config|
295
295
  s.klass = Nonnative::Features::GRPCServer
296
296
  s.timeout = 1
297
297
  s.port = 9002
298
- s.log = 'features/logs/grpc_server_1.log'
298
+ s.log = 'reports/grpc_server_1.log'
299
299
  end
300
300
  end
301
301
  ```
@@ -310,7 +310,7 @@ servers:
310
310
  class: Nonnative::Features::GRPCServer
311
311
  timeout: 1
312
312
  port: 9002
313
- log: features/logs/grpc_server_1.log
313
+ log: reports/grpc_server_1.log
314
314
  ```
315
315
 
316
316
  Then load the file with:
@@ -386,7 +386,7 @@ Nonnative.configure do |config|
386
386
  p.proxy = {
387
387
  kind: 'fault_injection',
388
388
  port: 20_000,
389
- log: 'features/logs/proxy_server.log',
389
+ log: 'reports/proxy_server.log',
390
390
  options: {
391
391
  delay: 5
392
392
  }
@@ -404,7 +404,7 @@ processes:
404
404
  proxy:
405
405
  kind: fault_injection
406
406
  port: 20000
407
- log: features/logs/proxy_server.log
407
+ log: reports/proxy_server.log
408
408
  options:
409
409
  delay: 5
410
410
  ```
@@ -421,7 +421,7 @@ Nonnative.configure do |config|
421
421
  s.proxy = {
422
422
  kind: 'fault_injection',
423
423
  port: 20_000,
424
- log: 'features/logs/proxy_server.log',
424
+ log: 'reports/proxy_server.log',
425
425
  options: {
426
426
  delay: 5
427
427
  }
@@ -439,7 +439,7 @@ servers:
439
439
  proxy:
440
440
  kind: fault_injection
441
441
  port: 20000
442
- log: features/logs/proxy_server.log
442
+ log: reports/proxy_server.log
443
443
  options:
444
444
  delay: 5
445
445
  ```
@@ -456,7 +456,7 @@ Nonnative.configure do |config|
456
456
  s.proxy = {
457
457
  kind: 'fault_injection',
458
458
  port: 20_000,
459
- log: 'features/logs/proxy_server.log',
459
+ log: 'reports/proxy_server.log',
460
460
  options: {
461
461
  delay: 5
462
462
  }
@@ -474,7 +474,7 @@ services:
474
474
  proxy:
475
475
  kind: fault_injection
476
476
  port: 20000
477
- log: features/logs/proxy_server.log
477
+ log: reports/proxy_server.log
478
478
  options:
479
479
  delay: 5
480
480
  ```
@@ -588,5 +588,5 @@ processes:
588
588
  - --config config.yaml
589
589
  timeout: 5
590
590
  port: 8000
591
- log: features/logs/go.log
591
+ log: reports/go.log
592
592
  ```
@@ -3,15 +3,15 @@
3
3
  module Nonnative
4
4
  class Observability < Nonnative::HTTPClient
5
5
  def health
6
- get('health', { content_type: :json, accept: :json })
6
+ get('healthz', { content_type: :json, accept: :json })
7
7
  end
8
8
 
9
9
  def liveness
10
- get('liveness', { content_type: :json, accept: :json })
10
+ get('livez', { content_type: :json, accept: :json })
11
11
  end
12
12
 
13
13
  def readiness
14
- get('readiness', { content_type: :json, accept: :json })
14
+ get('readyz', { content_type: :json, accept: :json })
15
15
  end
16
16
 
17
17
  def metrics
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.67.0'
4
+ VERSION = '1.69.0'
5
5
  end
data/nonnative.gemspec CHANGED
@@ -33,9 +33,4 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency 'rspec-benchmark', '~> 0.6.0'
34
34
  spec.add_dependency 'rspec-expectations', '~> 3.9', '>= 3.9.2'
35
35
  spec.add_dependency 'sinatra', '>= 2.0.8.1', '< 4'
36
-
37
- spec.add_development_dependency 'bundler', '~> 2.3'
38
- spec.add_development_dependency 'coveralls_reborn', '~> 0.25.0'
39
- spec.add_development_dependency 'rubocop', '~> 1.30'
40
- spec.add_development_dependency 'solargraph', '~> 0.47.0'
41
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonnative
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -166,62 +166,6 @@ dependencies:
166
166
  - - "<"
167
167
  - !ruby/object:Gem::Version
168
168
  version: '4'
169
- - !ruby/object:Gem::Dependency
170
- name: bundler
171
- requirement: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - "~>"
174
- - !ruby/object:Gem::Version
175
- version: '2.3'
176
- type: :development
177
- prerelease: false
178
- version_requirements: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - "~>"
181
- - !ruby/object:Gem::Version
182
- version: '2.3'
183
- - !ruby/object:Gem::Dependency
184
- name: coveralls_reborn
185
- requirement: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: 0.25.0
190
- type: :development
191
- prerelease: false
192
- version_requirements: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - "~>"
195
- - !ruby/object:Gem::Version
196
- version: 0.25.0
197
- - !ruby/object:Gem::Dependency
198
- name: rubocop
199
- requirement: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - "~>"
202
- - !ruby/object:Gem::Version
203
- version: '1.30'
204
- type: :development
205
- prerelease: false
206
- version_requirements: !ruby/object:Gem::Requirement
207
- requirements:
208
- - - "~>"
209
- - !ruby/object:Gem::Version
210
- version: '1.30'
211
- - !ruby/object:Gem::Dependency
212
- name: solargraph
213
- requirement: !ruby/object:Gem::Requirement
214
- requirements:
215
- - - "~>"
216
- - !ruby/object:Gem::Version
217
- version: 0.47.0
218
- type: :development
219
- prerelease: false
220
- version_requirements: !ruby/object:Gem::Requirement
221
- requirements:
222
- - - "~>"
223
- - !ruby/object:Gem::Version
224
- version: 0.47.0
225
169
  description: Allows you to keep using the power of ruby to test other systems
226
170
  email:
227
171
  - alexrfalkowski@gmail.com
@@ -235,6 +179,7 @@ files:
235
179
  - ".editorconfig"
236
180
  - ".github/dependabot.yml"
237
181
  - ".gitignore"
182
+ - ".gitmodules"
238
183
  - ".rubocop.yml"
239
184
  - ".ruby-version"
240
185
  - CHANGELOG.md
@@ -243,8 +188,6 @@ files:
243
188
  - LICENSE
244
189
  - Makefile
245
190
  - README.md
246
- - bin/console
247
- - bin/setup
248
191
  - lib/nonnative.rb
249
192
  - lib/nonnative/close_all_socket_pair.rb
250
193
  - lib/nonnative/configuration.rb
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'nonnative'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- gem install bundler
7
- bundle config set path 'vendor/bundle'
8
- bundle check || bundle install
9
- bundle clean --force