nonnative 1.71.0 → 1.73.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9c13e49b2a33ee7535bf7d4366055aca82b54c32bc2f46fcf9e9430a40490a3
4
- data.tar.gz: 66d896b0fca2aa2e4064568b545705237f61406da12d5a71090ad95ee2f5814a
3
+ metadata.gz: 317de0f3ebf4d5cf8060d2c78e79ea4d92057248482c5b3f0d6dc095d2a01a1d
4
+ data.tar.gz: 703d270aa7764ab1a583debc0934b333175e17c084c5ca17104381b6ca115329
5
5
  SHA512:
6
- metadata.gz: 1aec8748d66a9454c7d94d2df387ab12b8f72db4fb86db360ce24e7e021c71033acf42464ba8c3b8c14390b502c1f219f9bac2b2379effe58ba7e5de476c0a45
7
- data.tar.gz: 6b82530f9798c8ee53268a108c405cbd362cd32306c254879f13669f12ad1739fc6e10a8b5f8150974e44c4c5b91097d93c09ebc58a18f864b56254b41009f34
6
+ metadata.gz: b0c75981fee6bc7e2868db902065a0b97b07bcbdb85d0e3432cd582d0c6f6ec7926771a2d31881d45e6932aed8101eb68d17c2b7d9a9efc9964dbef921da5031
7
+ data.tar.gz: 72c1ea110196a0dbf75562911e839065ac0367ef27eaa3345f398aa7921c83ccdd5aebd88cb5c5dc647bf3d16d602cc8735390405530734849fba9d5becf0167
data/CHANGELOG.md CHANGED
@@ -6,6 +6,57 @@ 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
+
56
+ ## [v1.72.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.72.0) - 2023-09-06
57
+
58
+ - [`c105469`](https://github.com/alexfalkowski/nonnative/commit/c1054693e9040fd55e0ec45ffd843405826c9f03) feat(cucumber): update to version 9.0.1 (#253)
59
+
9
60
  ## [v1.71.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.71.0) - 2023-08-24
10
61
 
11
62
  - [`7597461`](https://github.com/alexfalkowski/nonnative/commit/759746110040e7599cda8c5b97ae9c7ccd9a3cc9) feat: update deps (#249)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.71.0)
4
+ nonnative (1.73.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
- cucumber (>= 7, < 9)
6
+ cucumber (>= 7, < 10)
7
7
  get_process_mem (~> 0.2.1)
8
8
  grpc (>= 1, < 2)
9
9
  puma (~> 6.0)
@@ -17,8 +17,7 @@ GEM
17
17
  specs:
18
18
  ast (2.4.2)
19
19
  backport (1.2.0)
20
- base64 (0.1.1)
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,43 +28,51 @@ GEM
29
28
  term-ansicolor (~> 1.7)
30
29
  thor (~> 1.2)
31
30
  tins (~> 1.32)
32
- cucumber (8.0.0)
31
+ cucumber (9.0.2)
33
32
  builder (~> 3.2, >= 3.2.4)
34
- cucumber-ci-environment (~> 9.0, >= 9.0.4)
35
- cucumber-core (~> 11.0, >= 11.0.0)
36
- cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
37
- cucumber-gherkin (~> 23.0, >= 23.0.1)
38
- cucumber-html-formatter (~> 19.1, >= 19.1.0)
39
- cucumber-messages (~> 18.0, >= 18.0.0)
33
+ cucumber-ci-environment (~> 9.2, >= 9.2.0)
34
+ cucumber-core (~> 11.1, >= 11.1.0)
35
+ cucumber-cucumber-expressions (~> 16.1, >= 16.1.2)
36
+ cucumber-gherkin (>= 24, < 26.2.1)
37
+ cucumber-html-formatter (~> 20.4, >= 20.4.0)
38
+ cucumber-messages (>= 19, < 23)
40
39
  diff-lcs (~> 1.5, >= 1.5.0)
41
- mime-types (~> 3.4, >= 3.4.1)
40
+ mini_mime (~> 1.1, >= 1.1.5)
42
41
  multi_test (~> 1.1, >= 1.1.0)
43
- sys-uname (~> 1.2, >= 1.2.2)
42
+ sys-uname (~> 1.2, >= 1.2.3)
44
43
  cucumber-ci-environment (9.2.0)
45
- cucumber-core (11.0.0)
46
- cucumber-gherkin (~> 23.0, >= 23.0.1)
47
- cucumber-messages (~> 18.0, >= 18.0.0)
44
+ cucumber-core (11.1.0)
45
+ cucumber-gherkin (>= 24, < 27)
46
+ cucumber-messages (>= 19, < 22)
48
47
  cucumber-tag-expressions (~> 4.1, >= 4.1.0)
49
- cucumber-cucumber-expressions (15.2.0)
50
- cucumber-gherkin (23.0.1)
51
- cucumber-messages (~> 18.0, >= 18.0.0)
52
- cucumber-html-formatter (19.2.0)
53
- cucumber-messages (~> 18.0, >= 18.0.0)
54
- cucumber-messages (18.0.0)
48
+ cucumber-cucumber-expressions (16.1.2)
49
+ cucumber-gherkin (26.2.0)
50
+ cucumber-messages (>= 19.1.4, < 22.1)
51
+ cucumber-html-formatter (20.4.0)
52
+ cucumber-messages (>= 18.0, < 22.1)
53
+ cucumber-messages (21.0.1)
55
54
  cucumber-tag-expressions (4.1.0)
56
55
  diff-lcs (1.5.0)
57
56
  docile (1.4.0)
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.15.5)
60
+ ffi (1.16.3)
62
61
  get_process_mem (0.2.7)
63
62
  ffi (~> 1.0)
64
- google-protobuf (3.24.1-x86_64-darwin)
65
- googleapis-common-protos-types (1.8.0)
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.57.0-x86_64-darwin)
68
- google-protobuf (~> 3.23)
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,29 +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.0808)
89
+ mime-types-data (3.2023.1003)
90
+ mini_mime (1.1.5)
83
91
  multi_test (1.1.0)
84
92
  mustermann (3.0.0)
85
93
  ruby2_keywords (~> 0.0.1)
86
94
  netrc (0.11.0)
87
95
  nio4r (2.5.9)
96
+ nokogiri (1.15.4-arm64-darwin)
97
+ racc (~> 1.4)
88
98
  nokogiri (1.15.4-x86_64-darwin)
89
99
  racc (~> 1.4)
90
100
  nokogiri (1.15.4-x86_64-linux)
91
101
  racc (~> 1.4)
92
102
  parallel (1.23.0)
93
- parser (3.2.2.3)
103
+ parser (3.2.2.4)
94
104
  ast (~> 2.4.1)
95
105
  racc
96
- puma (6.3.1)
106
+ puma (6.4.0)
97
107
  nio4r (~> 2.0)
98
- racc (1.7.1)
108
+ racc (1.7.3)
99
109
  rack (2.2.8)
100
110
  rack-protection (3.1.0)
101
111
  rack (~> 2.2, >= 2.2.4)
102
112
  rainbow (3.1.1)
103
113
  rbs (2.8.4)
104
- regexp_parser (2.8.1)
114
+ regexp_parser (2.8.2)
105
115
  rest-client (2.1.0)
106
116
  http-accept (>= 1.7.0, < 2.0)
107
117
  http-cookie (>= 1.0.2, < 2.0)
@@ -128,19 +138,18 @@ GEM
128
138
  diff-lcs (>= 1.2.0, < 2.0)
129
139
  rspec-support (~> 3.12.0)
130
140
  rspec-support (3.12.1)
131
- rubocop (1.56.1)
132
- base64 (~> 0.1.1)
141
+ rubocop (1.57.2)
133
142
  json (~> 2.3)
134
143
  language_server-protocol (>= 3.17.0)
135
144
  parallel (~> 1.10)
136
- parser (>= 3.2.2.3)
145
+ parser (>= 3.2.2.4)
137
146
  rainbow (>= 2.2.2, < 4.0)
138
147
  regexp_parser (>= 1.8, < 3.0)
139
148
  rexml (>= 3.2.5, < 4.0)
140
149
  rubocop-ast (>= 1.28.1, < 2.0)
141
150
  ruby-progressbar (~> 1.7)
142
151
  unicode-display_width (>= 2.4.0, < 3.0)
143
- rubocop-ast (1.29.0)
152
+ rubocop-ast (1.30.0)
144
153
  parser (>= 3.2.1.0)
145
154
  ruby-progressbar (1.13.0)
146
155
  ruby2_keywords (0.0.5)
@@ -176,17 +185,18 @@ GEM
176
185
  ffi (~> 1.1)
177
186
  term-ansicolor (1.7.1)
178
187
  tins (~> 1.0)
179
- thor (1.2.2)
180
- tilt (2.2.0)
188
+ thor (1.3.0)
189
+ tilt (2.3.0)
181
190
  tins (1.32.1)
182
191
  sync
183
192
  unf (0.1.4)
184
193
  unf_ext
185
- unf_ext (0.0.8.2)
186
- unicode-display_width (2.4.2)
194
+ unf_ext (0.0.9)
195
+ unicode-display_width (2.5.0)
187
196
  yard (0.9.34)
188
197
 
189
198
  PLATFORMS
199
+ arm64-darwin-22
190
200
  x86_64-darwin-21
191
201
  x86_64-linux
192
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
- Nonnative.go_executable('reports', 'your_binary', 'sub_command', '--config config.yaml')
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
- -> { Nonnative.go_executable(go['output'], go['executable'], go['command'], *params) }
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
@@ -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
- "-test.coverprofile=#{path}.cov",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.71.0'
4
+ VERSION = '1.73.0'
5
5
  end
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
data/nonnative.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.metadata['rubygems_mfa_required'] = 'true'
26
26
 
27
27
  spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.5'
28
- spec.add_dependency 'cucumber', '>= 7', '< 9'
28
+ spec.add_dependency 'cucumber', '>= 7', '< 10'
29
29
  spec.add_dependency 'get_process_mem', '~> 0.2.1'
30
30
  spec.add_dependency 'grpc', ['>= 1', '< 2']
31
31
  spec.add_dependency 'puma', '~> 6.0'
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.71.0
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-08-24 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '7'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '9'
42
+ version: '10'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '7'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '9'
52
+ version: '10'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: get_process_mem
55
55
  requirement: !ruby/object:Gem::Requirement