gitlab-dangerfiles 4.9.1 → 4.9.3

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: 833ebf65ece50022cfe565242ddb8af684071fdd9abab0d24f94fdf3331b8c37
4
- data.tar.gz: 10782785c698f9a32ff8f215cbdf1e8407ce5c85caf7f60faa69ff234748b635
3
+ metadata.gz: 8cbb5261eaf8bbbfa1b29d6a61899f9c51842b9e78163cff2d4594aef4ff39e6
4
+ data.tar.gz: 90871d71ce7905d33a83ddcfeff2f9769d539d3811cda951982fbe06b7bcd200
5
5
  SHA512:
6
- metadata.gz: bb2ffba4936cdb33385fb88eec7958bc56b87cce7735c8fc59c79afdb73ccb88e0817cf567a63378612602ba54a2236b029a2059d831933ad72b2db4f4c9d17a
7
- data.tar.gz: 22bffdd675c0254a09504a00dcb4fbc949f53f53f0b814e1b1accf500c7e571c022a866256ec60e0f666ffb401fd4a44650f3c88139e539e8ce59c434bc0d45d
6
+ metadata.gz: 3f5b6f291c53680a0b46b8821270adc30f3e241579fd88ad525984b78740fdaafbb3fcaf627ef1d4d7cfda20b79b3e26a6b16b41f0eeeedba99d7405648819b0
7
+ data.tar.gz: 9941183c8365d7152b2367aa3060b5fd85e8b7cf6fbeae441d31b387d332e672b9b6a28cfdad2ccda2b63d3d3eec599535ea9113bfbcebab890de656ec26fb97
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-dangerfiles (4.9.1)
4
+ gitlab-dangerfiles (4.9.3)
5
5
  danger (>= 9.3.0)
6
6
  danger-gitlab (>= 8.0.0)
7
7
  rake (~> 13.0)
@@ -30,7 +30,11 @@ module Danger
30
30
  Authentication: '~"group::authentication"',
31
31
  Authorization: '~"group::authorization"',
32
32
  Compliance: '~"group::compliance"',
33
- Verify: '~"devops::verify"'
33
+ Verify: '~"devops::verify"',
34
+ "AST:Composition Analysis": '~"group::composition analysis"',
35
+ "AST:Dynamic Analysis": '~"group::dynamic analysis"',
36
+ "AST:Secret Detection": '~"group::secret detection"',
37
+ "AST:Static Analysis": '~"group::static analysis"'
34
38
  }.freeze
35
39
  # rubocop:enable Style/HashSyntax
36
40
 
@@ -181,7 +185,9 @@ module Danger
181
185
  # @return [{Symbol => Array<String>}] a hash of the type +{ category1: ["file1", "file2"], category2: ["file3", "file4"] }+
182
186
  # using filename regex (+filename_regex+) and specific change regex (+changes_regex+) from the given +categories+ hash.
183
187
  def changes_by_category(categories = [])
184
- all_changed_files.each_with_object(Hash.new { |h, k| h[k] = [] }) do |file, hash|
188
+ changed_and_deleted_files = all_changed_files + changes.deleted.files
189
+
190
+ changed_and_deleted_files.each_with_object(Hash.new { |h, k| h[k] = [] }) do |file, hash|
185
191
  categories_for_file(file, categories).each { |category| hash[category] << file }
186
192
  end
187
193
  end
@@ -4,7 +4,7 @@ return if duo_code.suggestion_added?
4
4
 
5
5
  case helper.config.duo_code_review
6
6
  when :optional
7
- markdown("We advise getting a review from from GitLab Duo Code. You can assign `@GitLabDuo` as a reviewer to this merge request.")
7
+ markdown("We advise getting a review from GitLab Duo Code. You can assign `@GitLabDuo` as a reviewer to this merge request.")
8
8
  when :mandatory
9
9
  failure("A review from GitLab Duo Code is mandatory. Please assign `@GitLabDuo` as a reviewer to this merge request.")
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "4.9.1"
3
+ VERSION = "4.9.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.1
4
+ version: 4.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-04 00:00:00.000000000 Z
11
+ date: 2025-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake