code_ownership 1.32.11 → 1.32.13

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: 766c909e87feb435319240d22675e5bd3bbbb2da5e9984098df27eb6586b2d46
4
- data.tar.gz: 74e9e35278a45fce5aecf0de4131c56785c774eb6abe9e3d6db599f3bf6332f1
3
+ metadata.gz: ad23d35594c57c575faa7afa4bdd7133efc848319d7279b6b28c8d7f67b7d2c0
4
+ data.tar.gz: 7e21f92921d9053820eaf3722d4ee7064e5af726ea6c9c4af653bc7330e777bb
5
5
  SHA512:
6
- metadata.gz: eae6b000156ff509afe12b70019d3b73a62d30718f890f62dcd8ff46c8a03687e5cbc041463ef5b28e0de85bbb96c72799db95334d575bd5b42669ece4960885
7
- data.tar.gz: e4c4b07430f1b611fb2e1493210a67c2a0e69013fdeddaa2042f8b6334e3b1c66d666343030da1af79b7af2dd9d8873af88556143cfa60406aa0991f72f7a9be
6
+ metadata.gz: cbb45989ddbd059ba89632015ee8dc345bfb38932d008fe8edd1ea687de16b97367625a84db7c550cdd7ae20d08fe86d876f3252574564f4a6374ae3fcb9e49b
7
+ data.tar.gz: fc2ee0036fe2780910ae7a6fe290c738a7466fd3608f4b06ae3c9daa470160bca203106c51a90772365bfd6563c0b0651ecb8d47a3849550a04a91c1491599a9
@@ -135,6 +135,12 @@ module CodeOwnership
135
135
  # This will skip over lines that are not of the correct form
136
136
  next if split_line.count > 2
137
137
  entry, github_team = split_line
138
+ code_team = github_team_to_code_team_map[T.must(github_team)]
139
+ # If a GitHub team is changed and a user runs `bin/codeownership validate`, we won't be able to identify
140
+ # what team is associated with the removed github team.
141
+ # Therefore, if we can't determine the team, we just skip it.
142
+ # This affects how complete the cache is, but that will still be caught by `bin/codeownership validate`.
143
+ next if code_team.nil?
138
144
  raw_cache_contents[current_mapper] ||= {}
139
145
  raw_cache_contents.fetch(current_mapper)[T.must(entry)] = github_team_to_code_team_map.fetch(T.must(github_team))
140
146
  end
@@ -92,7 +92,7 @@ module CodeOwnership
92
92
  File.fnmatch?(owned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB)
93
93
  end
94
94
 
95
- in_unowned_globs = configuration.unowned_globs.all? do |unowned_glob|
95
+ in_unowned_globs = configuration.unowned_globs.any? do |unowned_glob|
96
96
  File.fnmatch?(unowned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB)
97
97
  end
98
98
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_ownership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.11
4
+ version: 1.32.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams