nonnative 1.77.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/.rubocop.yml +1 -1
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +11 -46
- 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 +2 -2
- 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
- metadata +2 -2
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/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,30 @@ 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
|
+
|
9
33
|
## [v1.77.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.77.0) - 2024-02-22
|
10
34
|
|
11
35
|
- [`f61c644`](https://github.com/alexfalkowski/nonnative/commit/f61c64447c64ce95abbaa8804d3522d260bd7760) feat: upgrade to ruby 3.3.0 (#308)
|
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,9 +24,8 @@ 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)
|
@@ -61,46 +60,13 @@ GEM
|
|
61
60
|
diff-lcs (1.5.1)
|
62
61
|
docile (1.4.0)
|
63
62
|
domain_name (0.6.20240107)
|
64
|
-
dry-configurable (1.1.0)
|
65
|
-
dry-core (~> 1.0, < 2)
|
66
|
-
zeitwerk (~> 2.6)
|
67
|
-
dry-core (1.0.1)
|
68
|
-
concurrent-ruby (~> 1.0)
|
69
|
-
zeitwerk (~> 2.6)
|
70
|
-
dry-inflector (1.0.0)
|
71
|
-
dry-initializer (3.1.1)
|
72
|
-
dry-logic (1.5.0)
|
73
|
-
concurrent-ruby (~> 1.0)
|
74
|
-
dry-core (~> 1.0, < 2)
|
75
|
-
zeitwerk (~> 2.6)
|
76
|
-
dry-schema (1.13.3)
|
77
|
-
concurrent-ruby (~> 1.0)
|
78
|
-
dry-configurable (~> 1.0, >= 1.0.1)
|
79
|
-
dry-core (~> 1.0, < 2)
|
80
|
-
dry-initializer (~> 3.0)
|
81
|
-
dry-logic (>= 1.4, < 2)
|
82
|
-
dry-types (>= 1.7, < 2)
|
83
|
-
zeitwerk (~> 2.6)
|
84
|
-
dry-types (1.7.2)
|
85
|
-
bigdecimal (~> 3.0)
|
86
|
-
concurrent-ruby (~> 1.0)
|
87
|
-
dry-core (~> 1.0)
|
88
|
-
dry-inflector (~> 1.0)
|
89
|
-
dry-logic (~> 1.4)
|
90
|
-
zeitwerk (~> 2.6)
|
91
|
-
dry-validation (1.10.0)
|
92
|
-
concurrent-ruby (~> 1.0)
|
93
|
-
dry-core (~> 1.0, < 2)
|
94
|
-
dry-initializer (~> 3.0)
|
95
|
-
dry-schema (>= 1.12, < 2)
|
96
|
-
zeitwerk (~> 2.6)
|
97
63
|
ffi (1.16.3)
|
98
64
|
get_process_mem (0.2.7)
|
99
65
|
ffi (~> 1.0)
|
100
66
|
google-protobuf (3.25.3-arm64-darwin)
|
101
67
|
google-protobuf (3.25.3-x86_64-darwin)
|
102
68
|
google-protobuf (3.25.3-x86_64-linux)
|
103
|
-
googleapis-common-protos-types (1.
|
69
|
+
googleapis-common-protos-types (1.13.0)
|
104
70
|
google-protobuf (~> 3.18)
|
105
71
|
grpc (1.62.0-arm64-darwin)
|
106
72
|
google-protobuf (~> 3.25)
|
@@ -118,7 +84,7 @@ GEM
|
|
118
84
|
language_server-protocol (3.17.0.3)
|
119
85
|
mime-types (3.5.2)
|
120
86
|
mime-types-data (~> 3.2015)
|
121
|
-
mime-types-data (3.2024.
|
87
|
+
mime-types-data (3.2024.0305)
|
122
88
|
mini_mime (1.1.5)
|
123
89
|
multi_test (1.1.0)
|
124
90
|
mustermann (3.0.0)
|
@@ -164,8 +130,8 @@ GEM
|
|
164
130
|
rspec-mocks (3.13.0)
|
165
131
|
diff-lcs (>= 1.2.0, < 2.0)
|
166
132
|
rspec-support (~> 3.13.0)
|
167
|
-
rspec-support (3.13.
|
168
|
-
rubocop (1.
|
133
|
+
rspec-support (3.13.1)
|
134
|
+
rubocop (1.61.0)
|
169
135
|
json (~> 2.3)
|
170
136
|
language_server-protocol (>= 3.17.0)
|
171
137
|
parallel (~> 1.10)
|
@@ -176,9 +142,9 @@ GEM
|
|
176
142
|
rubocop-ast (>= 1.30.0, < 2.0)
|
177
143
|
ruby-progressbar (~> 1.7)
|
178
144
|
unicode-display_width (>= 2.4.0, < 3.0)
|
179
|
-
rubocop-ast (1.
|
180
|
-
parser (>= 3.
|
181
|
-
ruby-lsp (0.14.
|
145
|
+
rubocop-ast (1.31.1)
|
146
|
+
parser (>= 3.3.0.4)
|
147
|
+
ruby-lsp (0.14.4)
|
182
148
|
language_server-protocol (~> 3.17.0)
|
183
149
|
prism (>= 0.22.0, < 0.25)
|
184
150
|
sorbet-runtime (>= 0.5.10782)
|
@@ -196,18 +162,17 @@ GEM
|
|
196
162
|
rack-protection (= 4.0.0)
|
197
163
|
rack-session (>= 2.0.0, < 3)
|
198
164
|
tilt (~> 2.0)
|
199
|
-
sorbet-runtime (0.5.
|
165
|
+
sorbet-runtime (0.5.11284)
|
200
166
|
sync (0.5.0)
|
201
167
|
sys-uname (1.2.3)
|
202
168
|
ffi (~> 1.1)
|
203
169
|
term-ansicolor (1.7.1)
|
204
170
|
tins (~> 1.0)
|
205
|
-
thor (1.3.
|
171
|
+
thor (1.3.1)
|
206
172
|
tilt (2.3.0)
|
207
173
|
tins (1.32.1)
|
208
174
|
sync
|
209
175
|
unicode-display_width (2.5.0)
|
210
|
-
zeitwerk (2.6.13)
|
211
176
|
|
212
177
|
PLATFORMS
|
213
178
|
arm64-darwin-22
|
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
@@ -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?
|
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
|