gitlab_quality-test_tooling 1.14.0 → 1.14.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 970354551e0118a942865386f3e844762cf1fdfb06cfc02aa7bca602e55abc8f
4
- data.tar.gz: f512f45f80e5a3949b07a237c1f29c6bc73fcd8e320a92b6b3fcd0a23ccc311f
3
+ metadata.gz: 9d4626e6b818482d139f6256f13044ae3434b93989c377526485aae69f32b9eb
4
+ data.tar.gz: 148291a52850f6b6b5612dc0e1c46d2a6af0115d771c3ad3c9d1a0af7dbe2280
5
5
  SHA512:
6
- metadata.gz: 639c54db934d3fb5ee5cc57264957a6ffff2714fff9dce6517701b7ff4e5ce74fca87a518f35b1e8d52852952d875f6b9aa45e79a506fbb9416d9712bba2ab95
7
- data.tar.gz: 1dbfcfab9f4161827ae2775a69f6203008cc4ea07dc23424a971c5451a354ebb28d7a698e922aecf8ca321a9612a05e5adf966c1bc0e38686c249aaa87ce6446
6
+ metadata.gz: a2fca44f7bf0ccda3cf905e561b8d52f7462df04c35f54a92d61fed7f4e6121e82bd2d3d60757f46b1c8d2cd30e788ac72aad4fd9d96e5607e50960437c7c58c
7
+ data.tar.gz: 29a5e42c5c8f34b76e2aabb6280f0150a4aedf5d34a43bf44aef4be25aacb71d6a5f1bd9942f0593ec90626db3079cc2ad2fd4ee40ef084e9de9bd738cd427d4
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (1.14.0)
5
- activesupport (>= 6.1, < 7.2)
4
+ gitlab_quality-test_tooling (1.14.1)
5
+ activesupport (>= 6.1, < 7.1)
6
6
  amatch (~> 0.4.1)
7
7
  gitlab (~> 4.19)
8
8
  http (~> 5.0)
@@ -21,15 +21,14 @@ GEM
21
21
  i18n (>= 1.6, < 2)
22
22
  minitest (>= 5.1)
23
23
  tzinfo (~> 2.0)
24
- zeitwerk (~> 2.3)
25
- addressable (2.8.4)
24
+ addressable (2.8.6)
26
25
  public_suffix (>= 2.0.2, < 6.0)
27
26
  amatch (0.4.1)
28
27
  mize
29
28
  tins (~> 1.0)
30
29
  ast (2.4.2)
31
30
  backport (1.2.0)
32
- benchmark (0.2.1)
31
+ benchmark (0.3.0)
33
32
  binding_of_caller (1.0.0)
34
33
  debug_inspector (>= 0.0.1)
35
34
  byebug (11.1.3)
@@ -41,23 +40,23 @@ GEM
41
40
  climate_control (1.2.0)
42
41
  coderay (1.1.3)
43
42
  colored2 (3.1.2)
44
- concurrent-ruby (1.2.2)
43
+ concurrent-ruby (1.2.3)
45
44
  cork (0.3.0)
46
45
  colored2 (~> 3.1)
47
46
  crack (0.4.5)
48
47
  rexml
49
- danger (9.3.0)
48
+ danger (9.4.2)
50
49
  claide (~> 1.0)
51
50
  claide-plugins (>= 0.9.2)
52
51
  colored2 (~> 3.1)
53
52
  cork (~> 0.1)
54
53
  faraday (>= 0.9.0, < 3.0)
55
54
  faraday-http-cache (~> 2.0)
56
- git (~> 1.13.0)
55
+ git (~> 1.13)
57
56
  kramdown (~> 2.3)
58
57
  kramdown-parser-gfm (~> 1.0)
59
58
  no_proxy_fix
60
- octokit (~> 5.0)
59
+ octokit (>= 4.0)
61
60
  terminal-table (>= 1, < 4)
62
61
  danger-gitlab (8.0.0)
63
62
  danger
@@ -65,37 +64,36 @@ GEM
65
64
  debug_inspector (1.2.0)
66
65
  diff-lcs (1.5.0)
67
66
  docile (1.4.0)
68
- domain_name (0.5.20190701)
69
- unf (>= 0.0.5, < 1.0.0)
67
+ domain_name (0.6.20240107)
70
68
  e2mmap (0.1.0)
71
- faraday (2.7.4)
72
- faraday-net_http (>= 2.0, < 3.1)
73
- ruby2_keywords (>= 0.0.4)
74
- faraday-http-cache (2.5.0)
69
+ faraday (2.9.0)
70
+ faraday-net_http (>= 2.0, < 3.2)
71
+ faraday-http-cache (2.5.1)
75
72
  faraday (>= 0.8)
76
- faraday-net_http (3.0.2)
77
- ffi (1.15.5)
73
+ faraday-net_http (3.1.0)
74
+ net-http
75
+ ffi (1.16.3)
78
76
  ffi-compiler (1.0.1)
79
77
  ffi (>= 1.0.0)
80
78
  rake
81
79
  formatador (1.1.0)
82
- git (1.13.2)
80
+ git (1.19.1)
83
81
  addressable (~> 2.8)
84
82
  rchardet (~> 1.8)
85
83
  gitlab (4.19.0)
86
84
  httparty (~> 0.20)
87
85
  terminal-table (>= 1.5.1)
88
- gitlab-dangerfiles (3.8.0)
86
+ gitlab-dangerfiles (3.13.0)
89
87
  danger (>= 8.4.5)
90
88
  danger-gitlab (>= 8.0.0)
91
89
  rake
92
- gitlab-styles (10.0.0)
93
- rubocop (~> 1.43.0)
90
+ gitlab-styles (10.1.0)
91
+ rubocop (~> 1.50.2)
94
92
  rubocop-graphql (~> 0.18)
95
93
  rubocop-performance (~> 1.15)
96
94
  rubocop-rails (~> 2.17)
97
- rubocop-rspec (~> 2.18)
98
- guard (2.18.0)
95
+ rubocop-rspec (~> 2.22)
96
+ guard (2.18.1)
99
97
  formatador (>= 0.2.4)
100
98
  listen (>= 2.7, < 4.0)
101
99
  lumberjack (>= 1.0.12, < 2.0)
@@ -109,7 +107,7 @@ GEM
109
107
  guard (~> 2.1)
110
108
  guard-compat (~> 1.1)
111
109
  rspec (>= 2.99.0, < 4.0)
112
- hashdiff (1.0.1)
110
+ hashdiff (1.1.0)
113
111
  http (5.1.1)
114
112
  addressable (~> 2.8)
115
113
  http-cookie (~> 1.0)
@@ -121,45 +119,48 @@ GEM
121
119
  httparty (0.21.0)
122
120
  mini_mime (>= 1.0.0)
123
121
  multi_xml (>= 0.5.2)
124
- i18n (1.13.0)
122
+ i18n (1.14.1)
125
123
  concurrent-ruby (~> 1.0)
126
- jaro_winkler (1.5.4)
127
- json (2.6.3)
124
+ jaro_winkler (1.5.6)
125
+ json (2.7.1)
128
126
  kramdown (2.4.0)
129
127
  rexml
130
128
  kramdown-parser-gfm (1.1.0)
131
129
  kramdown (~> 2.0)
132
- lefthook (1.3.11)
130
+ lefthook (1.6.1)
133
131
  listen (3.8.0)
134
132
  rb-fsevent (~> 0.10, >= 0.10.3)
135
133
  rb-inotify (~> 0.9, >= 0.9.10)
136
134
  llhttp-ffi (0.4.0)
137
135
  ffi-compiler (~> 1.0)
138
136
  rake (~> 13.0)
139
- lumberjack (1.2.8)
137
+ lumberjack (1.2.10)
140
138
  method_source (1.0.0)
141
- mini_mime (1.1.2)
142
- mini_portile2 (2.8.1)
143
- minitest (5.18.0)
139
+ mini_mime (1.1.5)
140
+ mini_portile2 (2.8.5)
141
+ minitest (5.21.2)
144
142
  mize (0.4.1)
145
143
  protocol (~> 2.0)
146
144
  multi_xml (0.6.0)
147
145
  nap (1.1.0)
148
146
  nenv (0.3.0)
147
+ net-http (0.4.1)
148
+ uri
149
149
  no_proxy_fix (0.1.2)
150
- nokogiri (1.14.3)
151
- mini_portile2 (~> 2.8.0)
150
+ nokogiri (1.16.0)
151
+ mini_portile2 (~> 2.8.2)
152
152
  racc (~> 1.4)
153
153
  notiffany (0.1.3)
154
154
  nenv (~> 0.1)
155
155
  shellany (~> 0.0)
156
- octokit (5.6.1)
156
+ octokit (8.0.0)
157
157
  faraday (>= 1, < 3)
158
158
  sawyer (~> 0.9)
159
159
  open4 (1.3.4)
160
- parallel (1.23.0)
161
- parser (3.2.2.1)
160
+ parallel (1.24.0)
161
+ parser (3.3.0.5)
162
162
  ast (~> 2.4.1)
163
+ racc
163
164
  proc_to_ast (0.1.0)
164
165
  coderay
165
166
  parser
@@ -172,20 +173,20 @@ GEM
172
173
  pry-byebug (3.10.1)
173
174
  byebug (~> 11.0)
174
175
  pry (>= 0.13, < 0.15)
175
- public_suffix (5.0.1)
176
- racc (1.6.2)
177
- rack (3.0.7)
176
+ public_suffix (5.0.4)
177
+ racc (1.7.3)
178
+ rack (3.0.8)
178
179
  rainbow (3.1.1)
179
- rake (13.0.6)
180
+ rake (13.1.0)
180
181
  rb-fsevent (0.11.2)
181
182
  rb-inotify (0.10.1)
182
183
  ffi (~> 1.0)
183
184
  rbs (2.8.4)
184
185
  rchardet (1.8.0)
185
- regexp_parser (2.8.0)
186
+ regexp_parser (2.9.0)
186
187
  reverse_markdown (2.1.1)
187
188
  nokogiri
188
- rexml (3.2.5)
189
+ rexml (3.2.6)
189
190
  rspec (3.12.0)
190
191
  rspec-core (~> 3.12.0)
191
192
  rspec-expectations (~> 3.12.0)
@@ -195,7 +196,7 @@ GEM
195
196
  rspec-expectations (3.12.3)
196
197
  diff-lcs (>= 1.2.0, < 2.0)
197
198
  rspec-support (~> 3.12.0)
198
- rspec-mocks (3.12.5)
199
+ rspec-mocks (3.12.6)
199
200
  diff-lcs (>= 1.2.0, < 2.0)
200
201
  rspec-support (~> 3.12.0)
201
202
  rspec-parameterized (1.0.0)
@@ -209,41 +210,45 @@ GEM
209
210
  rspec-parameterized-table_syntax (1.0.1)
210
211
  binding_of_caller
211
212
  rspec-parameterized-core (< 2)
212
- rspec-support (3.12.0)
213
- rubocop (1.43.0)
213
+ rspec-support (3.12.1)
214
+ rubocop (1.50.2)
214
215
  json (~> 2.3)
215
216
  parallel (~> 1.10)
216
217
  parser (>= 3.2.0.0)
217
218
  rainbow (>= 2.2.2, < 4.0)
218
219
  regexp_parser (>= 1.8, < 3.0)
219
220
  rexml (>= 3.2.5, < 4.0)
220
- rubocop-ast (>= 1.24.1, < 2.0)
221
+ rubocop-ast (>= 1.28.0, < 2.0)
221
222
  ruby-progressbar (~> 1.7)
222
223
  unicode-display_width (>= 2.4.0, < 3.0)
223
- rubocop-ast (1.28.0)
224
+ rubocop-ast (1.30.0)
224
225
  parser (>= 3.2.1.0)
225
- rubocop-capybara (2.18.0)
226
+ rubocop-capybara (2.20.0)
227
+ rubocop (~> 1.41)
228
+ rubocop-factory_bot (2.25.1)
226
229
  rubocop (~> 1.41)
227
230
  rubocop-graphql (0.19.0)
228
231
  rubocop (>= 0.87, < 2)
229
- rubocop-performance (1.17.1)
230
- rubocop (>= 1.7.0, < 2.0)
231
- rubocop-ast (>= 0.4.0)
232
- rubocop-rails (2.19.1)
232
+ rubocop-performance (1.20.2)
233
+ rubocop (>= 1.48.1, < 2.0)
234
+ rubocop-ast (>= 1.30.0, < 2.0)
235
+ rubocop-rails (2.23.1)
233
236
  activesupport (>= 4.2.0)
234
237
  rack (>= 1.1)
235
238
  rubocop (>= 1.33.0, < 2.0)
236
- rubocop-rspec (2.20.0)
237
- rubocop (~> 1.33)
239
+ rubocop-ast (>= 1.30.0, < 2.0)
240
+ rubocop-rspec (2.26.1)
241
+ rubocop (~> 1.40)
238
242
  rubocop-capybara (~> 2.17)
243
+ rubocop-factory_bot (~> 2.22)
239
244
  ruby-progressbar (1.13.0)
240
- ruby2_keywords (0.0.5)
241
- ruby_parser (3.20.3)
245
+ ruby_parser (3.21.0)
246
+ racc (~> 1.5)
242
247
  sexp_processor (~> 4.16)
243
248
  sawyer (0.9.2)
244
249
  addressable (>= 2.3.5)
245
250
  faraday (>= 0.17.3, < 3)
246
- sexp_processor (4.17.0)
251
+ sexp_processor (4.17.1)
247
252
  shellany (0.0.1)
248
253
  simplecov (0.22.0)
249
254
  docile (~> 1.1)
@@ -254,7 +259,7 @@ GEM
254
259
  simplecov (~> 0.19)
255
260
  simplecov-html (0.12.3)
256
261
  simplecov_json_formatter (0.1.4)
257
- solargraph (0.49.0)
262
+ solargraph (0.50.0)
258
263
  backport (~> 1.2)
259
264
  benchmark
260
265
  bundler (~> 2.0)
@@ -274,26 +279,24 @@ GEM
274
279
  table_print (1.5.7)
275
280
  terminal-table (3.0.2)
276
281
  unicode-display_width (>= 1.1.1, < 3)
277
- thor (1.2.1)
278
- tilt (2.1.0)
279
- timecop (0.9.6)
282
+ thor (1.3.0)
283
+ tilt (2.3.0)
284
+ timecop (0.9.8)
280
285
  tins (1.32.1)
281
286
  sync
282
287
  tzinfo (2.0.6)
283
288
  concurrent-ruby (~> 1.0)
284
- unf (0.1.4)
285
- unf_ext
286
- unf_ext (0.0.8.2)
287
- unicode-display_width (2.4.2)
288
- unparser (0.6.8)
289
+ unicode-display_width (2.5.0)
290
+ unparser (0.6.12)
289
291
  diff-lcs (~> 1.3)
290
- parser (>= 3.2.0)
292
+ parser (>= 3.2.2.4)
293
+ uri (0.13.0)
291
294
  webmock (3.7.0)
292
295
  addressable (>= 2.3.6)
293
296
  crack (>= 0.3.2)
294
297
  hashdiff (>= 0.4.0, < 2.0.0)
295
298
  yard (0.9.34)
296
- zeitwerk (2.6.7)
299
+ zeitwerk (2.6.12)
297
300
 
298
301
  PLATFORMS
299
302
  ruby
@@ -26,9 +26,10 @@ module GitlabQuality
26
26
  puts "The following note would have been updated id: #{id} with body: #{note} for mr_iid: #{merge_request_iid}"
27
27
  end
28
28
 
29
- def create_merge_request(title:, source_branch:, target_branch:, description:, labels:)
29
+ def create_merge_request(title:, source_branch:, target_branch:, description:, labels:, assignee_id:)
30
30
  puts "A merge request would be created with title: #{title} " \
31
- "source_branch: #{source_branch} target_branch: #{target_branch} description: #{description} labels: #{labels}"
31
+ "source_branch: #{source_branch} target_branch: #{target_branch} " \
32
+ "description: #{description} labels: #{labels}, assignee_id: #{assignee_id}"
32
33
  end
33
34
  end
34
35
  end
@@ -25,7 +25,7 @@ module GitlabQuality
25
25
 
26
26
  ENV_VARIABLES.each do |env_name, method_name|
27
27
  define_method(method_name) do
28
- env_var_value_if_defined(env_name) || (instance_variable_get("@#{method_name}") if instance_variable_defined?("@#{method_name}"))
28
+ env_var_value_if_defined(env_name) || (instance_variable_get(:"@#{method_name}") if instance_variable_defined?(:"@#{method_name}"))
29
29
  end
30
30
  end
31
31
 
@@ -153,8 +153,12 @@ module GitlabQuality
153
153
  # @param [String] note the note to post
154
154
  # @return [Gitlab::ObjectifiedHash]
155
155
  def post_note_on_report_issue(note)
156
- iid = report_issue.split('/').last # split url segment, last segment of path is the issue id
157
- issue_client.create_issue_note(iid: iid, note: note)
156
+ iid = report_issue&.split('/')&.last # split url segment, last segment of path is the issue id
157
+ if iid
158
+ issue_client.create_issue_note(iid: iid, note: note)
159
+ else
160
+ Runtime::Logger.info("#{self.class.name}##{__method__} Note was NOT posted on report issue: #{report_issue}")
161
+ end
158
162
  end
159
163
 
160
164
  # Post a note of merge reqest
@@ -234,7 +238,7 @@ module GitlabQuality
234
238
  #
235
239
  # @return [GitlabIssueDryClient | GitlabIssueClient]
236
240
  def issue_client
237
- @issue_client ||= (dry_run ? GitlabClient::IssuesDryClient : GitlabClient::IssuesClient).new(token: token, project: "gitlab-org/gitlab")
241
+ @issue_client ||= (dry_run ? GitlabClient::IssuesDryClient : GitlabClient::IssuesClient).new(token: token, project: project)
238
242
  end
239
243
 
240
244
  # Returns the MergeRequestDryClient or MergeRequest based on the value of dry_run
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "1.14.0"
5
+ VERSION = "1.14.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_quality-test_tooling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -201,7 +201,7 @@ dependencies:
201
201
  version: '6.1'
202
202
  - - "<"
203
203
  - !ruby/object:Gem::Version
204
- version: '7.2'
204
+ version: '7.1'
205
205
  type: :runtime
206
206
  prerelease: false
207
207
  version_requirements: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ dependencies:
211
211
  version: '6.1'
212
212
  - - "<"
213
213
  - !ruby/object:Gem::Version
214
- version: '7.2'
214
+ version: '7.1'
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: amatch
217
217
  requirement: !ruby/object:Gem::Requirement