nonnative 1.93.0 → 1.94.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 +2 -2
- data/.codecov.yml +6 -0
- data/.github/dependabot.yml +1 -1
- data/CHANGELOG.md +38 -0
- data/Gemfile.lock +37 -32
- data/README.md +19 -0
- data/lib/nonnative/configuration.rb +2 -1
- data/lib/nonnative/go_command.rb +3 -4
- data/lib/nonnative/port.rb +4 -0
- data/lib/nonnative/process.rb +5 -1
- data/lib/nonnative/version.rb +1 -1
- data/lib/nonnative.rb +4 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15da7c4f98e2bedf2c50ce32f424fa526f21055c3c847ca456f633251bb29ae6
|
4
|
+
data.tar.gz: 85e773d2404e565f1b275573207a1cd0af637e65d42db759b4c7fc815d203b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea116957b7a556d79c17427f80fb12cd564fc63c4632dc748179d6d92661864fa2d7acf3b077b171972f003b4bbbeb0dd4d999b8f9a98c17e31253c0bbf96e6c
|
7
|
+
data.tar.gz: 1654c2500e078e214aed4c0970d6384c43bd31876871f069cdfc167a0ee9785cba370bbf19e0841f6543b016cbc5d2af85ba31aa5adc846960b58b6bc544a06d
|
data/.circleci/config.yml
CHANGED
@@ -3,7 +3,7 @@ version: 2.1
|
|
3
3
|
jobs:
|
4
4
|
build:
|
5
5
|
docker:
|
6
|
-
- image: alexfalkowski/ruby:1.
|
6
|
+
- image: alexfalkowski/ruby:1.23
|
7
7
|
working_directory: ~/nonnative
|
8
8
|
steps:
|
9
9
|
- checkout
|
@@ -31,7 +31,7 @@ jobs:
|
|
31
31
|
resource_class: large
|
32
32
|
release:
|
33
33
|
docker:
|
34
|
-
- image: alexfalkowski/release:3.
|
34
|
+
- image: alexfalkowski/release:3.15
|
35
35
|
working_directory: ~/nonnative
|
36
36
|
steps:
|
37
37
|
- checkout
|
data/.codecov.yml
ADDED
data/.github/dependabot.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,44 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## [v1.94.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.94.0) - 2025-04-27
|
10
|
+
|
11
|
+
- [`d337a15`](https://github.com/alexfalkowski/nonnative/commit/d337a1586bf8eb39f5ceae18f3dc06b852c7a4fc) feat(logger): add logging (#544)
|
12
|
+
- [`0e76d4b`](https://github.com/alexfalkowski/nonnative/commit/0e76d4b2ac39bc1373c6cd0830a52becc7c079b2) build(ci): use alexfalkowski/release:3.15 (#543)
|
13
|
+
- [`82088dc`](https://github.com/alexfalkowski/nonnative/commit/82088dcef282b442d6319fc9b82a10d8ac066270) build(codecov): add config (#542)
|
14
|
+
- [`fe7ef0e`](https://github.com/alexfalkowski/nonnative/commit/fe7ef0e3b1b08a21a6ec75912b775be395218911) test(features): spelling mistake (#541)
|
15
|
+
- [`10aea2e`](https://github.com/alexfalkowski/nonnative/commit/10aea2e94b25f1cd953e04cb3cd5089a8f48ca20) build(deps): bump bin from `dbf1984` to `b0fd780` (#540)
|
16
|
+
- [`fdbc409`](https://github.com/alexfalkowski/nonnative/commit/fdbc4098aa32df88f081c21ead7283dcf69fe616) build(ci): use alexfalkowski/ruby:1.23 (#539)
|
17
|
+
- [`587f2cf`](https://github.com/alexfalkowski/nonnative/commit/587f2cf3306150c0e1b883b04a602d7a95361458) build(deps): bump bin from `68f9c91` to `dbf1984` (#538)
|
18
|
+
- [`44f2570`](https://github.com/alexfalkowski/nonnative/commit/44f25700b4ec50aec182a535ffce58e0e67e399a) build(ci): use alexfalkowski/ruby:1.22 (#537)
|
19
|
+
- [`26c3109`](https://github.com/alexfalkowski/nonnative/commit/26c3109142407056bd1924eb25f0218943e12de1) build(deps): bump bin from `78af843` to `68f9c91` (#536)
|
20
|
+
- [`3488f3e`](https://github.com/alexfalkowski/nonnative/commit/3488f3e991158afbfc212cea2baebb4e4ac8708a) build(ci): use alexfalkowski/ruby:1.21 (#535)
|
21
|
+
- [`bf99aac`](https://github.com/alexfalkowski/nonnative/commit/bf99aac8cbee77a65641d698dc20f5917f47fd5d) build(deps): bump bin from `78af843` to `68f9c91` (#534)
|
22
|
+
- [`ac6e108`](https://github.com/alexfalkowski/nonnative/commit/ac6e108c22a6ea1d08aeda4f38dac8a2ebd33577) build(ci): use alexfalkowski/ruby:1.20 (#533)
|
23
|
+
- [`07ff9d7`](https://github.com/alexfalkowski/nonnative/commit/07ff9d7ee48df3c79bbf2df6c9c68d2ea6e59823) build(deps): bump bin from `16e2296` to `78af843` (#532)
|
24
|
+
- [`31e97fd`](https://github.com/alexfalkowski/nonnative/commit/31e97fd6c64986cfe3786e4d7e44c17232e4a890) build(deps): bump bin from `c661929` to `16e2296` (#531)
|
25
|
+
- [`d97ba88`](https://github.com/alexfalkowski/nonnative/commit/d97ba88e25eb3ab40a541e35e48879abb704bbe9) build(deps): bump bin from `446c480` to `c661929` (#530)
|
26
|
+
- [`34d0190`](https://github.com/alexfalkowski/nonnative/commit/34d0190f6eca0d7856128374adb4a1aeeb083bdf) build(deps): bump bin from `b887116` to `446c480` (#529)
|
27
|
+
- [`aeca841`](https://github.com/alexfalkowski/nonnative/commit/aeca8412b40c6d272d19019784e8b9194a59c027) build(deps): bump bin from `8e1a9ac` to `b887116` (#528)
|
28
|
+
- [`7bbe128`](https://github.com/alexfalkowski/nonnative/commit/7bbe1288d2c373227a981082e7044fe31c9a034f) build(gems): add arm64-darwin-24 (#527)
|
29
|
+
- [`dcf3f26`](https://github.com/alexfalkowski/nonnative/commit/dcf3f2652c771755de326dee0d8262940b9497ec) build(deps): update all (#526)
|
30
|
+
- [`4f697a9`](https://github.com/alexfalkowski/nonnative/commit/4f697a9b8d1c6f118eec411734e2fd49b333db5d) build(deps): update all (#525)
|
31
|
+
- [`b9b26dc`](https://github.com/alexfalkowski/nonnative/commit/b9b26dc1995bb8fa023b5c995580efce2acad9bd) build(deps): bump bin from `637442f` to `8e1a9ac` (#524)
|
32
|
+
- [`cbfedd2`](https://github.com/alexfalkowski/nonnative/commit/cbfedd27eb19eadbdf51e8b45da95290acd2b967) build(ci): update alexfalkowski/ruby:1.16 (#523)
|
33
|
+
- [`b1f7ebd`](https://github.com/alexfalkowski/nonnative/commit/b1f7ebdfc7a95e6666e0d5c4dd38110b6e76e8c5) build(deps): update with make update-all-dep (#522)
|
34
|
+
- [`259b3c6`](https://github.com/alexfalkowski/nonnative/commit/259b3c6c2f90ac98ebfeb5cb19859ab9b4ad363a) build(deps): bump bin from `c8030a1` to `637442f` (#521)
|
35
|
+
- [`b8ec44d`](https://github.com/alexfalkowski/nonnative/commit/b8ec44d6b99a662b9757364e2dbfe088b7a19a8a) build(deps): bundle update (#520)
|
36
|
+
- [`4cba661`](https://github.com/alexfalkowski/nonnative/commit/4cba6611423e8632a0dcfb87b552ac76696fd099) build(ci): use test for dependabot (#519)
|
37
|
+
- [`2cb62d4`](https://github.com/alexfalkowski/nonnative/commit/2cb62d47c82494db7b79e67eb24f0a0f28c0d299) build(deps): bump bin from `8592a53` to `c8030a1` (#517)
|
38
|
+
- [`ddd4ace`](https://github.com/alexfalkowski/nonnative/commit/ddd4ace2c987266acfcd203c447c1a1e01209ad8) build(ci): update alexfalkowski/ruby:1.12 (#516)
|
39
|
+
- [`a70ae5c`](https://github.com/alexfalkowski/nonnative/commit/a70ae5c1652b5f96ef17eedf0444e668bc6eaf41) build(deps): bump bin from `dc45d04` to `8592a53` (#515)
|
40
|
+
- [`ad63e97`](https://github.com/alexfalkowski/nonnative/commit/ad63e97672fe34da7f7000a4f063d40aaea01143) build(deps): bump bin from `e1bf51d` to `dc45d04` (#514)
|
41
|
+
- [`29c424c`](https://github.com/alexfalkowski/nonnative/commit/29c424c54e622a6e9602d65bac375e5b342d35fe) build(deps): bump bin from `3e0336a` to `e1bf51d` (#513)
|
42
|
+
- [`887ab8f`](https://github.com/alexfalkowski/nonnative/commit/887ab8f46003809ef0d7ed7c38c7ad55e7a687f5) build(deps): bump bin from `877a42c` to `3e0336a` (#512)
|
43
|
+
- [`42574d3`](https://github.com/alexfalkowski/nonnative/commit/42574d351b35c177adf049dda276853eff2ddc37) build(deps): bump bin from `5b56b0c` to `877a42c` (#511)
|
44
|
+
- [`84a2a22`](https://github.com/alexfalkowski/nonnative/commit/84a2a22e16e2afcd5040b7f23e626f0431e94cdb) build(ci): add x86_64-darwin-23 (#510)
|
45
|
+
- [`f9ecb6b`](https://github.com/alexfalkowski/nonnative/commit/f9ecb6b19cbe7c77131709231d18783477a895f8) test(deps): use bundler version 2.6.3 (#509)
|
46
|
+
|
9
47
|
## [v1.93.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.93.0) - 2025-02-03
|
10
48
|
|
11
49
|
- [`520eed9`](https://github.com/alexfalkowski/nonnative/commit/520eed9b7181064a8bfcf7824165f3ccf8087cab) feat(ruby): update to v3.4.0 (#508)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nonnative (1.
|
4
|
+
nonnative (1.94.0)
|
5
5
|
concurrent-ruby (>= 1, < 2)
|
6
6
|
config (>= 5, < 6)
|
7
7
|
cucumber (>= 7, < 10)
|
@@ -19,7 +19,7 @@ PATH
|
|
19
19
|
GEM
|
20
20
|
remote: https://rubygems.org/
|
21
21
|
specs:
|
22
|
-
ast (2.4.
|
22
|
+
ast (2.4.3)
|
23
23
|
base64 (0.2.0)
|
24
24
|
benchmark-malloc (0.2.0)
|
25
25
|
benchmark-perf (0.6.0)
|
@@ -56,58 +56,59 @@ GEM
|
|
56
56
|
cucumber-messages (22.0.0)
|
57
57
|
cucumber-tag-expressions (6.1.2)
|
58
58
|
deep_merge (1.2.2)
|
59
|
-
diff-lcs (1.
|
59
|
+
diff-lcs (1.6.1)
|
60
60
|
docile (1.4.1)
|
61
61
|
domain_name (0.6.20240107)
|
62
|
-
ffi (1.17.
|
63
|
-
ffi (1.17.
|
64
|
-
ffi (1.17.
|
62
|
+
ffi (1.17.2-arm64-darwin)
|
63
|
+
ffi (1.17.2-x86_64-darwin)
|
64
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
65
65
|
get_process_mem (1.0.0)
|
66
66
|
bigdecimal (>= 2.0)
|
67
67
|
ffi (~> 1.0)
|
68
|
-
google-protobuf (4.
|
68
|
+
google-protobuf (4.30.2-arm64-darwin)
|
69
69
|
bigdecimal
|
70
70
|
rake (>= 13)
|
71
|
-
google-protobuf (4.
|
71
|
+
google-protobuf (4.30.2-x86_64-darwin)
|
72
72
|
bigdecimal
|
73
73
|
rake (>= 13)
|
74
|
-
google-protobuf (4.
|
74
|
+
google-protobuf (4.30.2-x86_64-linux)
|
75
75
|
bigdecimal
|
76
76
|
rake (>= 13)
|
77
|
-
googleapis-common-protos-types (1.
|
77
|
+
googleapis-common-protos-types (1.19.0)
|
78
78
|
google-protobuf (>= 3.18, < 5.a)
|
79
|
-
grpc (1.
|
79
|
+
grpc (1.71.0-arm64-darwin)
|
80
80
|
google-protobuf (>= 3.25, < 5.0)
|
81
81
|
googleapis-common-protos-types (~> 1.0)
|
82
|
-
grpc (1.
|
82
|
+
grpc (1.71.0-x86_64-darwin)
|
83
83
|
google-protobuf (>= 3.25, < 5.0)
|
84
84
|
googleapis-common-protos-types (~> 1.0)
|
85
|
-
grpc (1.
|
85
|
+
grpc (1.71.0-x86_64-linux)
|
86
86
|
google-protobuf (>= 3.25, < 5.0)
|
87
87
|
googleapis-common-protos-types (~> 1.0)
|
88
88
|
http-accept (1.7.0)
|
89
89
|
http-cookie (1.0.8)
|
90
90
|
domain_name (~> 0.5)
|
91
|
-
json (2.
|
91
|
+
json (2.11.3)
|
92
92
|
language_server-protocol (3.17.0.4)
|
93
|
-
|
94
|
-
|
93
|
+
lint_roller (1.1.0)
|
94
|
+
logger (1.7.0)
|
95
|
+
mime-types (3.6.2)
|
95
96
|
logger
|
96
97
|
mime-types-data (~> 3.2015)
|
97
|
-
mime-types-data (3.2025.
|
98
|
+
mime-types-data (3.2025.0422)
|
98
99
|
mini_mime (1.1.5)
|
99
100
|
multi_test (1.1.0)
|
100
101
|
mustermann (3.0.3)
|
101
102
|
ruby2_keywords (~> 0.0.1)
|
102
103
|
netrc (0.11.0)
|
103
104
|
ostruct (0.6.1)
|
104
|
-
parallel (1.
|
105
|
-
parser (3.3.
|
105
|
+
parallel (1.27.0)
|
106
|
+
parser (3.3.8.0)
|
106
107
|
ast (~> 2.4.1)
|
107
108
|
racc
|
108
|
-
prism (1.
|
109
|
+
prism (1.4.0)
|
109
110
|
racc (1.8.1)
|
110
|
-
rack (3.1.
|
111
|
+
rack (3.1.13)
|
111
112
|
rack-protection (4.1.1)
|
112
113
|
base64 (>= 0.1.0)
|
113
114
|
logger (>= 1.6.0)
|
@@ -119,7 +120,7 @@ GEM
|
|
119
120
|
rack (>= 3)
|
120
121
|
rainbow (3.1.1)
|
121
122
|
rake (13.2.1)
|
122
|
-
rbs (3.
|
123
|
+
rbs (3.9.2)
|
123
124
|
logger
|
124
125
|
regexp_parser (2.10.0)
|
125
126
|
rest-client (2.1.0)
|
@@ -128,7 +129,7 @@ GEM
|
|
128
129
|
mime-types (>= 1.16, < 4.0)
|
129
130
|
netrc (~> 0.8)
|
130
131
|
retriable (3.1.2)
|
131
|
-
rexml (3.4.
|
132
|
+
rexml (3.4.1)
|
132
133
|
rspec (3.13.0)
|
133
134
|
rspec-core (~> 3.13.0)
|
134
135
|
rspec-expectations (~> 3.13.0)
|
@@ -138,7 +139,7 @@ GEM
|
|
138
139
|
benchmark-perf (~> 0.6)
|
139
140
|
benchmark-trend (~> 0.4)
|
140
141
|
rspec (>= 3.0)
|
141
|
-
rspec-core (3.13.
|
142
|
+
rspec-core (3.13.3)
|
142
143
|
rspec-support (~> 3.13.0)
|
143
144
|
rspec-expectations (3.13.3)
|
144
145
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -149,19 +150,21 @@ GEM
|
|
149
150
|
rspec-support (3.13.2)
|
150
151
|
rspec-wait (1.0.1)
|
151
152
|
rspec (>= 3.4)
|
152
|
-
rubocop (1.
|
153
|
+
rubocop (1.75.3)
|
153
154
|
json (~> 2.3)
|
154
|
-
language_server-protocol (
|
155
|
+
language_server-protocol (~> 3.17.0.2)
|
156
|
+
lint_roller (~> 1.1.0)
|
155
157
|
parallel (~> 1.10)
|
156
158
|
parser (>= 3.3.0.2)
|
157
159
|
rainbow (>= 2.2.2, < 4.0)
|
158
160
|
regexp_parser (>= 2.9.3, < 3.0)
|
159
|
-
rubocop-ast (>= 1.
|
161
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
160
162
|
ruby-progressbar (~> 1.7)
|
161
163
|
unicode-display_width (>= 2.4.0, < 4.0)
|
162
|
-
rubocop-ast (1.
|
163
|
-
parser (>= 3.3.
|
164
|
-
|
164
|
+
rubocop-ast (1.44.1)
|
165
|
+
parser (>= 3.3.7.2)
|
166
|
+
prism (~> 1.4)
|
167
|
+
ruby-lsp (0.23.15)
|
165
168
|
language_server-protocol (~> 3.17.0)
|
166
169
|
prism (>= 1.2, < 2.0)
|
167
170
|
rbs (>= 3, < 4)
|
@@ -184,7 +187,7 @@ GEM
|
|
184
187
|
rack-protection (= 4.1.1)
|
185
188
|
rack-session (>= 2.0.0, < 3)
|
186
189
|
tilt (~> 2.0)
|
187
|
-
sorbet-runtime (0.5.
|
190
|
+
sorbet-runtime (0.5.12042)
|
188
191
|
sys-uname (1.3.1)
|
189
192
|
ffi (~> 1.1)
|
190
193
|
tilt (2.6.0)
|
@@ -196,7 +199,9 @@ GEM
|
|
196
199
|
PLATFORMS
|
197
200
|
arm64-darwin-22
|
198
201
|
arm64-darwin-23
|
202
|
+
arm64-darwin-24
|
199
203
|
x86_64-darwin-21
|
204
|
+
x86_64-darwin-23
|
200
205
|
x86_64-linux
|
201
206
|
|
202
207
|
DEPENDENCIES
|
@@ -208,4 +213,4 @@ DEPENDENCIES
|
|
208
213
|
simplecov-cobertura
|
209
214
|
|
210
215
|
BUNDLED WITH
|
211
|
-
2.6.
|
216
|
+
2.6.8
|
data/README.md
CHANGED
@@ -37,6 +37,7 @@ Configure nonnative with the following:
|
|
37
37
|
|
38
38
|
- The version of the configuration (1.0).
|
39
39
|
- The URL of the service.
|
40
|
+
- A log file.
|
40
41
|
- Process, Server or Service that you want to start.
|
41
42
|
- A timeout value.
|
42
43
|
- A time to wait.
|
@@ -64,6 +65,7 @@ require 'nonnative'
|
|
64
65
|
Nonnative.configure do |config|
|
65
66
|
config.version = '1.0'
|
66
67
|
config.url = 'http://localhost:4567'
|
68
|
+
config.log = 'nonnative.log'
|
67
69
|
|
68
70
|
config.process do |p|
|
69
71
|
p.name = 'start_1'
|
@@ -94,6 +96,7 @@ Setup it up through configuration:
|
|
94
96
|
```yaml
|
95
97
|
version: "1.0"
|
96
98
|
url: http://localhost:4567
|
99
|
+
log: nonnative.log
|
97
100
|
processes:
|
98
101
|
-
|
99
102
|
name: start_1
|
@@ -174,6 +177,7 @@ require 'nonnative'
|
|
174
177
|
Nonnative.configure do |config|
|
175
178
|
config.version = '1.0'
|
176
179
|
config.url = 'http://localhost:4567'
|
180
|
+
config.log = 'nonnative.log'
|
177
181
|
|
178
182
|
config.server do |s|
|
179
183
|
s.name = 'server_1'
|
@@ -198,6 +202,7 @@ Setup it up through configuration:
|
|
198
202
|
```yaml
|
199
203
|
version: "1.0"
|
200
204
|
url: http://localhost:4567
|
205
|
+
log: nonnative.log
|
201
206
|
servers:
|
202
207
|
-
|
203
208
|
name: server_1
|
@@ -275,6 +280,7 @@ Setup it up through configuration:
|
|
275
280
|
```yaml
|
276
281
|
version: "1.0"
|
277
282
|
url: http://localhost:4567
|
283
|
+
log: nonnative.log
|
278
284
|
servers:
|
279
285
|
-
|
280
286
|
name: http_server_1
|
@@ -320,6 +326,7 @@ require 'nonnative'
|
|
320
326
|
Nonnative.configure do |config|
|
321
327
|
config.version = '1.0'
|
322
328
|
config.url = 'http://localhost:4567'
|
329
|
+
config.log = 'nonnative.log'
|
323
330
|
|
324
331
|
config.server do |s|
|
325
332
|
s.name = 'http_server_proxy'
|
@@ -336,6 +343,7 @@ Setup it up through configuration:
|
|
336
343
|
```yaml
|
337
344
|
version: "1.0"
|
338
345
|
url: http://localhost:4567
|
346
|
+
log: nonnative.log
|
339
347
|
servers:
|
340
348
|
-
|
341
349
|
name: http_server_proxy
|
@@ -387,6 +395,7 @@ require 'nonnative'
|
|
387
395
|
Nonnative.configure do |config|
|
388
396
|
config.version = '1.0'
|
389
397
|
config.url = 'http://localhost:4567'
|
398
|
+
config.log = 'nonnative.log'
|
390
399
|
|
391
400
|
config.server do |s|
|
392
401
|
s.name = 'grpc_server_1'
|
@@ -403,6 +412,7 @@ Setup it up through configuration:
|
|
403
412
|
```yaml
|
404
413
|
version: "1.0"
|
405
414
|
url: http://localhost:4567
|
415
|
+
log: nonnative.log
|
406
416
|
servers:
|
407
417
|
-
|
408
418
|
name: grpc_server_1
|
@@ -434,6 +444,7 @@ require 'nonnative'
|
|
434
444
|
Nonnative.configure do |config|
|
435
445
|
config.version = '1.0'
|
436
446
|
config.url = 'http://localhost:4567'
|
447
|
+
config.log = 'nonnative.log'
|
437
448
|
|
438
449
|
config.service do |s|
|
439
450
|
s.name = 'postgres'
|
@@ -452,6 +463,7 @@ Setup it up through configuration:
|
|
452
463
|
```yaml
|
453
464
|
version: "1.0"
|
454
465
|
url: http://localhost:4567
|
466
|
+
log: nonnative.log
|
455
467
|
processes:
|
456
468
|
-
|
457
469
|
name: postgres
|
@@ -487,6 +499,7 @@ require 'nonnative'
|
|
487
499
|
Nonnative.configure do |config|
|
488
500
|
config.version = '1.0'
|
489
501
|
config.url = 'http://localhost:4567'
|
502
|
+
config.log = 'nonnative.log'
|
490
503
|
|
491
504
|
config.process do |p|
|
492
505
|
p.proxy = {
|
@@ -507,6 +520,7 @@ Setup it up through configuration:
|
|
507
520
|
```yaml
|
508
521
|
version: "1.0"
|
509
522
|
url: http://localhost:4567
|
523
|
+
log: nonnative.log
|
510
524
|
processes:
|
511
525
|
-
|
512
526
|
proxy:
|
@@ -528,6 +542,7 @@ require 'nonnative'
|
|
528
542
|
Nonnative.configure do |config|
|
529
543
|
config.version = '1.0'
|
530
544
|
config.url = 'http://localhost:4567'
|
545
|
+
config.log = 'nonnative.log'
|
531
546
|
|
532
547
|
config.server do |s|
|
533
548
|
s.proxy = {
|
@@ -548,6 +563,7 @@ Setup it up through configuration:
|
|
548
563
|
```yaml
|
549
564
|
version: "1.0"
|
550
565
|
url: http://localhost:4567
|
566
|
+
log: nonnative.log
|
551
567
|
servers:
|
552
568
|
-
|
553
569
|
proxy:
|
@@ -569,6 +585,7 @@ require 'nonnative'
|
|
569
585
|
Nonnative.configure do |config|
|
570
586
|
config.version = '1.0'
|
571
587
|
config.url = 'http://localhost:4567'
|
588
|
+
config.log = 'nonnative.log'
|
572
589
|
config.wait = 1
|
573
590
|
|
574
591
|
config.service do |s|
|
@@ -590,6 +607,7 @@ Setup it up through configuration:
|
|
590
607
|
```yaml
|
591
608
|
version: "1.0"
|
592
609
|
url: http://localhost:4567
|
610
|
+
log: nonnative.log
|
593
611
|
wait: 1
|
594
612
|
services:
|
595
613
|
-
|
@@ -703,6 +721,7 @@ Setup it up through configuration:
|
|
703
721
|
```yaml
|
704
722
|
version: "1.0"
|
705
723
|
url: http://localhost:4567
|
724
|
+
log: nonnative.log
|
706
725
|
processes:
|
707
726
|
-
|
708
727
|
name: go
|
@@ -8,13 +8,14 @@ module Nonnative
|
|
8
8
|
@services = []
|
9
9
|
end
|
10
10
|
|
11
|
-
attr_accessor :version, :url, :processes, :servers, :services
|
11
|
+
attr_accessor :version, :url, :log, :processes, :servers, :services
|
12
12
|
|
13
13
|
def load_file(path)
|
14
14
|
cfg = Nonnative.configurations(path)
|
15
15
|
|
16
16
|
self.version = cfg.version
|
17
17
|
self.url = cfg.url
|
18
|
+
self.log = cfg.log
|
18
19
|
|
19
20
|
add_processes(cfg)
|
20
21
|
add_servers(cfg)
|
data/lib/nonnative/go_command.rb
CHANGED
@@ -10,18 +10,17 @@ module Nonnative
|
|
10
10
|
|
11
11
|
def executable(cmd, *params)
|
12
12
|
params = params.join(' ')
|
13
|
-
"#{exec} #{flags(cmd
|
13
|
+
"#{exec} #{flags(cmd).join(' ')} #{cmd} #{params}".strip
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
18
|
attr_reader :tools, :exec, :output
|
19
19
|
|
20
|
-
def flags(cmd
|
20
|
+
def flags(cmd)
|
21
21
|
suffix = SecureRandom.alphanumeric(4)
|
22
22
|
m = File.basename(exec, File.extname(exec))
|
23
|
-
|
24
|
-
name = [m, cmd, p].reject(&:empty?).join('-')
|
23
|
+
name = "#{m}-#{cmd}"
|
25
24
|
path = "#{output}/#{name}-#{suffix}"
|
26
25
|
|
27
26
|
prof(path) + trace(path) + cover(path)
|
data/lib/nonnative/port.rb
CHANGED
@@ -8,6 +8,8 @@ module Nonnative
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def open?
|
11
|
+
Nonnative.logger.info "checking if port '#{process.port}' is open on host '#{process.host}'"
|
12
|
+
|
11
13
|
timeout.perform do
|
12
14
|
open_socket
|
13
15
|
true
|
@@ -18,6 +20,8 @@ module Nonnative
|
|
18
20
|
end
|
19
21
|
|
20
22
|
def closed?
|
23
|
+
Nonnative.logger.info "checking if port '#{process.port}' is closed on host '#{process.host}'"
|
24
|
+
|
21
25
|
timeout.perform do
|
22
26
|
open_socket
|
23
27
|
raise Nonnative::Error
|
data/lib/nonnative/process.rb
CHANGED
@@ -59,7 +59,11 @@ module Nonnative
|
|
59
59
|
environment[k] = ENV.fetch(k, nil) || environment[k]
|
60
60
|
end
|
61
61
|
|
62
|
-
|
62
|
+
command = service.command.call
|
63
|
+
|
64
|
+
spawn(environment, command, %i[out err] => [service.log, 'a']).tap do |pid|
|
65
|
+
Nonnative.logger.info "started '#{command}' with pid '#{pid}'"
|
66
|
+
end
|
63
67
|
end
|
64
68
|
|
65
69
|
def process_exists?
|
data/lib/nonnative/version.rb
CHANGED
data/lib/nonnative.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nonnative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.94.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Falkowski
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: concurrent-ruby
|
@@ -277,6 +277,7 @@ extensions: []
|
|
277
277
|
extra_rdoc_files: []
|
278
278
|
files:
|
279
279
|
- ".circleci/config.yml"
|
280
|
+
- ".codecov.yml"
|
280
281
|
- ".config/cucumber.yml"
|
281
282
|
- ".editorconfig"
|
282
283
|
- ".github/dependabot.yml"
|
@@ -349,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
350
|
- !ruby/object:Gem::Version
|
350
351
|
version: '0'
|
351
352
|
requirements: []
|
352
|
-
rubygems_version: 3.6.
|
353
|
+
rubygems_version: 3.6.8
|
353
354
|
specification_version: 4
|
354
355
|
summary: Allows you to keep using the power of ruby to test other systems
|
355
356
|
test_files: []
|