nonnative 1.72.0 → 1.73.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -0
- data/Gemfile.lock +34 -25
- data/README.md +4 -1
- data/lib/nonnative/configuration.rb +3 -1
- data/lib/nonnative/go_command.rb +25 -4
- data/lib/nonnative/version.rb +1 -1
- data/lib/nonnative.rb +2 -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: 317de0f3ebf4d5cf8060d2c78e79ea4d92057248482c5b3f0d6dc095d2a01a1d
|
4
|
+
data.tar.gz: 703d270aa7764ab1a583debc0934b333175e17c084c5ca17104381b6ca115329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0c75981fee6bc7e2868db902065a0b97b07bcbdb85d0e3432cd582d0c6f6ec7926771a2d31881d45e6932aed8101eb68d17c2b7d9a9efc9964dbef921da5031
|
7
|
+
data.tar.gz: 72c1ea110196a0dbf75562911e839065ac0367ef27eaa3345f398aa7921c83ccdd5aebd88cb5c5dc647bf3d16d602cc8735390405530734849fba9d5becf0167
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,53 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## [v1.73.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.73.0) - 2023-11-13
|
10
|
+
|
11
|
+
- [`37c5dd2`](https://github.com/alexfalkowski/nonnative/commit/37c5dd26b44b51b5f7b56ab36a0da226f9dd4222) feat(command): add tools to go command (#271)
|
12
|
+
- [`08912b1`](https://github.com/alexfalkowski/nonnative/commit/08912b14940da14b0ecf71f4531f30dc621f28ca) build(deps): update bin (#270)
|
13
|
+
- [`f94a4ef`](https://github.com/alexfalkowski/nonnative/commit/f94a4ef7d62cefd92e75de3e987c459043e927e2) build(deps): update bin (#269)
|
14
|
+
|
15
|
+
## [v1.72.10](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.10) - 2023-11-02
|
16
|
+
|
17
|
+
- [`2f472aa`](https://github.com/alexfalkowski/nonnative/commit/2f472aad913ebddeb3f92f069891032f51fe3fce) fix(deps): bump grpc from 1.59.0 to 1.59.2 (#268)
|
18
|
+
|
19
|
+
## [v1.72.9](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.9) - 2023-10-27
|
20
|
+
|
21
|
+
- [`b242203`](https://github.com/alexfalkowski/nonnative/commit/b242203c1cd8f3326dbdb8a0f39436bb3f67cd9d) fix(deps): bump rubocop from 1.57.1 to 1.57.2 (#267)
|
22
|
+
- [`0c1692d`](https://github.com/alexfalkowski/nonnative/commit/0c1692d336d770394727b57a2a36a388110739d6) build(deps): update bin (#266)
|
23
|
+
|
24
|
+
## [v1.72.8](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.8) - 2023-10-16
|
25
|
+
|
26
|
+
- [`47160a4`](https://github.com/alexfalkowski/nonnative/commit/47160a47294a52cce3d894496d2cc69de5938018) fix(deps): bump rubocop from 1.57.0 to 1.57.1 (#263)
|
27
|
+
|
28
|
+
## [v1.72.7](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.7) - 2023-10-12
|
29
|
+
|
30
|
+
- [`c38719a`](https://github.com/alexfalkowski/nonnative/commit/c38719a61df4053a437ccf1f6b993f526aecf585) fix(deps): bump rubocop from 1.56.4 to 1.57.0 (#262)
|
31
|
+
|
32
|
+
## [v1.72.6](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.6) - 2023-10-02
|
33
|
+
|
34
|
+
- [`e55eb9d`](https://github.com/alexfalkowski/nonnative/commit/e55eb9d6f81cf225d90d4f0b31b13578edb21976) fix(deps): bump rubocop from 1.56.3 to 1.56.4 (#261)
|
35
|
+
|
36
|
+
## [v1.72.5](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.5) - 2023-09-27
|
37
|
+
|
38
|
+
- [`31fdfb9`](https://github.com/alexfalkowski/nonnative/commit/31fdfb9dd6e6d51bb81ec011c70e0431512d3f19) fix(deps): add arm64 (#260)
|
39
|
+
|
40
|
+
## [v1.72.4](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.4) - 2023-09-22
|
41
|
+
|
42
|
+
- [`ee3d759`](https://github.com/alexfalkowski/nonnative/commit/ee3d75921450f7fedef5a257a8e8ba3a4c8b153c) fix(deps): bump puma from 6.3.1 to 6.4.0 (#259)
|
43
|
+
|
44
|
+
## [v1.72.3](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.3) - 2023-09-12
|
45
|
+
|
46
|
+
- [`f71186b`](https://github.com/alexfalkowski/nonnative/commit/f71186b3ab3e1042e557adb91b64efa37d2ac923) fix(deps): bump cucumber from 9.0.1 to 9.0.2 (#255)
|
47
|
+
|
48
|
+
## [v1.72.2](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.2) - 2023-09-12
|
49
|
+
|
50
|
+
- [`83dbf7b`](https://github.com/alexfalkowski/nonnative/commit/83dbf7b26ce7def15de989630ca5e691f3b5fd1f) fix(deps): bump rubocop from 1.56.2 to 1.56.3 (#256)
|
51
|
+
|
52
|
+
## [v1.72.1](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.1) - 2023-09-11
|
53
|
+
|
54
|
+
- [`f429bb9`](https://github.com/alexfalkowski/nonnative/commit/f429bb9238a86e67cdcb0dc5f0bf187e15e8857d) fix(deps): bump grpc from 1.57.0 to 1.58.0 (#254)
|
55
|
+
|
9
56
|
## [v1.72.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.0) - 2023-09-06
|
10
57
|
|
11
58
|
- [`c105469`](https://github.com/alexfalkowski/nonnative/commit/c1054693e9040fd55e0ec45ffd843405826c9f03) feat(cucumber): update to version 9.0.1 (#253)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nonnative (1.
|
4
|
+
nonnative (1.73.0)
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
6
6
|
cucumber (>= 7, < 10)
|
7
7
|
get_process_mem (~> 0.2.1)
|
@@ -17,8 +17,7 @@ GEM
|
|
17
17
|
specs:
|
18
18
|
ast (2.4.2)
|
19
19
|
backport (1.2.0)
|
20
|
-
|
21
|
-
benchmark (0.2.1)
|
20
|
+
benchmark (0.3.0)
|
22
21
|
benchmark-malloc (0.2.0)
|
23
22
|
benchmark-perf (0.6.0)
|
24
23
|
benchmark-trend (0.4.0)
|
@@ -29,14 +28,14 @@ GEM
|
|
29
28
|
term-ansicolor (~> 1.7)
|
30
29
|
thor (~> 1.2)
|
31
30
|
tins (~> 1.32)
|
32
|
-
cucumber (9.0.
|
31
|
+
cucumber (9.0.2)
|
33
32
|
builder (~> 3.2, >= 3.2.4)
|
34
33
|
cucumber-ci-environment (~> 9.2, >= 9.2.0)
|
35
|
-
cucumber-core (~> 11.
|
34
|
+
cucumber-core (~> 11.1, >= 11.1.0)
|
36
35
|
cucumber-cucumber-expressions (~> 16.1, >= 16.1.2)
|
37
|
-
cucumber-gherkin (>=
|
36
|
+
cucumber-gherkin (>= 24, < 26.2.1)
|
38
37
|
cucumber-html-formatter (~> 20.4, >= 20.4.0)
|
39
|
-
cucumber-messages (>=
|
38
|
+
cucumber-messages (>= 19, < 23)
|
40
39
|
diff-lcs (~> 1.5, >= 1.5.0)
|
41
40
|
mini_mime (~> 1.1, >= 1.1.5)
|
42
41
|
multi_test (~> 1.1, >= 1.1.0)
|
@@ -58,14 +57,22 @@ GEM
|
|
58
57
|
domain_name (0.5.20190701)
|
59
58
|
unf (>= 0.0.5, < 1.0.0)
|
60
59
|
e2mmap (0.1.0)
|
61
|
-
ffi (1.
|
60
|
+
ffi (1.16.3)
|
62
61
|
get_process_mem (0.2.7)
|
63
62
|
ffi (~> 1.0)
|
64
|
-
google-protobuf (3.
|
65
|
-
|
63
|
+
google-protobuf (3.25.0-arm64-darwin)
|
64
|
+
google-protobuf (3.25.0-x86_64-darwin)
|
65
|
+
google-protobuf (3.25.0-x86_64-linux)
|
66
|
+
googleapis-common-protos-types (1.10.0)
|
66
67
|
google-protobuf (~> 3.18)
|
67
|
-
grpc (1.
|
68
|
-
google-protobuf (~> 3.
|
68
|
+
grpc (1.59.2)
|
69
|
+
google-protobuf (~> 3.24)
|
70
|
+
googleapis-common-protos-types (~> 1.0)
|
71
|
+
grpc (1.59.2-x86_64-darwin)
|
72
|
+
google-protobuf (~> 3.24)
|
73
|
+
googleapis-common-protos-types (~> 1.0)
|
74
|
+
grpc (1.59.2-x86_64-linux)
|
75
|
+
google-protobuf (~> 3.24)
|
69
76
|
googleapis-common-protos-types (~> 1.0)
|
70
77
|
http-accept (1.7.0)
|
71
78
|
http-cookie (1.0.5)
|
@@ -79,30 +86,32 @@ GEM
|
|
79
86
|
language_server-protocol (3.17.0.3)
|
80
87
|
mime-types (3.5.1)
|
81
88
|
mime-types-data (~> 3.2015)
|
82
|
-
mime-types-data (3.2023.
|
89
|
+
mime-types-data (3.2023.1003)
|
83
90
|
mini_mime (1.1.5)
|
84
91
|
multi_test (1.1.0)
|
85
92
|
mustermann (3.0.0)
|
86
93
|
ruby2_keywords (~> 0.0.1)
|
87
94
|
netrc (0.11.0)
|
88
95
|
nio4r (2.5.9)
|
96
|
+
nokogiri (1.15.4-arm64-darwin)
|
97
|
+
racc (~> 1.4)
|
89
98
|
nokogiri (1.15.4-x86_64-darwin)
|
90
99
|
racc (~> 1.4)
|
91
100
|
nokogiri (1.15.4-x86_64-linux)
|
92
101
|
racc (~> 1.4)
|
93
102
|
parallel (1.23.0)
|
94
|
-
parser (3.2.2.
|
103
|
+
parser (3.2.2.4)
|
95
104
|
ast (~> 2.4.1)
|
96
105
|
racc
|
97
|
-
puma (6.
|
106
|
+
puma (6.4.0)
|
98
107
|
nio4r (~> 2.0)
|
99
|
-
racc (1.7.
|
108
|
+
racc (1.7.3)
|
100
109
|
rack (2.2.8)
|
101
110
|
rack-protection (3.1.0)
|
102
111
|
rack (~> 2.2, >= 2.2.4)
|
103
112
|
rainbow (3.1.1)
|
104
113
|
rbs (2.8.4)
|
105
|
-
regexp_parser (2.8.
|
114
|
+
regexp_parser (2.8.2)
|
106
115
|
rest-client (2.1.0)
|
107
116
|
http-accept (>= 1.7.0, < 2.0)
|
108
117
|
http-cookie (>= 1.0.2, < 2.0)
|
@@ -129,19 +138,18 @@ GEM
|
|
129
138
|
diff-lcs (>= 1.2.0, < 2.0)
|
130
139
|
rspec-support (~> 3.12.0)
|
131
140
|
rspec-support (3.12.1)
|
132
|
-
rubocop (1.
|
133
|
-
base64 (~> 0.1.1)
|
141
|
+
rubocop (1.57.2)
|
134
142
|
json (~> 2.3)
|
135
143
|
language_server-protocol (>= 3.17.0)
|
136
144
|
parallel (~> 1.10)
|
137
|
-
parser (>= 3.2.2.
|
145
|
+
parser (>= 3.2.2.4)
|
138
146
|
rainbow (>= 2.2.2, < 4.0)
|
139
147
|
regexp_parser (>= 1.8, < 3.0)
|
140
148
|
rexml (>= 3.2.5, < 4.0)
|
141
149
|
rubocop-ast (>= 1.28.1, < 2.0)
|
142
150
|
ruby-progressbar (~> 1.7)
|
143
151
|
unicode-display_width (>= 2.4.0, < 3.0)
|
144
|
-
rubocop-ast (1.
|
152
|
+
rubocop-ast (1.30.0)
|
145
153
|
parser (>= 3.2.1.0)
|
146
154
|
ruby-progressbar (1.13.0)
|
147
155
|
ruby2_keywords (0.0.5)
|
@@ -177,17 +185,18 @@ GEM
|
|
177
185
|
ffi (~> 1.1)
|
178
186
|
term-ansicolor (1.7.1)
|
179
187
|
tins (~> 1.0)
|
180
|
-
thor (1.
|
181
|
-
tilt (2.
|
188
|
+
thor (1.3.0)
|
189
|
+
tilt (2.3.0)
|
182
190
|
tins (1.32.1)
|
183
191
|
sync
|
184
192
|
unf (0.1.4)
|
185
193
|
unf_ext
|
186
|
-
unf_ext (0.0.
|
187
|
-
unicode-display_width (2.
|
194
|
+
unf_ext (0.0.9)
|
195
|
+
unicode-display_width (2.5.0)
|
188
196
|
yard (0.9.34)
|
189
197
|
|
190
198
|
PLATFORMS
|
199
|
+
arm64-darwin-22
|
191
200
|
x86_64-darwin-21
|
192
201
|
x86_64-linux
|
193
202
|
|
data/README.md
CHANGED
@@ -570,7 +570,9 @@ go test -mod vendor -c -tags features -covermode=count -o your_binary -coverpkg=
|
|
570
570
|
Setup it up programmatically:
|
571
571
|
|
572
572
|
```ruby
|
573
|
-
|
573
|
+
tools = %w[prof trace cover]
|
574
|
+
|
575
|
+
Nonnative.go_executable(tools, 'reports', 'your_binary', 'sub_command', '--config config.yaml')
|
574
576
|
```
|
575
577
|
|
576
578
|
Setup it up through configuration:
|
@@ -581,6 +583,7 @@ processes:
|
|
581
583
|
-
|
582
584
|
name: go
|
583
585
|
go:
|
586
|
+
tools: [prof, trace, cover]
|
584
587
|
output: reports
|
585
588
|
executable: your_binary
|
586
589
|
command: sub_command
|
@@ -69,7 +69,9 @@ module Nonnative
|
|
69
69
|
go = process['go']
|
70
70
|
if go
|
71
71
|
params = go['parameters'] || []
|
72
|
-
|
72
|
+
tools = go['tools'] || []
|
73
|
+
|
74
|
+
-> { Nonnative.go_executable(tools, go['output'], go['executable'], go['command'], *params) }
|
73
75
|
else
|
74
76
|
-> { process['command'] }
|
75
77
|
end
|
data/lib/nonnative/go_command.rb
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
module Nonnative
|
4
4
|
class GoCommand
|
5
|
-
def initialize(exec, output)
|
5
|
+
def initialize(tools, exec, output)
|
6
|
+
@tools = tools.nil? || tools.empty? ? %w[prof trace cover] : tools
|
6
7
|
@exec = exec
|
7
8
|
@output = output
|
8
9
|
end
|
@@ -14,7 +15,7 @@ module Nonnative
|
|
14
15
|
|
15
16
|
private
|
16
17
|
|
17
|
-
attr_reader :exec, :output
|
18
|
+
attr_reader :tools, :exec, :output
|
18
19
|
|
19
20
|
def flags(cmd, params)
|
20
21
|
suffix = SecureRandom.alphanumeric(4)
|
@@ -23,14 +24,34 @@ module Nonnative
|
|
23
24
|
name = [m, cmd, p].reject(&:empty?).join('-')[0...15]
|
24
25
|
path = "#{output}/#{name}-#{suffix}"
|
25
26
|
|
27
|
+
prof(path) + trace(path) + cover(path)
|
28
|
+
end
|
29
|
+
|
30
|
+
def prof(path)
|
31
|
+
return [] unless tools.include?('prof')
|
32
|
+
|
26
33
|
[
|
27
34
|
"-test.cpuprofile=#{path}-cpu.prof",
|
28
35
|
"-test.memprofile=#{path}-mem.prof",
|
29
36
|
"-test.blockprofile=#{path}-block.prof",
|
30
|
-
"-test.mutexprofile=#{path}-mutex.prof"
|
31
|
-
|
37
|
+
"-test.mutexprofile=#{path}-mutex.prof"
|
38
|
+
]
|
39
|
+
end
|
40
|
+
|
41
|
+
def trace(path)
|
42
|
+
return [] unless tools.include?('trace')
|
43
|
+
|
44
|
+
[
|
32
45
|
"-test.trace=#{path}-trace.out"
|
33
46
|
]
|
34
47
|
end
|
48
|
+
|
49
|
+
def cover(path)
|
50
|
+
return [] unless tools.include?('cover')
|
51
|
+
|
52
|
+
[
|
53
|
+
"-test.coverprofile=#{path}.cov"
|
54
|
+
]
|
55
|
+
end
|
35
56
|
end
|
36
57
|
end
|
data/lib/nonnative/version.rb
CHANGED
data/lib/nonnative.rb
CHANGED
@@ -58,8 +58,8 @@ module Nonnative
|
|
58
58
|
File.readlines(path).select { |l| predicate.call(l) }
|
59
59
|
end
|
60
60
|
|
61
|
-
def go_executable(output, exec, cmd, *params)
|
62
|
-
Nonnative::GoCommand.new(exec, output).executable(cmd, params)
|
61
|
+
def go_executable(tools, output, exec, cmd, *params)
|
62
|
+
Nonnative::GoCommand.new(tools, exec, output).executable(cmd, params)
|
63
63
|
end
|
64
64
|
|
65
65
|
def configuration
|
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.73.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: 2023-
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|