nonnative 1.66.0 → 1.68.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/.circleci/config.yml +5 -12
- data/.editorconfig +1 -12
- data/.github/dependabot.yml +4 -0
- data/.gitignore +0 -3
- data/.gitmodules +3 -0
- data/.rubocop.yml +5 -2
- data/CHANGELOG.md +581 -265
- data/Gemfile.lock +48 -44
- data/Makefile +1 -37
- data/README.md +19 -19
- data/lib/nonnative/http_client.rb +4 -6
- data/lib/nonnative/observability.rb +3 -3
- data/lib/nonnative/pool.rb +6 -6
- data/lib/nonnative/timeout.rb +2 -2
- data/lib/nonnative/version.rb +1 -1
- data/nonnative.gemspec +3 -3
- metadata +8 -9
- data/bin/console +0 -15
- data/bin/setup +0 -9
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nonnative (1.
|
|
4
|
+
nonnative (1.68.0)
|
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
|
6
6
|
cucumber (>= 7, < 9)
|
|
7
7
|
get_process_mem (~> 0.2.1)
|
|
@@ -17,17 +17,17 @@ GEM
|
|
|
17
17
|
specs:
|
|
18
18
|
ast (2.4.2)
|
|
19
19
|
backport (1.2.0)
|
|
20
|
-
benchmark (0.2.
|
|
20
|
+
benchmark (0.2.1)
|
|
21
21
|
benchmark-malloc (0.2.0)
|
|
22
22
|
benchmark-perf (0.6.0)
|
|
23
23
|
benchmark-trend (0.4.0)
|
|
24
24
|
builder (3.2.4)
|
|
25
|
-
concurrent-ruby (1.
|
|
26
|
-
coveralls_reborn (0.
|
|
27
|
-
simplecov (
|
|
28
|
-
term-ansicolor (~> 1.
|
|
29
|
-
thor (
|
|
30
|
-
tins (~> 1.
|
|
25
|
+
concurrent-ruby (1.2.0)
|
|
26
|
+
coveralls_reborn (0.26.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)
|
|
@@ -60,17 +60,21 @@ 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.
|
|
64
|
-
|
|
63
|
+
google-protobuf (3.21.12-x86_64-darwin)
|
|
64
|
+
google-protobuf (3.21.12-x86_64-linux)
|
|
65
|
+
googleapis-common-protos-types (1.5.0)
|
|
65
66
|
google-protobuf (~> 3.14)
|
|
66
|
-
grpc (1.
|
|
67
|
+
grpc (1.51.0-x86_64-darwin)
|
|
68
|
+
google-protobuf (~> 3.21)
|
|
69
|
+
googleapis-common-protos-types (~> 1.0)
|
|
70
|
+
grpc (1.51.0-x86_64-linux)
|
|
67
71
|
google-protobuf (~> 3.21)
|
|
68
72
|
googleapis-common-protos-types (~> 1.0)
|
|
69
73
|
http-accept (1.7.0)
|
|
70
74
|
http-cookie (1.0.5)
|
|
71
75
|
domain_name (~> 0.5)
|
|
72
76
|
jaro_winkler (1.5.4)
|
|
73
|
-
json (2.6.
|
|
77
|
+
json (2.6.3)
|
|
74
78
|
kramdown (2.4.0)
|
|
75
79
|
rexml
|
|
76
80
|
kramdown-parser-gfm (1.1.0)
|
|
@@ -83,21 +87,21 @@ GEM
|
|
|
83
87
|
ruby2_keywords (~> 0.0.1)
|
|
84
88
|
netrc (0.11.0)
|
|
85
89
|
nio4r (2.5.8)
|
|
86
|
-
nokogiri (1.
|
|
90
|
+
nokogiri (1.14.0-x86_64-darwin)
|
|
87
91
|
racc (~> 1.4)
|
|
88
|
-
nokogiri (1.
|
|
92
|
+
nokogiri (1.14.0-x86_64-linux)
|
|
89
93
|
racc (~> 1.4)
|
|
90
94
|
parallel (1.22.1)
|
|
91
|
-
parser (3.
|
|
95
|
+
parser (3.2.0.0)
|
|
92
96
|
ast (~> 2.4.1)
|
|
93
|
-
puma (6.0.
|
|
97
|
+
puma (6.0.2)
|
|
94
98
|
nio4r (~> 2.0)
|
|
95
|
-
racc (1.6.
|
|
96
|
-
rack (2.2.
|
|
97
|
-
rack-protection (3.0.
|
|
99
|
+
racc (1.6.2)
|
|
100
|
+
rack (2.2.6.2)
|
|
101
|
+
rack-protection (3.0.5)
|
|
98
102
|
rack
|
|
99
103
|
rainbow (3.1.1)
|
|
100
|
-
regexp_parser (2.6.
|
|
104
|
+
regexp_parser (2.6.2)
|
|
101
105
|
rest-client (2.1.0)
|
|
102
106
|
http-accept (>= 1.7.0, < 2.0)
|
|
103
107
|
http-cookie (>= 1.0.2, < 2.0)
|
|
@@ -106,50 +110,50 @@ GEM
|
|
|
106
110
|
reverse_markdown (2.1.1)
|
|
107
111
|
nokogiri
|
|
108
112
|
rexml (3.2.5)
|
|
109
|
-
rspec (3.
|
|
110
|
-
rspec-core (~> 3.
|
|
111
|
-
rspec-expectations (~> 3.
|
|
112
|
-
rspec-mocks (~> 3.
|
|
113
|
+
rspec (3.12.0)
|
|
114
|
+
rspec-core (~> 3.12.0)
|
|
115
|
+
rspec-expectations (~> 3.12.0)
|
|
116
|
+
rspec-mocks (~> 3.12.0)
|
|
113
117
|
rspec-benchmark (0.6.0)
|
|
114
118
|
benchmark-malloc (~> 0.2)
|
|
115
119
|
benchmark-perf (~> 0.6)
|
|
116
120
|
benchmark-trend (~> 0.4)
|
|
117
121
|
rspec (>= 3.0)
|
|
118
|
-
rspec-core (3.
|
|
119
|
-
rspec-support (~> 3.
|
|
120
|
-
rspec-expectations (3.
|
|
122
|
+
rspec-core (3.12.0)
|
|
123
|
+
rspec-support (~> 3.12.0)
|
|
124
|
+
rspec-expectations (3.12.2)
|
|
121
125
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
122
|
-
rspec-support (~> 3.
|
|
123
|
-
rspec-mocks (3.
|
|
126
|
+
rspec-support (~> 3.12.0)
|
|
127
|
+
rspec-mocks (3.12.3)
|
|
124
128
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
125
|
-
rspec-support (~> 3.
|
|
126
|
-
rspec-support (3.
|
|
127
|
-
rubocop (1.
|
|
129
|
+
rspec-support (~> 3.12.0)
|
|
130
|
+
rspec-support (3.12.0)
|
|
131
|
+
rubocop (1.44.1)
|
|
128
132
|
json (~> 2.3)
|
|
129
133
|
parallel (~> 1.10)
|
|
130
|
-
parser (>= 3.
|
|
134
|
+
parser (>= 3.2.0.0)
|
|
131
135
|
rainbow (>= 2.2.2, < 4.0)
|
|
132
136
|
regexp_parser (>= 1.8, < 3.0)
|
|
133
137
|
rexml (>= 3.2.5, < 4.0)
|
|
134
|
-
rubocop-ast (>= 1.
|
|
138
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
|
135
139
|
ruby-progressbar (~> 1.7)
|
|
136
|
-
unicode-display_width (>=
|
|
137
|
-
rubocop-ast (1.
|
|
140
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
141
|
+
rubocop-ast (1.24.1)
|
|
138
142
|
parser (>= 3.1.1.0)
|
|
139
143
|
ruby-progressbar (1.11.0)
|
|
140
144
|
ruby2_keywords (0.0.5)
|
|
141
|
-
simplecov (0.
|
|
145
|
+
simplecov (0.22.0)
|
|
142
146
|
docile (~> 1.1)
|
|
143
147
|
simplecov-html (~> 0.11)
|
|
144
148
|
simplecov_json_formatter (~> 0.1)
|
|
145
149
|
simplecov-html (0.12.3)
|
|
146
150
|
simplecov_json_formatter (0.1.4)
|
|
147
|
-
sinatra (3.0.
|
|
151
|
+
sinatra (3.0.5)
|
|
148
152
|
mustermann (~> 3.0)
|
|
149
153
|
rack (~> 2.2, >= 2.2.4)
|
|
150
|
-
rack-protection (= 3.0.
|
|
154
|
+
rack-protection (= 3.0.5)
|
|
151
155
|
tilt (~> 2.0)
|
|
152
|
-
solargraph (0.
|
|
156
|
+
solargraph (0.48.0)
|
|
153
157
|
backport (~> 1.2)
|
|
154
158
|
benchmark
|
|
155
159
|
bundler (>= 1.17.2)
|
|
@@ -171,12 +175,12 @@ GEM
|
|
|
171
175
|
tins (~> 1.0)
|
|
172
176
|
thor (1.2.1)
|
|
173
177
|
tilt (2.0.11)
|
|
174
|
-
tins (1.
|
|
178
|
+
tins (1.32.1)
|
|
175
179
|
sync
|
|
176
180
|
unf (0.1.4)
|
|
177
181
|
unf_ext
|
|
178
182
|
unf_ext (0.0.8.2)
|
|
179
|
-
unicode-display_width (2.
|
|
183
|
+
unicode-display_width (2.4.2)
|
|
180
184
|
webrick (1.7.0)
|
|
181
185
|
yard (0.9.28)
|
|
182
186
|
webrick (~> 1.7.0)
|
|
@@ -187,10 +191,10 @@ PLATFORMS
|
|
|
187
191
|
|
|
188
192
|
DEPENDENCIES
|
|
189
193
|
bundler (~> 2.3)
|
|
190
|
-
coveralls_reborn (~> 0.
|
|
194
|
+
coveralls_reborn (~> 0.26.0)
|
|
191
195
|
nonnative!
|
|
192
196
|
rubocop (~> 1.30)
|
|
193
|
-
solargraph (~> 0.
|
|
197
|
+
solargraph (~> 0.48.0)
|
|
194
198
|
|
|
195
199
|
BUNDLED WITH
|
|
196
200
|
2.3.9
|
data/Makefile
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
1
|
.PHONY: features
|
|
2
2
|
|
|
3
|
-
|
|
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 = '
|
|
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 = '
|
|
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:
|
|
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:
|
|
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 = '
|
|
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 = '
|
|
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:
|
|
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:
|
|
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 = '
|
|
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:
|
|
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 = '
|
|
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:
|
|
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: '
|
|
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:
|
|
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: '
|
|
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:
|
|
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: '
|
|
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:
|
|
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:
|
|
591
|
+
log: reports/go.log
|
|
592
592
|
```
|
|
@@ -11,30 +11,28 @@ module Nonnative
|
|
|
11
11
|
def get(pathname, headers = {}, timeout = 60)
|
|
12
12
|
with_exception do
|
|
13
13
|
uri = URI.join(host, pathname)
|
|
14
|
-
RestClient::Request.execute(method: :get, url: uri.to_s, headers
|
|
14
|
+
RestClient::Request.execute(method: :get, url: uri.to_s, headers:, timeout:)
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def post(pathname, payload, headers = {}, timeout = 60)
|
|
19
19
|
with_exception do
|
|
20
20
|
uri = URI.join(host, pathname)
|
|
21
|
-
RestClient::Request.execute(method: :post, url: uri.to_s, payload: payload.to_json, headers:
|
|
22
|
-
timeout: timeout)
|
|
21
|
+
RestClient::Request.execute(method: :post, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
|
|
23
22
|
end
|
|
24
23
|
end
|
|
25
24
|
|
|
26
25
|
def delete(pathname, headers = {}, timeout = 60)
|
|
27
26
|
with_exception do
|
|
28
27
|
uri = URI.join(host, pathname)
|
|
29
|
-
RestClient::Request.execute(method: :delete, url: uri.to_s, headers
|
|
28
|
+
RestClient::Request.execute(method: :delete, url: uri.to_s, headers:, timeout:)
|
|
30
29
|
end
|
|
31
30
|
end
|
|
32
31
|
|
|
33
32
|
def put(pathname, payload, headers = {}, timeout = 60)
|
|
34
33
|
with_exception do
|
|
35
34
|
uri = URI.join(host, pathname)
|
|
36
|
-
RestClient::Request.execute(method: :put, url: uri.to_s, payload: payload.to_json, headers:
|
|
37
|
-
timeout: timeout)
|
|
35
|
+
RestClient::Request.execute(method: :put, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
|
|
38
36
|
end
|
|
39
37
|
end
|
|
40
38
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
module Nonnative
|
|
4
4
|
class Observability < Nonnative::HTTPClient
|
|
5
5
|
def health
|
|
6
|
-
get('
|
|
6
|
+
get('healthz', { content_type: :json, accept: :json })
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def liveness
|
|
10
|
-
get('
|
|
10
|
+
get('livez', { content_type: :json, accept: :json })
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def readiness
|
|
14
|
-
get('
|
|
14
|
+
get('readyz', { content_type: :json, accept: :json })
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def metrics
|
data/lib/nonnative/pool.rb
CHANGED
|
@@ -6,13 +6,13 @@ module Nonnative
|
|
|
6
6
|
@configuration = configuration
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
def start(&
|
|
9
|
+
def start(&)
|
|
10
10
|
services.each(&:start)
|
|
11
|
-
[servers, processes].each { |t| process(t, :start, :open?, &
|
|
11
|
+
[servers, processes].each { |t| process(t, :start, :open?, &) }
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def stop(&
|
|
15
|
-
[processes, servers].each { |t| process(t, :stop, :closed?, &
|
|
14
|
+
def stop(&)
|
|
15
|
+
[processes, servers].each { |t| process(t, :stop, :closed?, &) }
|
|
16
16
|
services.each(&:stop)
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ module Nonnative
|
|
|
55
55
|
@services ||= configuration.services.map { |s| Nonnative::Service.new(s) }
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
def process(all, type_method, port_method, &
|
|
58
|
+
def process(all, type_method, port_method, &)
|
|
59
59
|
types = []
|
|
60
60
|
pids = []
|
|
61
61
|
threads = []
|
|
@@ -68,7 +68,7 @@ module Nonnative
|
|
|
68
68
|
|
|
69
69
|
ports = threads.map(&:value)
|
|
70
70
|
|
|
71
|
-
yield_results(types, pids, ports, &
|
|
71
|
+
yield_results(types, pids, ports, &)
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def yield_results(all, pids, ports)
|
data/lib/nonnative/timeout.rb
CHANGED
data/lib/nonnative/version.rb
CHANGED
data/nonnative.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.bindir = 'exe'
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
23
|
spec.require_paths = ['lib']
|
|
24
|
-
spec.required_ruby_version = ['>= 3.
|
|
24
|
+
spec.required_ruby_version = ['>= 3.1.0', '< 4.0.0']
|
|
25
25
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
26
26
|
|
|
27
27
|
spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.5'
|
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
spec.add_dependency 'sinatra', '>= 2.0.8.1', '< 4'
|
|
36
36
|
|
|
37
37
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
|
38
|
-
spec.add_development_dependency 'coveralls_reborn', '~> 0.
|
|
38
|
+
spec.add_development_dependency 'coveralls_reborn', '~> 0.26.0'
|
|
39
39
|
spec.add_development_dependency 'rubocop', '~> 1.30'
|
|
40
|
-
spec.add_development_dependency 'solargraph', '~> 0.
|
|
40
|
+
spec.add_development_dependency 'solargraph', '~> 0.48.0'
|
|
41
41
|
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.
|
|
4
|
+
version: 1.68.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:
|
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -186,14 +186,14 @@ dependencies:
|
|
|
186
186
|
requirements:
|
|
187
187
|
- - "~>"
|
|
188
188
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: 0.
|
|
189
|
+
version: 0.26.0
|
|
190
190
|
type: :development
|
|
191
191
|
prerelease: false
|
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
|
194
194
|
- - "~>"
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
|
-
version: 0.
|
|
196
|
+
version: 0.26.0
|
|
197
197
|
- !ruby/object:Gem::Dependency
|
|
198
198
|
name: rubocop
|
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -214,14 +214,14 @@ dependencies:
|
|
|
214
214
|
requirements:
|
|
215
215
|
- - "~>"
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version: 0.
|
|
217
|
+
version: 0.48.0
|
|
218
218
|
type: :development
|
|
219
219
|
prerelease: false
|
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
|
221
221
|
requirements:
|
|
222
222
|
- - "~>"
|
|
223
223
|
- !ruby/object:Gem::Version
|
|
224
|
-
version: 0.
|
|
224
|
+
version: 0.48.0
|
|
225
225
|
description: Allows you to keep using the power of ruby to test other systems
|
|
226
226
|
email:
|
|
227
227
|
- alexrfalkowski@gmail.com
|
|
@@ -235,6 +235,7 @@ files:
|
|
|
235
235
|
- ".editorconfig"
|
|
236
236
|
- ".github/dependabot.yml"
|
|
237
237
|
- ".gitignore"
|
|
238
|
+
- ".gitmodules"
|
|
238
239
|
- ".rubocop.yml"
|
|
239
240
|
- ".ruby-version"
|
|
240
241
|
- CHANGELOG.md
|
|
@@ -243,8 +244,6 @@ files:
|
|
|
243
244
|
- LICENSE
|
|
244
245
|
- Makefile
|
|
245
246
|
- README.md
|
|
246
|
-
- bin/console
|
|
247
|
-
- bin/setup
|
|
248
247
|
- lib/nonnative.rb
|
|
249
248
|
- lib/nonnative/close_all_socket_pair.rb
|
|
250
249
|
- lib/nonnative/configuration.rb
|
|
@@ -294,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
294
293
|
requirements:
|
|
295
294
|
- - ">="
|
|
296
295
|
- !ruby/object:Gem::Version
|
|
297
|
-
version: 3.
|
|
296
|
+
version: 3.1.0
|
|
298
297
|
- - "<"
|
|
299
298
|
- !ruby/object:Gem::Version
|
|
300
299
|
version: 4.0.0
|
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__)
|