nonnative 1.76.0 → 1.78.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +62 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +38 -65
- data/README.md +5 -0
- data/lib/nonnative/configuration.rb +2 -0
- data/lib/nonnative/configuration_runner.rb +2 -1
- data/lib/nonnative/pool.rb +6 -6
- data/lib/nonnative/process.rb +1 -1
- data/lib/nonnative/runner.rb +2 -2
- data/lib/nonnative/server.rb +1 -1
- data/lib/nonnative/version.rb +1 -1
- data/lib/nonnative.rb +3 -2
- data/nonnative.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330573d7af0d5fab520ee7cf57f3cdb2ba334227da3072d9587c42cbff6f2a9c
|
4
|
+
data.tar.gz: 988ad1309f666eaeeff7ea20e2eea7eb95d9b6c19789dd0c3de386074b8203a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b453ed8f0a2aab6041dca4f4ed8956cc36c06d9833a82492c0f2e5565bcaeef7ab61b4e40575eeeb48c2047f5bbc0319780c7eceaa95996c4fdfbd7355015a1
|
7
|
+
data.tar.gz: 7a35a4e948af4786858b8d85913fe277536a32785331c800611c1fccb33a4369345981f0b2476807d4e7ead92150e0c615b2fec853b7376a3bd308c85b79ab81
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 3.
|
2
|
+
TargetRubyVersion: 3.3
|
3
3
|
DisplayCopNames: true
|
4
4
|
NewCops: enable
|
5
5
|
Exclude:
|
@@ -17,7 +17,7 @@ Metrics/BlockLength:
|
|
17
17
|
Max: 80
|
18
18
|
|
19
19
|
Metrics/AbcSize:
|
20
|
-
Max:
|
20
|
+
Max: 25
|
21
21
|
|
22
22
|
Style/Documentation:
|
23
23
|
Enabled: false
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.0
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,68 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## [v1.78.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.78.0) - 2024-03-05
|
10
|
+
|
11
|
+
- [`84b23b9`](https://github.com/alexfalkowski/nonnative/commit/84b23b974d7dff216b1617c68b46a89523170c4c) feat: add ability to wait for start (#314)
|
12
|
+
|
13
|
+
## [v1.77.5](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.5) - 2024-03-05
|
14
|
+
|
15
|
+
- [`caa09a9`](https://github.com/alexfalkowski/nonnative/commit/caa09a910e726e36a7f096aebc8aa4bd1c258c66) fix(deps): bump ruby-lsp from 0.14.3 to 0.14.4 (#313)
|
16
|
+
|
17
|
+
## [v1.77.4](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.4) - 2024-03-04
|
18
|
+
|
19
|
+
- [`87c62df`](https://github.com/alexfalkowski/nonnative/commit/87c62dfe63ea3df015cfc460466087476bbec222) fix(deps): bump config from 5.1.0 to 5.3.0 (#312)
|
20
|
+
|
21
|
+
## [v1.77.3](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.3) - 2024-03-01
|
22
|
+
|
23
|
+
- [`2032a0b`](https://github.com/alexfalkowski/nonnative/commit/2032a0bf38c6a6bd277b659d32745e3088152816) fix(deps): bump rubocop from 1.60.2 to 1.61.0 (#311)
|
24
|
+
|
25
|
+
## [v1.77.2](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.2) - 2024-02-26
|
26
|
+
|
27
|
+
- [`01d569d`](https://github.com/alexfalkowski/nonnative/commit/01d569d4c7439b7d9e2c868d7393a343c07699fa) fix(deps): bump ruby-lsp from 0.14.2 to 0.14.3 (#310)
|
28
|
+
|
29
|
+
## [v1.77.1](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.1) - 2024-02-23
|
30
|
+
|
31
|
+
- [`5fc410c`](https://github.com/alexfalkowski/nonnative/commit/5fc410c1d0984f44a5c06f190abae36e5b542f4a) fix(deps): bump ruby-lsp from 0.14.1 to 0.14.2 (#309)
|
32
|
+
|
33
|
+
## [v1.77.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.0) - 2024-02-22
|
34
|
+
|
35
|
+
- [`f61c644`](https://github.com/alexfalkowski/nonnative/commit/f61c64447c64ce95abbaa8804d3522d260bd7760) feat: upgrade to ruby 3.3.0 (#308)
|
36
|
+
|
37
|
+
## [v1.76.8](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.8) - 2024-02-22
|
38
|
+
|
39
|
+
- [`b8dc2fd`](https://github.com/alexfalkowski/nonnative/commit/b8dc2fd79f571920f35d30c082b88975d7cff745) fix(deps): bump grpc from 1.61.0 to 1.62.0 (#307)
|
40
|
+
|
41
|
+
## [v1.76.7](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.7) - 2024-02-19
|
42
|
+
|
43
|
+
- [`1e87017`](https://github.com/alexfalkowski/nonnative/commit/1e870172ee3bb40c74b0678a2e7718ed432e0b20) fix(deps): bump ruby-lsp from 0.14.0 to 0.14.1 (#306)
|
44
|
+
- [`e313237`](https://github.com/alexfalkowski/nonnative/commit/e313237c5691ae9b33c6fd67b01fe2e3bc2f1ac4) build(deps): use ruby 3.2.3 (#305)
|
45
|
+
|
46
|
+
## [v1.76.6](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.6) - 2024-02-09
|
47
|
+
|
48
|
+
- [`a422fff`](https://github.com/alexfalkowski/nonnative/commit/a422fffb2d8ffe5d8451e661a7d7b84a1a3dd627) fix(deps): bump ruby-lsp from 0.13.4 to 0.14.0 (#304)
|
49
|
+
|
50
|
+
## [v1.76.5](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.5) - 2024-02-05
|
51
|
+
|
52
|
+
- [`fc567a8`](https://github.com/alexfalkowski/nonnative/commit/fc567a8980a2481d12e352dc4851b68d6bb7df8e) fix(deps): bump rspec-expectations from 3.12.3 to 3.13.0 (#303)
|
53
|
+
|
54
|
+
## [v1.76.4](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.4) - 2024-02-05
|
55
|
+
|
56
|
+
- [`cf8f860`](https://github.com/alexfalkowski/nonnative/commit/cf8f860db008a82e8a516c1e502bf8a991dce8b0) fix(deps): bump grpc from 1.60.0 to 1.61.0 (#302)
|
57
|
+
|
58
|
+
## [v1.76.3](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.3) - 2024-01-31
|
59
|
+
|
60
|
+
- [`a131a8f`](https://github.com/alexfalkowski/nonnative/commit/a131a8f0eada5a684fb07c34259a2d4262860159) fix(deps): move ruby-lsp to Gemfile (#301)
|
61
|
+
- [`2cf480a`](https://github.com/alexfalkowski/nonnative/commit/2cf480a8febfa83c86ff91a675311aa2c2802e3a) build(deps): add ruby-lsp (0.13.4) (#300)
|
62
|
+
|
63
|
+
## [v1.76.2](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.2) - 2024-01-25
|
64
|
+
|
65
|
+
- [`ad3466c`](https://github.com/alexfalkowski/nonnative/commit/ad3466c4494dd11ae013805c518514bd6bd549ac) fix(deps): bump rubocop from 1.60.1 to 1.60.2 (#299)
|
66
|
+
|
67
|
+
## [v1.76.1](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.1) - 2024-01-24
|
68
|
+
|
69
|
+
- [`64c5425`](https://github.com/alexfalkowski/nonnative/commit/64c5425126fcacdc655cb11ee2272b3a8d9ff2b4) fix(deps): bump cucumber from 9.1.1 to 9.1.2 (#298)
|
70
|
+
|
9
71
|
## [v1.76.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.76.0) - 2024-01-22
|
10
72
|
|
11
73
|
- [`6a42560`](https://github.com/alexfalkowski/nonnative/commit/6a42560b3983e1e1599363f3e6e07a8ffde0778f) feat(deps): update sinatra to v4.0.0 (#297)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nonnative (1.
|
4
|
+
nonnative (1.78.0)
|
5
5
|
concurrent-ruby (>= 1, < 2)
|
6
6
|
config (>= 5, < 6)
|
7
7
|
cucumber (>= 7, < 10)
|
@@ -24,15 +24,14 @@ GEM
|
|
24
24
|
bigdecimal (3.1.6)
|
25
25
|
builder (3.2.4)
|
26
26
|
concurrent-ruby (1.2.3)
|
27
|
-
config (5.
|
27
|
+
config (5.3.0)
|
28
28
|
deep_merge (~> 1.2, >= 1.2.1)
|
29
|
-
dry-validation (~> 1.0, >= 1.0.0)
|
30
29
|
coveralls_reborn (0.28.0)
|
31
30
|
simplecov (~> 0.22.0)
|
32
31
|
term-ansicolor (~> 1.7)
|
33
32
|
thor (~> 1.2)
|
34
33
|
tins (~> 1.32)
|
35
|
-
cucumber (9.1.
|
34
|
+
cucumber (9.1.2)
|
36
35
|
builder (~> 3.2, >= 3.2.4)
|
37
36
|
cucumber-ci-environment (~> 9.2, >= 9.2.0)
|
38
37
|
cucumber-core (~> 12.0)
|
@@ -49,7 +48,8 @@ GEM
|
|
49
48
|
cucumber-gherkin (>= 25, < 27)
|
50
49
|
cucumber-messages (>= 20, < 23)
|
51
50
|
cucumber-tag-expressions (~> 5.0, >= 5.0.4)
|
52
|
-
cucumber-cucumber-expressions (17.0.
|
51
|
+
cucumber-cucumber-expressions (17.0.2)
|
52
|
+
bigdecimal
|
53
53
|
cucumber-gherkin (26.2.0)
|
54
54
|
cucumber-messages (>= 19.1.4, < 22.1)
|
55
55
|
cucumber-html-formatter (21.2.0)
|
@@ -57,57 +57,24 @@ GEM
|
|
57
57
|
cucumber-messages (22.0.0)
|
58
58
|
cucumber-tag-expressions (5.0.6)
|
59
59
|
deep_merge (1.2.2)
|
60
|
-
diff-lcs (1.5.
|
60
|
+
diff-lcs (1.5.1)
|
61
61
|
docile (1.4.0)
|
62
62
|
domain_name (0.6.20240107)
|
63
|
-
dry-configurable (1.1.0)
|
64
|
-
dry-core (~> 1.0, < 2)
|
65
|
-
zeitwerk (~> 2.6)
|
66
|
-
dry-core (1.0.1)
|
67
|
-
concurrent-ruby (~> 1.0)
|
68
|
-
zeitwerk (~> 2.6)
|
69
|
-
dry-inflector (1.0.0)
|
70
|
-
dry-initializer (3.1.1)
|
71
|
-
dry-logic (1.5.0)
|
72
|
-
concurrent-ruby (~> 1.0)
|
73
|
-
dry-core (~> 1.0, < 2)
|
74
|
-
zeitwerk (~> 2.6)
|
75
|
-
dry-schema (1.13.3)
|
76
|
-
concurrent-ruby (~> 1.0)
|
77
|
-
dry-configurable (~> 1.0, >= 1.0.1)
|
78
|
-
dry-core (~> 1.0, < 2)
|
79
|
-
dry-initializer (~> 3.0)
|
80
|
-
dry-logic (>= 1.4, < 2)
|
81
|
-
dry-types (>= 1.7, < 2)
|
82
|
-
zeitwerk (~> 2.6)
|
83
|
-
dry-types (1.7.2)
|
84
|
-
bigdecimal (~> 3.0)
|
85
|
-
concurrent-ruby (~> 1.0)
|
86
|
-
dry-core (~> 1.0)
|
87
|
-
dry-inflector (~> 1.0)
|
88
|
-
dry-logic (~> 1.4)
|
89
|
-
zeitwerk (~> 2.6)
|
90
|
-
dry-validation (1.10.0)
|
91
|
-
concurrent-ruby (~> 1.0)
|
92
|
-
dry-core (~> 1.0, < 2)
|
93
|
-
dry-initializer (~> 3.0)
|
94
|
-
dry-schema (>= 1.12, < 2)
|
95
|
-
zeitwerk (~> 2.6)
|
96
63
|
ffi (1.16.3)
|
97
64
|
get_process_mem (0.2.7)
|
98
65
|
ffi (~> 1.0)
|
99
|
-
google-protobuf (3.25.
|
100
|
-
google-protobuf (3.25.
|
101
|
-
google-protobuf (3.25.
|
102
|
-
googleapis-common-protos-types (1.
|
66
|
+
google-protobuf (3.25.3-arm64-darwin)
|
67
|
+
google-protobuf (3.25.3-x86_64-darwin)
|
68
|
+
google-protobuf (3.25.3-x86_64-linux)
|
69
|
+
googleapis-common-protos-types (1.13.0)
|
103
70
|
google-protobuf (~> 3.18)
|
104
|
-
grpc (1.
|
71
|
+
grpc (1.62.0-arm64-darwin)
|
105
72
|
google-protobuf (~> 3.25)
|
106
73
|
googleapis-common-protos-types (~> 1.0)
|
107
|
-
grpc (1.
|
74
|
+
grpc (1.62.0-x86_64-darwin)
|
108
75
|
google-protobuf (~> 3.25)
|
109
76
|
googleapis-common-protos-types (~> 1.0)
|
110
|
-
grpc (1.
|
77
|
+
grpc (1.62.0-x86_64-linux)
|
111
78
|
google-protobuf (~> 3.25)
|
112
79
|
googleapis-common-protos-types (~> 1.0)
|
113
80
|
http-accept (1.7.0)
|
@@ -117,7 +84,7 @@ GEM
|
|
117
84
|
language_server-protocol (3.17.0.3)
|
118
85
|
mime-types (3.5.2)
|
119
86
|
mime-types-data (~> 3.2015)
|
120
|
-
mime-types-data (3.
|
87
|
+
mime-types-data (3.2024.0305)
|
121
88
|
mini_mime (1.1.5)
|
122
89
|
multi_test (1.1.0)
|
123
90
|
mustermann (3.0.0)
|
@@ -128,10 +95,11 @@ GEM
|
|
128
95
|
parser (3.3.0.5)
|
129
96
|
ast (~> 2.4.1)
|
130
97
|
racc
|
98
|
+
prism (0.24.0)
|
131
99
|
puma (6.4.2)
|
132
100
|
nio4r (~> 2.0)
|
133
101
|
racc (1.7.3)
|
134
|
-
rack (3.0.
|
102
|
+
rack (3.0.9.1)
|
135
103
|
rack-protection (4.0.0)
|
136
104
|
base64 (>= 0.1.0)
|
137
105
|
rack (>= 3.0.0, < 4)
|
@@ -145,25 +113,25 @@ GEM
|
|
145
113
|
mime-types (>= 1.16, < 4.0)
|
146
114
|
netrc (~> 0.8)
|
147
115
|
rexml (3.2.6)
|
148
|
-
rspec (3.
|
149
|
-
rspec-core (~> 3.
|
150
|
-
rspec-expectations (~> 3.
|
151
|
-
rspec-mocks (~> 3.
|
116
|
+
rspec (3.13.0)
|
117
|
+
rspec-core (~> 3.13.0)
|
118
|
+
rspec-expectations (~> 3.13.0)
|
119
|
+
rspec-mocks (~> 3.13.0)
|
152
120
|
rspec-benchmark (0.6.0)
|
153
121
|
benchmark-malloc (~> 0.2)
|
154
122
|
benchmark-perf (~> 0.6)
|
155
123
|
benchmark-trend (~> 0.4)
|
156
124
|
rspec (>= 3.0)
|
157
|
-
rspec-core (3.
|
158
|
-
rspec-support (~> 3.
|
159
|
-
rspec-expectations (3.
|
125
|
+
rspec-core (3.13.0)
|
126
|
+
rspec-support (~> 3.13.0)
|
127
|
+
rspec-expectations (3.13.0)
|
160
128
|
diff-lcs (>= 1.2.0, < 2.0)
|
161
|
-
rspec-support (~> 3.
|
162
|
-
rspec-mocks (3.
|
129
|
+
rspec-support (~> 3.13.0)
|
130
|
+
rspec-mocks (3.13.0)
|
163
131
|
diff-lcs (>= 1.2.0, < 2.0)
|
164
|
-
rspec-support (~> 3.
|
165
|
-
rspec-support (3.
|
166
|
-
rubocop (1.
|
132
|
+
rspec-support (~> 3.13.0)
|
133
|
+
rspec-support (3.13.1)
|
134
|
+
rubocop (1.61.0)
|
167
135
|
json (~> 2.3)
|
168
136
|
language_server-protocol (>= 3.17.0)
|
169
137
|
parallel (~> 1.10)
|
@@ -174,8 +142,12 @@ GEM
|
|
174
142
|
rubocop-ast (>= 1.30.0, < 2.0)
|
175
143
|
ruby-progressbar (~> 1.7)
|
176
144
|
unicode-display_width (>= 2.4.0, < 3.0)
|
177
|
-
rubocop-ast (1.
|
178
|
-
parser (>= 3.
|
145
|
+
rubocop-ast (1.31.1)
|
146
|
+
parser (>= 3.3.0.4)
|
147
|
+
ruby-lsp (0.14.4)
|
148
|
+
language_server-protocol (~> 3.17.0)
|
149
|
+
prism (>= 0.22.0, < 0.25)
|
150
|
+
sorbet-runtime (>= 0.5.10782)
|
179
151
|
ruby-progressbar (1.13.0)
|
180
152
|
ruby2_keywords (0.0.5)
|
181
153
|
simplecov (0.22.0)
|
@@ -190,17 +162,17 @@ GEM
|
|
190
162
|
rack-protection (= 4.0.0)
|
191
163
|
rack-session (>= 2.0.0, < 3)
|
192
164
|
tilt (~> 2.0)
|
165
|
+
sorbet-runtime (0.5.11284)
|
193
166
|
sync (0.5.0)
|
194
167
|
sys-uname (1.2.3)
|
195
168
|
ffi (~> 1.1)
|
196
169
|
term-ansicolor (1.7.1)
|
197
170
|
tins (~> 1.0)
|
198
|
-
thor (1.3.
|
171
|
+
thor (1.3.1)
|
199
172
|
tilt (2.3.0)
|
200
173
|
tins (1.32.1)
|
201
174
|
sync
|
202
175
|
unicode-display_width (2.5.0)
|
203
|
-
zeitwerk (2.6.12)
|
204
176
|
|
205
177
|
PLATFORMS
|
206
178
|
arm64-darwin-22
|
@@ -212,6 +184,7 @@ DEPENDENCIES
|
|
212
184
|
coveralls_reborn
|
213
185
|
nonnative!
|
214
186
|
rubocop
|
187
|
+
ruby-lsp
|
215
188
|
|
216
189
|
BUNDLED WITH
|
217
|
-
2.
|
190
|
+
2.4.10
|
data/README.md
CHANGED
@@ -35,6 +35,7 @@ Configure nonnative with the following:
|
|
35
35
|
|
36
36
|
- Process, Server or Service that you want to start.
|
37
37
|
- A timeout value.
|
38
|
+
- A time to wait.
|
38
39
|
- Port to verify.
|
39
40
|
- The class for servers.
|
40
41
|
- The log for servers/processes
|
@@ -61,6 +62,7 @@ Nonnative.configure do |config|
|
|
61
62
|
p.name = 'start_1'
|
62
63
|
p.command = -> { 'features/support/bin/start 12_321' }
|
63
64
|
p.timeout = 5
|
65
|
+
p.wait = 0.1
|
64
66
|
p.port = 12_321
|
65
67
|
p.log = 'reports/12_321.log'
|
66
68
|
p.signal = 'INT' # Possible values are described in Signal.list.keys.
|
@@ -73,6 +75,7 @@ Nonnative.configure do |config|
|
|
73
75
|
p.name = 'start_2'
|
74
76
|
p.command = -> { 'features/support/bin/start 12_322' }
|
75
77
|
p.timeout = 0.5
|
78
|
+
p.wait = 0.1
|
76
79
|
p.port = 12_322
|
77
80
|
p.log = 'reports/12_322.log'
|
78
81
|
end
|
@@ -88,6 +91,7 @@ processes:
|
|
88
91
|
name: start_1
|
89
92
|
command: features/support/bin/start 12_321
|
90
93
|
timeout: 5
|
94
|
+
wait: 0.1
|
91
95
|
port: 12321
|
92
96
|
log: reports/12_321.log
|
93
97
|
signal: INT # Possible values are described in Signal.list.keys.
|
@@ -97,6 +101,7 @@ processes:
|
|
97
101
|
name: start_2
|
98
102
|
command: features/support/bin/start 12_322
|
99
103
|
timeout: 5
|
104
|
+
wait: 0.1
|
100
105
|
port: 12322
|
101
106
|
log: reports/12_322.log
|
102
107
|
```
|
@@ -55,6 +55,7 @@ module Nonnative
|
|
55
55
|
d.name = fd.name
|
56
56
|
d.command = command(fd)
|
57
57
|
d.timeout = fd.timeout
|
58
|
+
d.wait = fd.wait if fd.wait
|
58
59
|
d.port = fd.port
|
59
60
|
d.log = fd.log
|
60
61
|
d.signal = fd.signal
|
@@ -84,6 +85,7 @@ module Nonnative
|
|
84
85
|
s.name = fd.name
|
85
86
|
s.klass = Object.const_get(fd.class)
|
86
87
|
s.timeout = fd.timeout
|
88
|
+
s.wait = fd.wait if fd.wait
|
87
89
|
s.port = fd.port
|
88
90
|
s.log = fd.log
|
89
91
|
|
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
module Nonnative
|
4
4
|
class ConfigurationRunner
|
5
|
-
attr_accessor :name, :host, :port
|
5
|
+
attr_accessor :name, :host, :port, :wait
|
6
6
|
attr_reader :proxy
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
self.host = '0.0.0.0'
|
10
10
|
self.port = 0
|
11
|
+
self.wait = 0.1
|
11
12
|
|
12
13
|
@proxy = Nonnative::ConfigurationProxy.new
|
13
14
|
end
|
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(&block)
|
10
10
|
services.each(&:start)
|
11
|
-
[servers, processes].each { |t| process(t, :start, :open?, &) }
|
11
|
+
[servers, processes].each { |t| process(t, :start, :open?, &block) }
|
12
12
|
end
|
13
13
|
|
14
|
-
def stop(&)
|
15
|
-
[processes, servers].each { |t| process(t, :stop, :closed?, &) }
|
14
|
+
def stop(&block)
|
15
|
+
[processes, servers].each { |t| process(t, :stop, :closed?, &block) }
|
16
16
|
services.each(&:stop)
|
17
17
|
end
|
18
18
|
|
@@ -72,8 +72,8 @@ module Nonnative
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def yield_results(all, pids, ports)
|
75
|
-
all.zip(pids, ports).each do |type,
|
76
|
-
yield type.name,
|
75
|
+
all.zip(pids, ports).each do |type, values, result|
|
76
|
+
yield type.name, values, result
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
data/lib/nonnative/process.rb
CHANGED
data/lib/nonnative/runner.rb
CHANGED
data/lib/nonnative/server.rb
CHANGED
data/lib/nonnative/version.rb
CHANGED
data/lib/nonnative.rb
CHANGED
@@ -80,8 +80,9 @@ module Nonnative
|
|
80
80
|
@pool ||= Nonnative::Pool.new(configuration)
|
81
81
|
errors = []
|
82
82
|
|
83
|
-
@pool.start do |name,
|
84
|
-
|
83
|
+
@pool.start do |name, values, result|
|
84
|
+
id, started = values
|
85
|
+
errors << "Started #{name} with id #{id}, though did respond in time" if !started || !result
|
85
86
|
end
|
86
87
|
|
87
88
|
raise Nonnative::StartError, errors.join("\n") unless errors.empty?
|
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.3.0', '< 4.0.0']
|
25
25
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
26
26
|
|
27
27
|
spec.add_dependency 'concurrent-ruby', '>= 1', '< 2'
|
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.78.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: 2024-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -282,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
282
|
requirements:
|
283
283
|
- - ">="
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: 3.
|
285
|
+
version: 3.3.0
|
286
286
|
- - "<"
|
287
287
|
- !ruby/object:Gem::Version
|
288
288
|
version: 4.0.0
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: '0'
|
294
294
|
requirements: []
|
295
|
-
rubygems_version: 3.
|
295
|
+
rubygems_version: 3.5.3
|
296
296
|
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: Allows you to keep using the power of ruby to test other systems
|